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

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

Asked by
Teeter11 281 Moderation Voter
8 years ago

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

1 answer

Log in to vote
0
Answered by 8 years ago

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
0
I used this code and it worked fine, please post your own code. UniversalDreams 205 — 8y
Ad

Answer this question