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

I'm having problems with a mouse projectile, can anyone help me?

Asked by 3 years ago

I'm a scripter but I myself don't know everything and it's very very hard for me to get this straight into my head right now. I would appreciate it if someone would take their time to help me.

Basically I want it to be so it can be aimed at cancollided objects but if the object is not cancollided it doesn't care and just goes threw or more like it just doesn't focus on that object. Can someone help me with that?

1 answer

Log in to vote
0
Answered by 3 years ago

I mean, you could just use .Touched for that. But personally, I would just raycasting and then check for the CanCollide property using an if statement.

0
Well I do want it to have gravity tho nowindplays 0 — 3y
Ad

Answer this question