I’m making Thor’s hammer. Everything went well, except for the flying ability. When the mouse is pointed down, the player flips 180 degrees on the HumanoidRootPart’s Z-axis. This video may give you a clearer description (because I’m bad at describing):
robloxapp-20211020-1922022.wmv (1.9 MB)
I haven’t tried anything yet because I’m new to CFrame :). I have a shallow understanding of it. By the way, here’s my script:
spawn(function()
while wait() and bodyVelocity and bodyGyro do
game.Players.LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Flying)
bodyGyro.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, mouse.Hit.p)*CFrame.Angles(math.rad(-60), 0, 0)
bodyVelocity.Velocity = (mouse.Hit.p - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Unit*50
end
end)
There’s a function that triggers this flight ability but that isn’t important. In addition, the Body Gyro and Body Velocity have MaxTorque and MaxForce all set to math.huge.