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

How to make the hand n head follow cursur while the hand is holding a hammer in 2D? [closed]

Asked by 5 years ago

HI! I've tried many ways to do the script like creating my own or search it online and download it but non of them work, I even edit the script. Can someone show me the script that make the head and hand follow the cursur while the hand is holding a hammer in 2D just like the game Getting Over It?

Closed as Not Constructive by EzraNehemiah_TF2, User#1007, Zafirua, and ImageLabel

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Macbane 46
5 years ago
function torsoPoint()
    local torso = player.Character.HumanoidRootPart
    if equip and tool then
        local direction = (mouse.Hit.p - torso.Position) * Vector3.new(1, 0, 1)
            torso.CFrame = CFrame.new(torso.Position, torso.Position + direction)
    end
end

This will make the torso point at the mouse position.

Ad