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

How do I move a script using another script?

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.

1 comment

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.

1 answer

✓ Accepted answer
--[[
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

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