You can write your topic however you want, but you need to answer these questions:
I’m trying to play an animation that is published by the same group that the game is published under. Using :Play() on the player’s animator the action layer is 4 and no other animations are playing
Well the animation is not even playing.
I have tried republishing the animation multiple times. Waiting for the animation to load ( It apparently loads instantly?)
I’m making a game where ledge climbing can be done via proximity prompts and whenever I try to play the climb animation the player just stands still (Even outside the editor?)
There are some gifs that show the issue
Here is the script I am using.
function climb(player)
local animator = player.Character.Humanoid.Animator
local climbAnim = animator:LoadAnimation(script.Climb)
local humanoid = player.Character.Humanoid
local RootPart = player.Character.HumanoidRootPart
local ledge = script.Parent.Parent.Parent
humanoid:MoveTo(ledge.StartingPos.Position)
humanoid.MoveToFinished:Wait()
RootPart.CFrame = ledge.StartingPos.CFrame
climbAnim:Play()
game.ReplicatedStorage.ToggleAnimationCamera:FireClient(player,true)
climbAnim.Stopped:connect(function()
game.ReplicatedStorage.ToggleAnimationCamera:FireClient(player,false)
RootPart.CFrame = ledge.EndingPos.CFrame
end)
wait( 0.75 )
game.ReplicatedStorage.ToggleAnimationCamera:FireClient(player,false)
RootPart.CFrame = ledge.EndingPos.CFrame
end
script.Parent.Triggered:Connect(climb)
You’re right, but shouldn’t we remove animator because there’s really no use unless you’re using it to customize other things from the animation, instead of
local climbAnim = animator:LoadAnimation(script.Climb)
we could do
local humanoid = player.Character.Humanoid
local climbAnim = humanoid:LoadAnimation(script.Climb)
(remove animator variable by the way)
This could possibly work
Also Obvious, is the Animation posted to the actual owner of the group or player? Example: Game is owned by you, is the animation also owned by you or a group?