i have been using this code to create doors in my game that allows the player to teleport between places. the code works fine and my player can teleport through the door.
the only problem is that whenever he goes through a door, he seems to clone himself. it looks like a lag or a glitch but it does it every time. is there an error with the code? i don't know what it could be.
i've included a picture of what the player does when he appears through the door. it's like he's leaving behind a trail of himself. the longer you play/the more clones that appear, the slower the game gets. this is a big problem which i must fix ASAP.