PipeSader
(PipeSader)
1
Hello, I would like to know how I can make the player appear on the cloned body after death (thisdummy), someone could help me with that, pls
I need the player to appear over the thisdummy cloned


Script code:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character.Humanoid.Died:Connect(function(plr)
local dm = game:GetService("ReplicatedStorage"):FindFirstChild("THISDUMMY"):Clone()
print("cloned!!")
dm.Parent = workspace
dm:FindFirstChild("HumanoidRootPart").CFrame = character.HumanoidRootPart.CFrame
local humanoid = dm.Humanoid
local desc = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
humanoid:ApplyDescription(desc)
end)
end)
end)
Grayseon
(Grayseon)
2
Use:
character:SetPrimaryPartCFrame(dm.HumanoidRootPart.CFrame)
Intencidy
(smelvin)
3
Here, I added a couple of lines to the code.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character.Humanoid.Died:Connect(function(plr)
local dm = game:GetService("ReplicatedStorage"):FindFirstChild("THISDUMMY"):Clone()
print("cloned!!")
dm.Parent = workspace
dm:FindFirstChild("HumanoidRootPart").CFrame = character.HumanoidRootPart.CFrame
local humanoid = dm.Humanoid
local desc = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
humanoid:ApplyDescription(desc)
humanoid.Died:Connect(function())
character.HumanoidRootPart.CFrame = dm.HumanoidRootPart.CFrame
end)
end)
end)
end)