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

How would I get a more accurate throw for my fireball script?

Asked by 6 years ago

I currently have a fireball script that adds a velocity with the x value "mouse.Hit.lookVector.X" the y value at 0, and the z value at "mouse.Hit.lookVector.Z" (I have mouse defined in the script). The problem with this is it gets the mouses position, meaning it ignores the player if I click them, completely throwing off the accuracy. My question is, how could I modify my script to make the fireball go to the player if I click him, and not the baseplate behind him?

Answer this question