I’m looking to make a fake npc that can playback movements very similar to a player. For example, an NPC that would play this on loop to help the player figure out what to do.
I’ve been looking around, I’ve seen a plugin made by someone that does it but it only works in-game, and I’ve seen people suggest pathfinding, but I don’t see how pathfinding could replicate something like a wall wrap.
Not looking for code, just looking for a basic blueprint for how it could work I guess.
You would need a base player model to use for the NPC. My way of thinking would be to use a linear force to keep it in the same place, and use the same set of model sizes and collisions.
I would also recommend making sure that the NPC doesn’t collide with the player, most likely using NoCollisionConstraints or similar. Hope this helps!
id consider using a datastore to record each stage’s desired completion path.
while YOU record it your script would be recording each of your bodypart’s cframes in like a loop of wait(1/60) 60 would be 60 fps 30 = 30fps etc.
send it into a table each recorded frame then send it to datastore
if you want to re-record you can.
playback would be just going through getting the datastore of that level and then replaying it in the same fps for i = 1, #frames etc getting a clone of the avatar model, making it non collidable, and a bit transparent.
this is just a guide, from what I know from what FE2 does for their rescue missions, what I’ve seen etc.
OFC you would record it beforehand, ship it to datastore and then play it back on the client when the player gets to said stage.