game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if plr.Team == "Military Police" then
local GuiClone = script.OverheadGui:Clone()
GuiClone.Parent = Character.Head
local InformationLabel = GuiClone.InfoLabel
InformationLabel.Text = Player.Name..' Military Police'
end
end)
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if plr.Team == "Military Police" then
local GuiClone = script.OverheadGui:Clone()
GuiClone.Parent = char.Head
local InformationLabel = GuiClone.InfoLabel
InformationLabel.Text = plr.Name..' Military Police'
end
end)
end)
Have you tried setting the Adornee the the chars head?
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if plr.Team == "Military Police" then
local GuiClone = script.OverheadGui:Clone()
GuiClone.Parent = char.Head
GuiClone.Adornee = char.Head
local InformationLabel = GuiClone.InfoLabel
InformationLabel.Text = plr.Name..' Military Police'
end
end)
end)
The script is in server script service it is a local script, it should display your name and team name. It currently diplays half my name and is glued on to my face.