Hello. I am trying to script the spinning motion of a ninja star projectile but I am having problem with one thing. I want it to spin, and I can do that with tween or animation but in both cases it ACTUALLY spins and the way hit detection works is to send shapecast towards ninja star’s face. When it actually spins so does its face and therefore the hit detection gets messy. How can I solve this?
4 Likes
Assuming the cast is done on the server, you can spin it on the client where the player will see it and the server will not.
If both the spinning and the cast have to be done on the same side, make an invisible part that acts like the old shuriken that doesn’t spin, and then move the seperate spinning shuriken with it.
1 Like
Yeah cast is done on the server. So would it be fine if I write a local tween script inside the projectile?
yes
cast on the server and then do the visuals on the client