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

Changing orientation of HumanoidRootPart?

Asked by 5 years ago
Edited 5 years ago

Hi, I have created custom character that contains only one part, and I set HumanoidRootPart to circle, it looks like https://imgur.com/it7yJLk, I tried changing HumanoidRootPart orientation but that doesn not take any effect. So I tried with code to set orientation, still.. Then I tried

local Players = game:GetService("Players")

local function onCharacterAdded(character)

character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(-90))

end

local function onPlayerAdded(player)

player.CharacterAdded:Connect(onCharacterAdded)

end

Players.PlayerAdded:Connect(onPlayerAdded)

Still, I was searching in google, even this website, no luck... It should look like https://imgur.com/bvzqfDd. I asked in Roblox discord, Scripting Helpers discord too, still...

0
You're actually rotating the character itself? DeceptiveCaster 3761 — 5y
0
I want to change Orientation. I have tested and found that "player.Character.HumanoidRootPart.Orientation = Vector3.new(0, 0, -90);" is working, tested on mouse move event, when I stop moving mouse, Orientation resets. So this is working but for a moment, how to always keep orientation? ItsTauTvyDas 0 — 5y

Answer this question