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

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

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!

1 comment

0

***I would just like to also ask what order should everything be in?

1 answer

Put this script whenever you want the velocity to change

bodyvelocity.Velocity = Vector3.new(0, -8, 0)

1 comment

0

It did not work

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