Hi guys, I would like to know what is wrong with my form, I would like the 70 to go down until it reaches 0
local bv = Instance.new("BodyVelocity",Handle)
bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Velocity = tool.Handle.CFrame.LookVector * 70 -- Change the number if you want :D
for i = 0, 70, -5 do
i = bv.Velocity
print(i)
end
You’re actually decreasing the first number value (0) by -5, so instead it’s gonna do down by -5, -10, -15, etc. Let’s break this down here:
for i = 70, 0, -5 do
“i” is the first variable, or what it’s gonna be looped through each time
The first number is gonna be the starting position (70)
The second number is gonna be where the loop will end (0)
And the third number is the amount of times you’re either increasing or decreasing it by (-5, 5, whatever)
If we put this loop instead, and print it each time:
for i = 70, 0, -5 do
print(i)
We should get an expected Output of what 70 - 5 is (Or 65), then that number will decrease by 5 again (60) until it reaches it’s destination (0)