Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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)
0
uhhh TheluaBanana 946 — 5y
0
uhhhhh TheluaBanana 946 — 5y
0
Use :Connect(), :connect is deprecated. LoganboyInCO 150 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

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.

0
Why? You can just set the scale of the Gui turtle2004 167 — 5y
0
ye thats the option TheluaBanana 946 — 5y
0
i was talking abt TheluaBanana 946 — 5y
0
Ok, but I wouldn't edit the display name in my opinion. turtle2004 167 — 5y
0
o ok that was just a random thought i added and if u think abt it its not that bad TheluaBanana 946 — 5y
Ad

Answer this question