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

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

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

✓ Accepted answer

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

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

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