Hello there, I have a LocalScript here where the TextButton and TextLabel's visiblity is supposed to be set to false once the BoolValue is set to false, however it does not seem to work, no output errors or whatsoever, how do I remedy this?
local plr = game:GetService("Players").LocalPlayer
local value = plr.PlayerScripts.Value
local button = script.Parent
button.MouseButton1Click:Connect(function()
value.Value = false
end)
local function trigger()
button.Visible = false
plr.PlayerGui.Roll.TextLabel.Visible = false
end
if value == false then
trigger()
end

2 comments
Thanks it worked
Glad to hear it!