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

How would you get mouse.Hit.p while ignoring certain parts?

For my Cero skill, the player spawns a large sphere with a bunch of lines floating towards it to create a charge effect. At the same time, the player can control the direction they are looking at by moving the mouse. Of course, I run into the problem where the player will click on one of the floating parts, thereby making them look the wrong way.

http://puu.sh/7r10G.jpg

How could I efficiently make the player look the direction they're pointing at?

2 answers

✓ Accepted answer

If you place the model of the sphere into the character the mouse should ignore it. If not I may be mistaken, but you gotta try right?

1 comment

0

Yep, the Player can't click their own Character.

I don't really understand what you mean. But here is an idea. Make the parts cframe a loop from a good distance away from your torso(what your cframe was already) until the move stops. You can also make a humanoidrootjoint positioning while it works if you want to efficiently move it with your mouse. Hope this helped.

1 comment

0

Sorry for the confusion. What I'm doing is creating a large sphere in front of my character. Then, a bunch of parts will start flying into that sphere. The problem is, when trying to change direction the mouse will land on one of those flying parts, thus causing the player to look at that part. As such, it makes it hard to aim. http://www.roblox.com/B-place?id=127791097 Try Cero here.

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