game.Players.PlayerAdded:connect(function(player)
	repeat wait() until player.Character.Head
	player.Character.Humanoid.DisplayDistanceType = "None"
	
	local billboard = Instance.new("BillboardGui")
	billboard.Parent = player.Character.Head
	billboard.Adornee = player.Character.Head
	billboard.Size = UDim2.new(1,0,1,0)
	billboard.SizeOffset = Vector2.new(0,2)
	
	
	local frame = Instance.new("Frame")
	frame.Parent = billboard
	frame.Size = UDim2.new(1,0,1,0)
	frame.BackgroundTransparency = 1
	
	local text = Instance.new("TextLabel")
	text.Parent = frame
	text.Size = UDim2.new(1,0,1,0)
	text.Position = UDim2.new(0,0,0,0)
	text.BackgroundTransparency = 1
	text.Text = player.Character.Name
	text.TextColor3 = Color3.new(255, 255, 255)
	text.TextScaled = true
	
	local level = Instance.new("TextLabel")
	level.Parent = frame
	level.Size = UDim2.new(1,0,1,0)
	level.Position = UDim2.new(0,0,-.5,0)
	level.TextScaled = true
	level.BackgroundTransparency = 1
	levelNumber = player.PlayerGui.ExperienceGui.Background.Background.level.Value
	level.Text = "Level".." "..levelNumber
end)

when i press start server, it loads a player gui ito the first player but the 2nd players player gui wont load

5 comments

1

Code? Local or not Local? Server-side or Client-side?

0

^

0

its a local script, i dont know what u mean by clien and server side

0

Client side and server side are the other terms for local and server. Anyway, PlayerAdded in a LocalScript typically means the script does not get the first player in a game but waits for the next player to enter to fire. Mainly because the first player or players before it have already been "Added" to the game.

0

I will favorite this question and get back to it when I have the time.