You can anchor the part then it's done. You can use CFrame instead of Vector3 incase there is a part in the way like a player so instead of the part's y axis is jumping from 1 to 7, you can make the part go through any part.
for i = 1 , 50 do
wait(0.001)
workspace.Part.CFrame=CFrame.new(0,i,0)
end
If you want it to fall after it reaches 50 studs do this:
for i = 1 , 50 do
wait(0.001)
workspace.Part.CFrame=CFrame.new(0,i,0)
if i == 50 then
workspace.Part.Anchored = false
end
end
No lets help you on your question: how to make the part go up in the position it is already in.
workspace.Part.Position.X = 0
for i = 1 , 50 do
wait(0.001)
workspace.Part.CFrame=CFrame.new(workspace.Part.Position.X,i,workspace.Part.Position.Z)
end
It's really simple. Hope it helps!
EDIT
for i = 1 , 50 do
wait(0.001)
workspace.Part.CFrame=CFrame.new(workspace.Part.Position.X,i,workspace
.Part.Position.Z)
end
4 comments
Problem is on line 7. The code went off the line cause it was too long. Just copy my script, go over my script and click the image of 2 papers then edit that into a touched script.
The script got cut off on line 7.
Is there an easier way to make it so where ever i place the block and touch it that's where it goes up?
Nope sadly :C Unless you replace the X and Z axis with the parts X and Z.