I made a variable for a part of my script but this doesnt seem to work, the print is so I know what the value is, why doesn't it work?
local wag = 44
while true do
for i = 1, 45 do
if wag <= -44 then
wag = wag+1
wait(.5)
elseif wag >= 44 then
wag = wag-1
wait(.5)
end
end
print(wag)
end
EDIT: Can someone fix this so it goes from 44 to -44 then back up?

2 comments
What if wag is in-between -44 and 44
Oh yeah, can someone fix this so it goes from -44 to 44