Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can i make this run more smooth?

I have a jet fly by and what it does is spawns the jet in new vectors really fast so it looks like it is flying by. How can i make the jet fly by more smooth?

while true do
for i = 1000, -1000, -20 do
    workspace.j.p.Position = Vector3.new(i, 20, 0)

    wait(0.001)

end
	end

2 comments

2

wait will always pause for at least a thirtieth of a second, which is appx. .03. Don't fool yourself into thinking it will take .000001.

0

Ok, Thanks, But can someone please tell me the answere to my question?

1 answer

✓ Accepted answer
while true do
for i = 1000, -1000, -20 do
    workspace.j.p.CFrame = CFrame.new(Vector3.new(i, 20, 0))
workspace.j.p.Rotation = Vector3.new(0,1,0)--Edit this to make the rocket work right

    wait(.0001)

end
    end

CFrame is better than Position, the problem is that with CFrame, the block can go through blocks.

7 comments

0

Oh Thanks, In one of my other scripts i needed it to go through other blocks now i know what to use! :D

0

Okay, you're welcome.

0

One more question

0

When i put the script in the jet it made it fly sideways, How do i fix this?

0

?

0

Hello?

1

@madman5533 Simple solution: Play around with the Vector3 arguments.

This discussion is preserved as it was. New answers, comments, and votes are closed.