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

How do I move an tool from game.Lighting to a folder in a SurfaceGui in a Model in game.Workspace?

Asked by 6 years ago

You may have seen me around making scripts with ordertools in them

I’m trying to make a surface gui button move the requested tool from Lighting to a Folder but it doesn’t work (I just wanna move ONE Item, even so loop doesn’t work)

1  function onClicked()
2    local fname = script.Parent.Parent.Name
3    local tool = game.Lighting:FindFirstChild(fname.."Tool"):Clone()
4    tool.Parent = script.Parent.Parent.Parent.ordertools
5    end
6script.Parent.MouseButton1Down:connect(onClicked)
0
Is this a Localscript or a ServerScript? Lucke0051 165 — 6y
0
Sorry I figured it out already, my tools were in a position so when they spawn they get deleted WyattagumsBackUp 5 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Sorry I figured it out already, my tools were in a position so when they spawn they get deleted

Ad

Answer this question