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

How do I move a script using another script?

Asked by 5 years ago

I want to move a script to StarterGui to Workspace by using another script. Please explain to me how to write the code or give me the code.

0
You just disable the script you want to move and then parent it to StarterGui, and then to Workspace, and then you enable it again. Refined_Arcanite 21 — 5y

1 answer

Log in to vote
0
Answered by
174gb 290 Moderation Voter
5 years ago
--[[
I do not understand 100% what you meant, but if you want to change the parent of some script,
first find it and change the parent. Example:

If I have a workspace script and want to put it in Lighting, I'll have to type
--]]
script.Parent = game.Lighting


--Now, if you want to change an expecific script, you will need to find it and change location

--Ex:

game.Workspace.Script.Parent = game.Lighting
Ad

Answer this question