I have looked and searched but unfortunately I haven’t found any tilted movement for R6.
By tilted movement I mean this:
https://gyazo.com/409c245c4a46e48bc239d40d045ddfbd
(video taken from Mystifine as I don’t have much time to go into a game with the feature and record.)
My code I tried converting to R6 but failed:
local localPlayer = game:GetService("Players").LocalPlayer
local Character = localPlayer.Character or localPlayer.CharacterAdded:wait()
local humanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local normalize = Vector3.new(1,0,1)
local tiltFactor = 1
game:GetService("RunService").RenderStepped:Connect(function()
local movementVector = Character.Torso.Velocity*normalize*tiltFactor
movementVector = (Character.Torso.CFrame-Character.Torso.CFrame.p):Inverse()*movementVector
local x = math.rad(movementVector.X)
local z = math.rad(movementVector.Z)
local goalCFrame = CFrame.Angles(-z,0,x)
humanoidRootPart.RootJoint.C1 = humanoidRootPart.RootJoint.C1:Lerp(goalCFrame,0.25)
end)