Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why doesn't this LocalPart spawn?

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

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.

2 comments

0

Which also means I will have to rescript everything :/

0

Too bad. If you did it right the first time, you wouldn't have to.

This discussion is preserved as it was. New answers, comments, and votes are closed.