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

How do you send a part towards the mouse (Basically mouse aim)?

Asked by 6 years ago

So, I am trying to send a ball(Part) to where the mouse is using velocity but I can't seem to figure out how... this is what I have

local Mouse = game.Players.LocalPlayer:GetMouse()

    local v = Instance.new("BodyVelocity",Entei)
        v.maxForce = Vector3.new(math.huge,math.huge,math.huge)
        v.velocity = Mouse.Hit.p * 5
0
Read my bio. hiimgoodpack 2009 — 6y
0
You could always use CFrame. gmatchOnRoblox 103 — 6y
0
Try using mousehit.LookVector chandrakantswarnkar 2 — 6y

Answer this question