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

What is this line of code I see it in nearly every magic attack?

Asked by 4 years ago
Edited 4 years ago

BodyVelocity.Velocity = (character.HumanoidRootPart.CFrame.lookVector*100)

Please help!

I need to get what the link of code means.

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

It uses the part with the BodyVelocity inside and multiplys it by lookVector (way your facing) to give it a speed of 100(The multiplier) a link for both: https://developer.roblox.com/en-us/api-reference/class/BodyVelocity https://developer.roblox.com/en-us/api-reference/datatype/CFrame Hope this is helpful

Ad

Answer this question