game.Players.PlayerAdded:connect(function(player) repeat wait()until player.Character local hatId=1045408 if player.Name=="ROBLOX"then hatId=21070012 end local hat = game:service("InsertService"):LoadAsset(hatId):GetChildren()[1] hat.Parent=player.Character end) a=Instance.new("IntValue", game.Workspace) repeat wait() a.Value=a.Value+1 until a.Value==100
repeat wait() print("checking") until game.Players.NumPlayers==1