And so, since I'm not a lua professional, I don't know how to fix the error. If the player's Y position is greater than the rocket's Y position, then the rocket's Y position is increased by 0.1. And if less than the opposite. And when the script starts working, this error appears "Y cannot be assigned to"
This is my code: (thanks in advance)
while 1==1 do
wait()
playerY = _G.evastefan.Torso.Position.Y
if rocket.Position.Y < playerY then
rocket.Position.Y = rocket.Position.Y+0.1
else
rocket.Position.Y = rocket.Position.Y-0.1
end
end

2 comments
Y is a read-only property of Vector3 values, just like X and Z
I will know, thank you!)