This is what I've tried:
local Tool = game.Lighting.Tool
local player = game.Players.LocalPlayer
function onClick()
game.Workspace[player.Name].Torso.CFrame = CFrame.new(Vector3.new(0, 5, 0))
if script.Parent.Visible == true then
script.Parent.Parent:Destroy()
end
end
function Give(player)
Tool1 = Tool:clone()
Tool1.Parent = player.Backpack
end
script.Parent.MouseButton1Click:connect(onClick)
script.Parent.MouseButton1Click:connect(Give)
This is in a regular script. Im teleporting correctly and the gui dissappears but I want it to give me a tool when I click the textbutton. And that is not working D: Currently the tool is located under Lighting but I'm not quite sure if that's where it should be. I'm also concerned about:
script.Parent.MouseButton1Click:connect(Give)
Please help! Any knowledge will be appreciated :D

1 comment
Thanks so much :D