How do I make it so when I equip a tool , a gui pops up?
local players = game:GetService("Players")
local player = players.LocalPlayer
local StarterGui = player:WaitForChild("StarterGui")
local CheeseBlock = script.Parent
local Cheesegui = StarterGui:WaitForChild("CheeseGui")
CheeseBlock.Equipped:Connect(function()
Cheesegui.Enabled = true
end)
CheeseBlock.Unequipped:Connect(function()
Cheesegui.Enabled = false
end)
This is my code ; this code is inside my tool "CheeseBlock" which is in replicated storage, CheeseGui is initially not set to enabled.
** You are now Level 1! **