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

Tool OnEquip not showing a gui, why?

So when I equip a tool, it's MEANT to show a gui, but it doesn't work. Why?

local GUI = script.ScreenGui

script.Parent.Equipped:connect(function()
GUI = script.GUI:Clone() -- copy the GUI
GUI.Parent = game.Players.LocalPlayer.PlayerGui -- place the GUI to player's playergui
end)

1 answer

✓ Accepted answer

GUI isnt in the script.

local GUI = script.ScreenGui

script.Parent.Equipped:connect(function()
nGUI = GUI:Clone() -- copy the GUI
nGUI.Parent = game.Players.LocalPlayer.PlayerGui -- place the GUI to player's playergui
wait()
end)


This should work. You were checking for an object that isnt in the script :p

1 comment

0

:/

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