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

How do i make a cannonball work depending on the lookVector of the cannon?

Asked by 4 years ago

Let's say i created a Cannon that shoots Cannonballs

Is it possible to move the Cannonball depending on the angle where the Cannon is facing?

If it's lookVector then how do i get the Cannon's lookVector?

2 answers

Log in to vote
0
Answered by 4 years ago

To get a Part's LookVector , first use the CFrame property in the Part and then .LookVector . Not the tool. here:

cannon.Handle.CFrame.LookVector

Ad
Log in to vote
0
Answered by
IcyMizu 122
4 years ago

U get a lookvector by doing part.CFrame.lookVector and yes its possible to move the cannonball depending on the angle where the cannon is facing with bodygyro :) or if u ment shoot it where the cannonball is facing im not really sure what u ment

Answer this question