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

Can my script move parts from workspace to replicatedfirst?

I made a script that moves a part named button from a group called trapdoor and it moves it to replicatedfirst, but it won't work

game.Workspace.trapdoor.Button = game.ReplicatedFirst
wait(39.8)
game.ReplicatedFirst.Button = game.Workspace.trapdoor

1 answer

✓ Accepted answer

Try this:

local Trapdoor = workspace.trapdoor
local Button = Trapdoor.Button
-- Local statements are used to define what is what, you can change this to a Global statement by removing "local".
Button.Parent = game.ReplicatedFirst
wait(39.8) -- May I ask why this is such an accurate wait time?
Button.Parent = Trapdoor

When using Parent, you're placing the part inside another object/class.

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