in this video (frist so large video with voice) i will try to explain how to add custom rooms and related to custom rooms in pscp stuff.
game builder: https://www.roblox.com/games/92232017...
pscp wiki: https://projectscp.net/Other/Maps/Cus...
^^ virus
Model: https://www.roblox.com/library/128391...
code:
local copyProperties = {
"Name", "Anchored", "Locked", "CanCollide", "Transparency", "Color", "Material",
"Reflectance", "CFrame", "BackSurface", "BottomSurface", "FrontSurface", "LeftSurface",
"RightSurface", "TopSurface", "Size"
}
local meshPart = game.Selection:Get()[1]
assert(meshPart:IsA("MeshPart"), "Seleciton must be a MeshPart")
local part = Instance.new("Part")
part.Size = Vector3.new(1, 1, 1)
for _,p in pairs(copyProperties) do
part[p] = meshPart[p]
end
local specialMesh = Instance.new("SpecialMesh")
specialMesh.MeshType = Enum.MeshType.FileMesh
specialMesh.MeshId = meshPart.MeshId
specialMesh.Parent = part
part.Parent = meshPart.Parent