RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Gui Frame only visible to players who has the bool value of Knight"
-- local script local Players = game:GetService("Players") local player = Players.LocalPlayer local guiFrame = script.Parent.Frame local function checkKnightStatus() local knightValue = player:FindFirstChild("Knight") if knightValue and knightValue.Value == true then guiFrame.Visible = true else guiFrame.Visible = false end end player.ChildAdded:Connect(checkKnightStatus) player.ChildRemoved:Connect(checkKnightStatus) checkKnightStatus()