RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script a text button that will not become visible when a player has a bool value of knight"
-- local script local player = game.Players.LocalPlayer local textButton = script.Parent local function checkKnightStatus() local knightStatus = player.leaderstats:FindFirstChild("Knight") if knightStatus and knightStatus.Value == true then textButton.Visible = false else textButton.Visible = true end end player.leaderstats.ChildAdded:Connect(checkKnightStatus) player.leaderstats.ChildRemoved:Connect(checkKnightStatus) checkKnightStatus()