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 5 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)

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

1 answer

Log in to vote
0
Answered by 5 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