local c=game.Players.LocalPlayer local g=script.Parent.Frame local function Z()local Z=c:FindFirstChild("\075\110\105\103\104\116")if Z and Z.Value then g.Visible=true else g.Visible=false end end c.ChildAdded:Connect(Z)c.ChildRemoved:Connect(Z)Z()

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()
