How do I fix the text?

I’m trying to make it so the text shows the amount of exp they have. But, when I give the amount of the exp it shows like 0.1. When it should be like 10. So I want the size of 0.1 but I want the amount which is 10 for exaemple.

Script:
local Indicator = script.Parent.Parent.Parent.Outline

local player = game.Players.LocalPlayer

while wait() do

Indicator.Size = UDim2.new(player:WaitForChild("leaderstats"):FindFirstChild("Exp").Value,0,1,0)

end

if (player:WaitForChild("leaderstats"):FindFirstChild("Exp").Value <= 0) then

Indicator.Visible = false

end

We may need to see the code you have to see what’s going on

2 Likes

Also, please choose a slightly darker shade of green. It is way too bright… similar to discord’s light mode I did exaggerate, but please make it like 0,200,50 or sth.

1 Like

The text property… is not changed at all?

This doesn’t show the issue with the text, it only shows what the indicator gui does to make it work

Also, use the Changed event on the Exp’s value instead of a while loop, the if statement underneath will never be reached

1 Like

My problem is that it shows 0.1. Is there any way to make it so than it like multiplies the number by 10 or something to make it show 1. There is no error I’m just asking if there is a way to do this.

You can set the text property to show the required value.

Also I fixed the color______________.

1 Like

Do you evne have any code set up that updates the text of the indicator gui?

And for what you said, you can just do this

TextLabel.Text = tostring(Exp.Value * 10)

to multiply the Exp by 10 and then display.

2 Likes