Hello everyone,
I am not experienced when it comes to animation and I came across this problem with my slide animation
This is how the animation should look like:
And this is how it came out:
I don’t really think it has to do with the script but here it is just in case
local Player = game:GetService("Players").LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remote = ReplicatedStorage.Events.Remote.MovementRemote
local SlideAnimation = ReplicatedStorage.Assets.Animations.Slide
local playing = false
Remote.OnServerEvent:Connect(function(player)
print(" play")
local Animator = Instance.new("Animator")
Animator.Parent = player.Character:FindFirstChild("Humanoid")
if playing == false then
Animator:LoadAnimation(SlideAnimation):Play()
playing = true
task.wait(1)
playing = false
Animator:LoadAnimation(SlideAnimation):Stop()
elseif playing == true then
return
end
end)