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

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

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)

2 comments

0

Is this a Localscript or a ServerScript?

0

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

1 answer

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

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