I’ve come across a weird issue where after I tween my player, every time you jump while going backwards which is weirdly specific, it makes you go flying forward. I’ve looked around and can’t seem to find anyone having the same issue. Any help would be greatly appreciated.
local animations = script.Parent.animations
local tweenService = game:GetService("TweenService")
local tInfo = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
script.Parent.Triggered:Connect(function(plr)
local poleSlideEnd = plr.Character.Humanoid.Animator:LoadAnimation(animations.poleSlideEnd)
local poleSlideStart = plr.Character.Humanoid.Animator:LoadAnimation(animations.poleSlideStart)
local poleSlide = plr.Character.Humanoid.Animator:LoadAnimation(animations.poleSlide)
plr.PlayerValues.plrFirepole.Value = true
plr.Character:WaitForChild("HumanoidRootPart").CFrame = script.Parent.Parent.Parent.poleSlidePosition1.CFrame
plr.Character.HumanoidRootPart.Anchored = true
plr.Character.Humanoid.WalkSpeed = 0
poleSlideStart.Priority = Enum.AnimationPriority.Action4
poleSlide.Priority = Enum.AnimationPriority.Action4
poleSlideEnd.Priority = Enum.AnimationPriority.Action4
poleSlideStart:Play()
poleSlideStart:GetMarkerReachedSignal("Sliding"):Connect(function()
script.Parent.Parent.player_pole_slide:Play()
poleSlide:Play()
local tween = tweenService:Create(plr.Character.HumanoidRootPart, tInfo, {CFrame = script.Parent.Parent.Parent.poleSlidePosition2.CFrame})
tween:Play()
tween.Completed:Connect(function()
poleSlideEnd:Play()
poleSlideEnd:GetMarkerReachedSignal("SlidingEnd"):Connect(function()
plr.PlayerValues.plrFirepole.Value = false
plr.Character.HumanoidRootPart.Anchored = false
plr.Character.Humanoid.WalkSpeed = 12
poleSlideStart:Stop()
poleSlideEnd:Stop()
poleSlide:Stop()
end)
end)
end)
end)