When doing this the script doesn't appear inside the part (since im adding it locally) how can I get around this?
COMMUNITY QUESTION
How can I add a script to a part in workspace through a localscript?
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

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