Sometimes the character is stuck in idle and one time it was stuck on jumping
That means a script of yours is interfering, something in starterplayer is messing your anims up, your humanoid is weird, or you have a bad animation script.
Because the last two are ruled out, please check for the first two.
I copyed the animation script from another R6 game, so it should be fine, but maybe there is a script that is interfering
I think I figured out the solution to the problem. I need to somehow put the animation script into each player in the game. I put it in my character and it worked. @iGottic
Does anyone know how to do that?
StarterCharacterScripts is supposed to do that. You could have a script that checks if a player character has been added to the Workspace and then have it place the LocalScript inside.
'''
if script.Parent == game.StarterPlayer.StarterCharacterScripts then
game.StarterPlayer.StarterCharacterScripts.Animate.Parent = game.Players.LocalPlayer
end
'''\
Would this work?
Why make the parent the LocalPlayer? Try my idea.
Yeah I know, I’m trying to parent the script the to players. Never mind it doesnt work
Any other ideas? (30 charsssss)
I’m assuming this means your StarterCharacterScripts isn’t placing things into characters like it should be. Try this:
game.Workspace.ChildAdded:Connect(function(thing)
if thing:FindFirstChild("Humanoid") then -- check if the new child is a player
print("It is a player")
local animate = game.StarterPlayer.StarterCharacterScripts.Animate:Clone()
animate.Parent = thing
else
print("Not a player")
end
end)
Thank you so much! I really appreciate it!