Need help scripting a moon animator cutscene to play on the player joining

That’s supposed to happen. To stop that, use the :Stop() function.

after using the “:Stop()” function it still reset to the start

Can you show your code? The stop function shouldn’t reset it.

You’re using stop wrongly.

local Animator = Instance.new("Animator")
Animator.Parent = RigToPlayAnimationOn.Humanoid
game.Players.PlayerAdded:Connect(function(Player)
	if script.Parent.Humanoid:FindFirstChild("Animator") then
		RigToPlayAnimationOn.Humanoid:WaitForChild("Animator"):LoadAnimation(AnimationId):Play()
        task.wait(1)
        RigToPlayAnimationOn.Humanoid:WaitForChild("Animator"):LoadAnimation(AnimationId):Stop()
	end
end)

Replace the parameter of task.wait to the length of your animation.

it still resets strangely
i wonder if i make the animation drag out a bit longer so the character is in the same position at the time of the “:Stop()”

almost worked however the stop function still didnt work

Can you show a video of how it still resets? Also make the wait time longer for it to drag out longer.

What did this video show? I’m confused.

it showed that after the dummy went through the map (the point of the cutscene) it teleported back up

After you define the stop. Set the NPC’s position to the position of where the npc falls.

Also, no need to add the task.wait(). I just forgot.

I apologise for all the questions I keep asking, but how would I go about doing this?

Oh, also you don’t need to add stop. I’m still thinking about how to not make the anim snap back to place.

This thread How to not have character position reset when animation ends? - Help and Feedback / Scripting Support - DevForum | Roblox might help you.

Jan 2021 post, no clear explanation and no solution found

Uh, there is a solution. You can just integrate the solution into code.

What I mean by solution is:


Since it’s an NPC it will not give any problems as there is no walking or jumping scripts added to the NPC.