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 :
01 | game.Players.PlayerAdded:connect(onPlayerRespawned) |
02 | function onPlayerRespawned(newPlayer) |
04 | gui = Instance.new( "BillboardGui" ) |
05 | gui.Parent = newPlayer.Character.Head |
06 | gui.Adornee = newPlayer.Character.Head |
07 | gui.Size = UDim 2. new( 3 , 0 , 3 , 0 ) |
08 | gui.StudsOffset = Vector 3. new(- 0.3 , 1.4 , 0 ) |
09 | text = Instance.new( "TextLabel" ) |
10 | text.Text = "Devillian_Desire" |
11 | text.Size = UDim 2. new( 1.8 , 0 , 0.5 , 0 ) |
12 | text.Position = UDim 2. new(- 0.125 , 0 ,- 0.25 , 0 ) |
13 | text.BackgroundTransparency = 1 |
17 | function onPlayerEntered(newPlayer) |
18 | newPlayer.Changed:connect( function (property) |
19 | if (property = = "Character" ) then |
20 | onPlayerRespawned(newPlayer) |
25 | game.Players.PlayerAdded:connect(onPlayerEntered) |