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

How to Make Button Invisible true if localplayer have Boolvalue True?

How to Make Button Invisible true if localplayer have Boolvalue True Please i know its not scripts pleasing site but i dont know even where to get the information how that server will get local player item bool value is true then its will be invisible true but if its not if its will be visible? please give links "Not Out Dated"

1 comment

0

Dont close I just need Information How to make it or Tutorials Thanks.

2 answers

✓ Accepted answer

BoolChanged Source

Try that (LocalScript)

local Player = game:GetService('Players').LocalPlayers

local PlayerGui = Player:WaitForChild('PlayerGui')
local TextButton = -- Your TextButton
local Bool = -- Your BoolValue

Bool.Changed:Connect(function()
     TextButton.Visible = Bool.Value
end)

Source for learning to script RobloxDev, ScriptingHelpers Glossary

1 comment

0

Thanks ill try

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