I’m trying to send a sphere the direction the mouse is pointing, here are the scripts:
Local Script:
-- Player
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char.Humanoid
local dmg = plr.PlayerDamage
local kiDmg = plr.PlayerKiDamage
local mouseLv = plr:GetMouse().Hit.lookVector
If you’re sending a projectile, just send over the mouse.Hit.p. Then once you do that, set the sphere’s CFrame infront or on your humanoidrootpart. After that, set the CFrame again but use the CFrame.new(sphere.Position, mouse.Hit.p), so It looks at your mouse. Lastly, create a BodyVelocity and set the velocity to the lookVector of the sphere.
You’re good don’t worry. And yeah, I never stopped, I’m wayyyy better than when I posted this Honestly glad you replied to this, was funny to see how bad I was.
LOL i feel u - i do have a question though - when you use a mouse for a projectile , if they zoom hella far out their mouse becomes inaccurate as hell - and its a combat agime so some people like to zoom out- do u know a better way to detect the projectile direction because this is proving to be very annoying