What does this message mean?

  1. What do you want to achieve? I want to make a text scrolling effect using UIPadding

  2. What is the issue? It appears this message “For loop ends at 5 instead of 5.1; did you forget to specify step?”
    image

  3. What solutions have you tried so far? I looked around the forums and nothing came

game:GetService("RunService").RenderStepped:Connect(function()
	for i = 1, 2.55 do
		script.Parent.PaddingLeft = i
	end
end)

Ok so basically I want to create a moving text effect in my game, and I got this warning, What does it mean? What can I do to prevent it?

The only thing which comes to my mind is that as default for loops use iteration number of 1,you can never reach the 2.55 which is the end number, try to rewrite the for loop to something like this:

for i = 1, 2.55, 0.05 do

By adding 0.05 to the starting number 1, we can be sure the number will be at some point 2.55

Thanks (I can’t like the post because of the daily like limit)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.