Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Cloning someone to look like you when you kill them?

How could you make it so every time you kill someone they clone into you?

1 comment

0

Damn, that's a hard question...

1 answer

✓ Accepted answer
Players = Game:GetService("Players")
Players.PlayerAdded:connect(function(Player)
    Player.CharacterAdded:connect(function(Character)
        local Humanoid = Character:WaitForChild("Humanoid")
        Humanoid.Died:connect(function()
            if Humanoid:FindFirstChild("creator") ~= nil then -- Checks for Killed person
                local Killer = Humanoid.creator.Value -- Gets Killer
		local clone = Killer:Clone()
		clone.Parent = game.ReplicatedStorage

		repeat wait() until Player.Character
		Player.Character:Destroy()
		local backClone = game.ReplicatedStorage.[Player]:Clone()
		backClone.Parent = Player.Character
            end
        end)
    end)
end)

If something works, it would be this xD.

If it does, then please mark as the answer!

As always, good scripting!

6 comments

0

Where do I put this?

0

In a Script.

0

I meant does it go in Workspace (or not)?

0

Yes, workspace is ok.

0

Will an NPC clone into you if it is killed (I want that to be a no if it is a yes)

0

Hmmm... I'm not sure, but I think it won't... Try, anyways.

This discussion is preserved as it was. New answers, comments, and votes are closed.