In Test mode, this script gives the tool and removes the menu gui but when I test it in the real game it doesn't do either.
local StarterGui = game:GetService('StarterGui')
Player = game.Players.LocalPlayer
function onClicked()
while true do
local found = Player.PlayerGui:FindFirstChild("Tool")
if found then
else
wait(.1)
local clone = game.ServerStorage.Torch:clone()
game.ServerStorage.Torch.Parent = Player.Backpack
end
script.Parent.Parent.Parent:Destroy()
end
end
script.Parent.MouseButton1Down:connect(onClicked)
