Is it possible to take control of an NPC?

I’m making a game where NPCs fight each other but the player can take control of an NPC if he chooses. Is this possible? I don’t want to plan a bunch of things out only to be told the hard way I can’t do it.

3 Likes

simple, maybe not the best but simplest option if you don’t want to make your own player module

local clon = character:Clone()
clon.position = character.position

local newchar = npc
player.Character =  newchar
newchar.position = npc.position

something like that works

5 Likes

I don’t know anything about modules, but I do know that this script looks very easy to understand if I use the right tools.

If there is a simple way to do it, there must be a harder way to do it. Thank you!

2 Likes