Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you make an NPC stay in its position after playing an animation?

Asked by 4 years ago
Edited 4 years ago

Here's the code: https://pastebin.com/hcrk1aXh

The problem with it is that when the animation stops, the teleportation is a bit delayed, causing visual bugs, as such: https://cdn.discordapp.com/attachments/569116898923380740/645750528856424478/Video_17-11-2019_17-33-54.mp4

And my question is: is it possible to get rid of the visual bugs? I have considered remaking the animation so it's in one place and then moving the NPC physically, but I want to consider other options.

EDIT: Since nobody understands, let me explain. IF I were to only stop the animation, the NPC would go back to where it was at the beginning of the animation, and I want it to stay where the animation ends.

0
Do you mean the npc stops moving after the animation? Or something else? 123nabilben123 499 — 4y
0
Should you do an animation that does not requiring moving or just teleport it back to its normal position FerbiZides 0 — 4y

1 answer

Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago

https://developer.roblox.com/en-us/api-reference/function/AnimationTrack/Stop this will probably help

0
The animation is already being stopped Tymberlejk 143 — 4y
Ad

Answer this question