To prevent exploiting ( autofarms and such ) I tried to TP an enemy's humanoidrootpart to my humanoidrootpart inside Roblox studio. When I checked the server, I can see that the npc is teleporting around me. Why does it replicate? I'm pretty sure studio doesn't replicate commands that is executed in the client part since I tried to change my leaderstat values but why does the npc teleport replicate to server? script I executed in commands
while wait(0.25) do game.Workspace:FindFirstChild("Dummy Demon").HumanoidRootPart.CFrame = game.Workspace.Decryptional.HumanoidRootPart.CFrame end
It doesn't replicate on the first try, however after I kill it with my sword tool ( the damage script is inside the tool ) ( not a remote ) it starts replicating to server when it respawns... ( it's respawned with a script inside the NPC that basically just clones it after a few minutes. ) Do I have to respawn the npc with a remote? is that why? I tested this theory by killing the npc and then checking server. The npc still respawns and replicates in the server so I'm very confused.
Sorry, I'm a beginner to LUA and FilteringEnabled so.... https://gyazo.com/b06b16bf57258ffc54b7ef0b62ff9af1