Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to fix Billboard GUI's scaling when you zoom your Camera out?

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

0

uhhh

0

uhhhhh

0

Use :Connect(), :connect is deprecated.

1 answer

✓ Accepted answer

well ye, there is an option in the billboard GUI that makes this not - happen, but it would be easier if u edited the humanoid display name to show their rank instead.

5 comments

0

Why? You can just set the scale of the Gui

0

ye thats the option

0

i was talking abt

0

Ok, but I wouldn't edit the display name in my opinion.

0

o ok that was just a random thought i added and if u think abt it its not that bad

This discussion is preserved as it was. New answers, comments, and votes are closed.