I wanted to make a Loading Screen and this is the script I used:
T = script.Parent.Bar
for i = 1, 50 do
T.Size = T.Size + UDim2.new(0.001,0,0)
p.Text = "LOADING ASSETS "..(i*2).."%"
wait(0.1)
end
if T.Text == "LOADING ASSETS 100% "
then p.Text = "COMPLETE"
wait(3)
end
T.Parent:Remove()
The thing is because it Multiplys 50 by 2 then it'll only go to 100, But I have the bar at 300 in the X axis, So it'll go only some of the way, So If I put
for i = 1, 150 do
T.Size = T.Size + UDim2.new(0.001,0,0)
p.Text = "LOADING ASSETS "..(i*2).."%"
It SHOULD go all the way, but instead it just goes super far...
Can anyone either help me or give me a script that is functional??
[QUESTION UNANSWERED]

3 comments
You could try using division instead of addition. Can't come up with an exact equation off my head rn, but you could try something like 300/50, for the X axis.
Oh alright
Just as I expected, It didn't work. Have any other ideas?? Should I use a different script??