Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Can i make this run more smooth?

Asked by 10 years ago

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
`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. BlueTaslem 18071 — 10y
0
Ok, Thanks, But can someone please tell me the answere to my question? QuantumScripter 48 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago
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.

0
Oh Thanks, In one of my other scripts i needed it to go through other blocks now i know what to use! :D QuantumScripter 48 — 10y
0
Okay, you're welcome. EzraNehemiah_TF2 3552 — 10y
0
One more question QuantumScripter 48 — 10y
0
When i put the script in the jet it made it fly sideways, How do i fix this? QuantumScripter 48 — 10y
View all comments (3 more)
0
? QuantumScripter 48 — 10y
0
Hello? QuantumScripter 48 — 10y
1
@madman5533 Simple solution: Play around with the Vector3 arguments. Redbullusa 1580 — 10y
Ad

Answer this question