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

How do i point arms towards the place that my mouse is?

Asked by 4 years ago

So, I am making a gun, and I am having trouble with the question above. Whenever I attempt to do this, my arms just glitch out in a weird way. here is what I've done so far

mouse.Move:Connect(function()
        player.Character["Left Arm"].CFrame = CFrame.new(player.Character["Left Arm"].Position,Vector3.new(mouse.X,mouse.Y))
        player.Character["Right Arm"].CFrame = CFrame.new(player.Character["Right Arm"].Position,Vector3.new(mouse.X,mouse.Y))
        end)

Answer this question