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

How would I make this "Part" go at a slower rate?

Asked by
tanzane 100
10 years ago
while true do
wait(3)
    script.Parent.Position = Vector3.new(script.Parent.Position + Vector3.new(0,0.1,0))
wait(3)
end

Well, to me, it seems as if this code works. But my problem is, everytime it runs once, the brick dissapears, so I'm assuming it's running ultra fast or it's broken. I want it to go slower, like move 1 stud up every 3 seconds but it just dissapears. Is there any better way to type this code or is this broken and is fixable?

2 answers

Log in to vote
2
Answered by 10 years ago

You need to do

script.Parent.Position = script.Parent.Position + Vector3.new(0, 0.1, 0)

0
You're awesome bro, thanks. tanzane 100 — 10y
0
Np xImmortalChaos 565 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

Good job xImortal.

0
You could of commented that, lol. tanzane 100 — 10y

Answer this question