Script:
script.Parent.Parent.Equipped:connect(function() script.Triva.Enabled = true script.Triva.Parent = game.Players.LocalPlayer.PlayerGui end) script.Parent.Parent.Unequipped:connect(function() script.Triva.Enabled = false script.Triva.Parent = game.ServerStorage end)
So basically when I unequip the tool it stays on my screen and doesn't go into ServerStorage.
pls help
You set its parent to the PlayerGui so it isn't in the script any more.
Also, use Connect (uppercase C), not connect (lowercase C), as connect is deprecated
local trivia = script.Trivia script.Parent.Parent.Equipped:Connect(function() local clone = trivia:Clone() clone.Enabled = true clone.Parent = game.Players.LocalPlayer.PlayerGui script.Parent.Parent.Unequipped:Wait() clone:Destroy() end)