Overheadgui's Toggle On/Off Help

So recently I’ve been making a Vibe Game and I’ve come with a struggle of just some of the Local Client Side Scripting.

I’m in need of help when it comes to how I can “Toggle” on/off
the Players “OverheadGui’s” now by that I mean the Gui’s that are just above the players heads. Now if someone were to click the gui it would turn red like shown in the video, but also remove “Locally” all the players Gui’s above their heads.

If anyone has an easy way of doing this or helping me please let me know, I mainly have everything ready in this. I tried to go around the way of just disabling the Gui’s when you click but for some reason it still wouldn’t do it.

Feel free to watch the video and let me know! Thankyou.

My Coding Start :

Gyazo / Example : https://gyazo.com/213cf156c2a8b5411838ecfb873dbf4d

Also the script that puts the overheads is a normal script in serverscriptservice.

1 Like

You can just loop through every players characters and then disable the Billboardgui.

for i,v in pairs(game.Players:GetPlayers()) do --Looping through every player
    local character = v.Character -- Getting players character
    local head = character.Head -- Getting head
    head.VIPOverheadGui.Enabled = false -- Disabling the Billboardgui
end
2 Likes

Instead of doing

You could do

head.VIPOverheadGui = not head.VIPOverheadGui.Enabled
1 Like

Thankyou very much, that helped a ton. Just what I needed!

2 Likes