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

Flying rocks are going super slow?

I'm adding a flying rock effect to a projectile and it works, but goes super slow. I'm assuming its the Velocity so I have posted my velocity script here.

		local bodyvelocity = Instance.new("BodyVelocity")
		bodyvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) * 40
		bodyvelocity.Velocity = Vector3.new(math.random(-13, 25),math.random(-13, 25),math.random(-13, 25))
		bodyvelocity.Parent = FX

(FX is the flying rock)

2 comments

0

Just mess around with the 3 values of Vector3 that set the velocity.

0

Those 3 values are for the rocks to go different directions while rising. I can't or it wont look like they are different sizes, etc.

1 answer

✓ Accepted answer

There are math operations built into Vector3's the one you will be needing is the multiply math operation, this allows you to multiply a vector3 with another or a vector3 with an number.

You can make a variable called speed

local speed = 100

and simply multiply the speed with the vector3

Vector3.new()*speed

Hope this helps :)

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