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

Flying brick not workin ?

Asked by
Bulvyte 388 Moderation Voter
8 years ago

So just a simple script i want to write, but don't know where to start from

How do you rise parts up and down ?

Brick = script.Brick
BrickVelocity = Brick.BodyVelocity

while true do
BrickVelocity.velocity = Vector3.new(0,1,0)
wait(5)
BrickVelocity.velocity = Vector3.new(0,-1,0)
wait(5)
end

Basically i want it to wave in air slowly and smoothly in it's spot

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

Hello Bulvyte,

So basically you are on the right path. I made a balloon a while back that floated gently and that stuff. The tutorial on how to make the balloon is at the bottom.

How levitating a part works: You make a part levitate by using a ROBLOX module called BodyVelocity. This is actually a quite tricky part. You need a MaxForce etc. But your script is perfect, except the fact that 'velocity' does not work, it is Velocity.

Your script fixed:

Brick = script.Brick
BrickVelocity = Brick.BodyVelocity

while true do
BrickVelocity.Velocity = Vector3.new(0,1,0)
wait(5)
BrickVelocity.Velocity = Vector3.new(0,-1,0)
wait(5)
end

Please bear with me, changing that still might now work (Because I do not know the properties of your BodyVelocity

BodyVelocity is tricky. But, although I am not an expert at it, I found that make the following 'Goal' properties to these:

MaxForce | 10000,10000,10000

P | 1250

Velocity | 0,2,0

NOTICE: DIFFERENT BRICK SIZES REQUIRE MORE FORCE

worked for me.

Balloon Tutorial Easy. Take my balloon, then get a Drooling Zombie and insert the balloon into the model. This should make the levitate. I modified it, so the levitation is smooth. I had another script that I removed but the changes will stay until 6/30/16.

Thanks, -RadioactiveSherbet

Please upvote me or accept answer if you are satisfied

0
lol ur ballon has "velocity" not Velocity and it still works. but u said u need Velocity so im confused Bulvyte 388 — 8y
Ad

Answer this question