#scaling or sum

1 messages · Page 1 of 1 (latest)

frank frigate
#

local multiLabel = Instance.new("TextLabel")
multiLabel.Parent = billboard
multiLabel.Size = UDim2.new(0.2, 0, 0.2, 0)
multiLabel.Position = UDim2.new(0.39, 0, 0.33, 0)
multiLabel.BackgroundTransparency = 1
multiLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
multiLabel.Font = Enum.Font.GothamBold
multiLabel.TextSize = 24
multiLabel.Text = "Multi: 1"
multiLabel.TextWrapped = false

local multiStroke = Instance.new("UIStroke")
multiStroke.Parent = multiLabel
multiStroke.Color = Color3.fromRGB(255, 255, 255)
multiStroke.Thickness = 2

how do i fix this script because when i zoom out/in the size changes for some reason, i know there is a way using scaling but idk how without messing up size and pos like i tried using textscaled

night gate
#

just use offset in the size instead of scale

frank frigate
lavish charm
shy fable
#

make rich text true

#

and textwrapped false

frank frigate
frank frigate
frank frigate
# shy fable make rich text true
    local multiLabel = Instance.new("TextLabel")
    multiLabel.Parent = billboard
    multiLabel.Size = UDim2.new(0.2, 0, 0.2, 0)
    multiLabel.Position = UDim2.new(0.39, 0, 0.33, 0)
    multiLabel.BackgroundTransparency = 1
    multiLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
    multiLabel.Font = Enum.Font.GothamBold
    multiLabel.TextSize = 24
    multiLabel.Text = "Multi: 1"
    multiLabel.RichText = true
    multiLabel.TextWrapped = false

    local multiStroke = Instance.new("UIStroke")
    multiStroke.Parent = multiLabel
    multiStroke.Color = Color3.fromRGB(255, 255, 255)
    multiStroke.Thickness = 2
``` didn't work
#

zooming in/out still affects size

shy fable
#

im ngl why do you have to do this as an instance

frank frigate
#

still learning

shy fable
#

im considerig this code as useless because you can just do this very quickly without a script

frank frigate
#

i was thinking of just creating it and all but i don't really know much how to apply it and stuff

shy fable
#

wait is this in billboard gui?

frank frigate
#

yes

shy fable
#

whats the billboard gui size

frank frigate
#
    local billboard = Instance.new("BillboardGui")
    billboard.Name = "CashDisplay"
    billboard.Adornee = head
    billboard.Parent = head
    billboard.AlwaysOnTop = true
    billboard.StudsOffset = Vector3.new(0, 1.8, 0)
    billboard.Size = UDim2.new(10, 0, 10, 0)`
#

i know how to fix it but

#

i don't know how fully

#

you gotta use scale instead of this size

#

it worked for another project

#

i saw it online

shy fable
#

id rather use UDim2.fromScale(10,10) instead of that

#

but its other stuff that works also

frank frigate
#

alr i'll try it

#

text still has issues

#

what i mean like is here, i altered this and it worked for another project, i know we already tried but this may help ig?

shy fable
#

and thats why

#

its offset

#

its not scaled

#

scaled is a ratio while offset is literally an offset

#

people use scaled so its the same for everyone

frank frigate
shy fable
#

well always use scaled

frank frigate
#

oh, do you know a fix for my issue?

shy fable
#

im ngl show the properties of the textlabel and see if it actually applied or not

frank frigate
#

alr

shy fable
#

maybe remove textwrapped

#

or something

frank frigate
shy fable
#

imma just copy and paste the code

frank frigate
#

also what i mean by zooming and stuff is this, the cash is a fixed size, however, its multi line and is too small (i commented out text wrapped and text size then added text scaled true)

shy fable
#

remove richtext and textwrapped

#

just do the textscaled true

#

nvm keep richtext truer

#

true

#

problem is that textscaled and richtext weren't on

#

and textwrapped is automatically on when textscaled is on so it might glitch out abit

#

a bit

frank frigate
#

i have a feeling i can just extend width but i tried that and broke the pos

shy fable
#

make textlabel bigger then

frank frigate
#

i'm confused

shy fable
#

bro extend size x

alpine gardenBOT
#

studio** You are now Level 11! **studio

frank frigate
#

also btw touching the size property in billboard gui affects the text size aswell, its fine but might help

shy fable
#

imma be real

frank frigate
#

?

shy fable
#
textLabel.Size=UDim2.fromScale(1,0.2)
#

simple as that

#

nvm thats y

frank frigate
#

ik what u mean

#

yeah

#

i'll try it

shy fable
#

ok fixed it

shy fable
frank frigate
#

uh, its a bit fat rn

alpine gardenBOT
#

studio** You are now Level 12! **studio

frank frigate
#

but its multi line 🙂

#

nvn

#

nvm

#

ik how to fix it