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 textButton = script.Parent local player = game:GetService("Players").LocalPlayer local function checkKnightStatus() local knightStatus = player:FindFirstChild("knight") if knightStatus and knightStatus.Value == true then textButton.Visible = false else textButton.Visible = true end end player.ChildAdded:Connect(checkKnightStatus) player.ChildRemoved:Connect(checkKnightStatus) checkKnightStatus()