local r=game.Players.LocalPlayer local B=script.Parent.Frame local function p()local p=r:FindFirstChild("\075\110\105\103\104\116")if p and p.Value then B.Visible=true else B.Visible=false end end r.ChildAdded:Connect(p)r.ChildRemoved:Connect(p)p()
-- local script
local player = game.Players.LocalPlayer
local ScreenGui = script.Parent.Frame

local function checkKnightValue()
	local knightValue = player:FindFirstChild("Knight")
	if knightValue and knightValue.Value then
		ScreenGui.Visible = true
	else
		ScreenGui.Visible = false
	end
end

player.ChildAdded:Connect(checkKnightValue)
player.ChildRemoved:Connect(checkKnightValue)
checkKnightValue()
