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

How do I make it so that after 10 seconds BodyVelocity changes to 0,-8,0?

Asked by 6 years ago

How exactly do I script a part so that after 10 seconds BodyVelocity changes to 0,-8,0? I'm scripting one of those sky lanterns as of now.

Here's a script I made for the fire and light in the sky lantern, so that after 10 seconds they both disappear.

light = script.Parent.PointLight
fire = script.Parent.Fire

wait(10)
light.Enabled = false
fire.Enabled = false

I want to do that with BodyVelocity, but not stop it. I want it to change.

Keep in mind this is the first time I've scripted something on my own. (By the way, I know I need to add more; or change it completely)

bodyvelocity = script.Lantern.BodyVelocity

wait(10)

Thanks!

0
***I would just like to also ask what order should everything be in? TheBeaver101 28 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Put this script whenever you want the velocity to change

bodyvelocity.Velocity = Vector3.new(0, -8, 0)
0
It did not work TheBeaver101 28 — 6y
Ad

Answer this question