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?
COMMUNITY QUESTION
How to make the hand n head follow cursur while the hand is holding a hammer in 2D?
1 answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
https://wiki.roblox.com/index.php?title=API:Class/BodyGyro