Script: local Part =script.Parent local ClickDetector = Part.ClickDetector local opened = false ClickDetector.MouseClick:Connect(function(player) local PlayerGui = player:FindFirstChild("PlayerGui") local --any name here (a)-- = PlayerGui:FindFirstChild("--your gui name (b)--")
if opened == true then
opened = false --(a)--.Frame.Visible = false
else
opened = true --(a)--.Frame.Visible = true end end)
ty u helped me on my game cause i needed an thing when i click on a part of the cashier thing a frame appears where u can select what u want.......TYY(im ass at english)
Script:
local Part =script.Parent
local ClickDetector = Part.ClickDetector
local opened = false
ClickDetector.MouseClick:Connect(function(player)
local PlayerGui = player:FindFirstChild("PlayerGui")
local --any name here (a)-- = PlayerGui:FindFirstChild("--your gui name (b)--")
if opened == true then
opened = false
--(a)--.Frame.Visible = false
else
opened = true
--(a)--.Frame.Visible = true
end
end)
dude this is a lifesaver tyyyyyy
how can i do what when the part is the tool item?
ty u helped me on my game cause i needed an thing when i click on a part of the cashier thing a frame appears where u can select what u want.......TYY(im ass at english)
ty
Can you help me whit my game, I need some one that can script