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

How can I add a script to a part in workspace through a localscript?

When doing this the script doesn't appear inside the part (since im adding it locally) how can I get around this?

1 answer

This is a method of doing this.

Put a script into ReplicatedStorage and disable it.

Code:

local s = game.ReplicatedStorage["Script"]:Clone() -- Clone the script
s.Parent = game.Workspace.Part -- Part where script will be added into

1 comment

0

I used this code and it worked fine, please post your own code.

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