Hey, I’m having an issue where the player’s lower torso won’t rotate as it should when on a Skateboard Platform?
Here is what it looks like -
Here is what it should look like -
Thank you for your help!
Here are the Scripts Involving the Animation
function GetAnimation(AnimName)
if not Humanoid then
return
end
local RigType = Humanoid.RigType
if RigType == Enum.HumanoidRigType.R15 then
return Animations["R15"][AnimName]
end
end
function SetAnimation(Mode, Value)
if Mode == "Play" and Value and SkateboardEquipped and CheckIfAlive() then
for i, v in pairs(ActiveAnimations) do
if v.Animation == Value.Animation then
v.AnimationTrack:Stop()
table.remove(ActiveAnimations, i)
end
end
local AnimationTrack = Humanoid:LoadAnimation(Value.Animation)
table.insert(ActiveAnimations, {Animation = Value.Animation, AnimationTrack = AnimationTrack})
AnimationTrack:Play(Value.FadeTime, Value.Weight, Value.Speed)
elseif Mode == "Stop" and Value then
for i, v in pairs(ActiveAnimations) do
if v.Animation == Value.Animation then
v.AnimationTrack:Stop(Value.FadeTime)
table.remove(ActiveAnimations, i)
end
end
end
end
SetAnimation("Play", {Animation = GetAnimation("CoastingPose")})
InvokeServer("Equipped", Character)
Animations = {
R15 = {
BoardKick = R15Anims:WaitForChild("BoardKick"),
CoastingPose = R15Anims:WaitForChild("CoastingPose"),
LeftTurn = R15Anims:WaitForChild("LeftTurn"),
RightTurn = R15Anims:WaitForChild("RightTurn"),
Ollie = R15Anims:WaitForChild("Ollie")
}
}