This script only works in studio please help me I am using a Local Script To open a Gui when a player equips a tool but tje gui comes only in studio and not in Game

local Plr = game.Players.LocalPlayer
local GUI = Plr:WaitForChild("PlayerGui")
local Frame = GUI:WaitForChild("ScreenGui").Frame

script.Parent.Parent.Equipped:Connect(function()
	Frame.Visible = true
	print("Phone is been Equipped")

end)

script.Parent.Parent.Unequipped:Connect(function()
	Frame.Visible = false
	print("Phone is been UnEquipped")

end)

Here is the script please add me on DIscord and it will be better to help me with this Agentilspy Gaming#8624

1 comment

0

Not pretty sure but you could try changing the .Enabled of the GUI.ScreenGui everytime you equip and unequip the tool