So I recently found this game and I really liked a mechanic that they had, but I have a few questions about how I would make something like this.
https://i.gyazo.com/cda2beba3bd934e5ddbb92602b3fddb8.gif
I tried attaching a particle emitter to the hand's attachment, and it works and gives off a similar effect, and I made it so that the orientation of the attachment equals the mouse look vector but it makes it look really weird and the position isn’t accurate. I made something like
Attachment.Orientation = mouse.Hit.LookVector
But how would I make something similar to that because the way I tried it didn’t really give an accurate position. Thank you for anyone who gives me insight, I think the way this deals damage is by raycasting but I’m not sure
How about doing
local player = game.Player.Localplayer local head = player.Character.Head Attachment.Orientation = (head.CFrame.p - mouse.Hit.p).unit