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

Gui won't display on tool Equipped?

My screen gui won't display

script.Parent.Equipped:Connect(function()
	script.Parent.Parent.Parent.StarterGui["Device Screen"].Enabled = true
end)

script.Parent.Unequipped:Connect(function()
	script.Parent.Parent.Parent.PlayerGui["Device Screen"].Enabled = false
end)

I have tried startergui and playergui

1 comment

0

you should try to define it as a value like "local screengui = script.Parent.Parent.Parent.StarterGui["Device Screen"] 

2 answers

✓ Accepted answer

You are going to be using PlayerGui but instead of Script.Parent Your going to need to use game.Players.LocalPlayer.PlayerGui Full example in local script in your tool

game.Players.LocalPlayer.PlayerGui["Device Screen"].Enabled =  true --For the Unequipped function copy this and change it to false

Hope this Helps!!

You have set the PlayerGui (which is the correct one) to false instead of true.

1 comment

0

Hu that just disables the players gui completely

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