Recently, I've created a group called Sharaton Hotels™ and I've been trying to make an Overhead Gui saying their name AND their rank, but when I actually do it, It starts scaling up and down when I move my Camera, any idea why this is happening?
Here's the Code :
game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,3,0)
gui.StudsOffset=Vector3.new(-0.3,1.4,0)
text=Instance.new("TextLabel")
text.Text = "Devillian_Desire"
text.Size=UDim2.new(1.8,0,0.5,0)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
end
function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end
game.Players.PlayerAdded:connect(onPlayerEntered)

3 comments
uhhh
uhhhhh
Use :Connect(), :connect is deprecated.