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

Problem with TargetPoint [closed]

Asked by 10 years ago

I've been messing around with making projectile shooting things and I noticed that when you use ~~~~~~~~~~~~~~~~~ local targetPos = humanoid.TargetPoint local lookAt = (targetPos - character.Head.Position).unit projectile.Position = character.Head.Position projectile.Velocity = lookat * 300 ~~~~~~~~~~~~~~~~~ If the script is in a hopperbin the projectile won't go in the correct direction, but when I use a tool it does. Is there any way to get around this? Also, is there a way to tell what vertical angle that a player is looking at (I don't know a better way to phrase that, sorry)? If you need me to explain the question better just say so. Thanks for any help :)

0
Are you using a LocalScript? jobro13 980 — 10y

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?