Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this LocalPart spawn?

Asked by 8 years ago

It works in studio but not online (like always) and I followed the Wiki.

This is a localscript inside StarterGui (PlayerGui) and its meant to clone a model over to the Camera called Bin. It does this on studio but not online, any solutions?

http://wiki.roblox.com/index.php?title=Local_parts

local container = game.Workspace:FindFirstChild("Bin")
if not container then
    container = Instance.new("Camera")
    container.Name = "Bin"
    container.Parent = game.Workspace
end

game.ReplicatedStorage.Building:Clone().Parent = container

1 answer

Log in to vote
0
Answered by 8 years ago

Replication

Don't use hacky methods such as the Camera. Instead, use FilteringEnabled as it's much better practice. The Wiki often teaches bad practices now because it's outdated.

0
Which also means I will have to rescript everything :/ LittleBigDeveloper 245 — 8y
0
Too bad. If you did it right the first time, you wouldn't have to. User#6546 35 — 8y
Ad

Answer this question