local Dummy = workspace.Dummy
Part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local characterId = player.CharacterAppearanceId
if characterId ~= 0 then
local humanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(characterId)
if humanoidDescription then
local cloneCharacter = Dummy:Clone()
cloneCharacter.Name = "TransformedCharacter"
cloneCharacter.HumanoidRootPart.CFrame = Part.CFrame
cloneCharacter.Parent = workspace
for _, child in ipairs(cloneCharacter:GetChildren()) do
if child:IsA("BasePart") then
child.Anchored = true
end
end
Dummy:Destroy()
player.CharacterAppearanceLoaded:Wait()
local transformedCharacter = game.Players:CreateHumanoidModelFromDescription(humanoidDescription)
transformedCharacter.Name = "PlayerCharacter"
transformedCharacter.HumanoidRootPart.CFrame = cloneCharacter.HumanoidRootPart.CFrame
transformedCharacter.Parent = workspace
cloneCharacter:Destroy()
player.Character = transformedCharacter
player:LoadCharacter()
end
end
end
end)
#HumanoidRootPart is not a valid member of Model "TransformedCharacter"
20 messages · Page 1 of 1 (latest)
weird
** You are now Level 1! **
Does it have a humanoid root part?
Yes
run the game and see if its still there
Still there
can u send ur project file
I’ll check it out in a bit and see if I can fix it