#HumanoidRootPart Problem!

6 messages · Page 1 of 1 (latest)

pliant spindle
#

first of all everything was working correctly. Computer restarted by itself and this problem appeared.
script was about giving a morph by clicking a Gui and here is it :

   local events = game.ReplicatedStorage.RemoteEvents
   
   events.MorphEvent:FireServer(game.ReplicatedStorage.Morphs.devil)
   
   local character = script.Parent
   local humanoid = character:WaitForChild("Humanoid")


end)

also a ServerStorage script Morph Client :

    local char = model:clone()
    local savename = player.Name
    local pos = player.Character.HumanoidRootPart.CFrame
    char.Name = savename
    player.Character:Destroy()
    player.Character = char
    char.Parent = workspace
    char.HumanoidRootPart.CFrame = pos
    char.HumanoidRootPart.Anchored = true
    player.PlayerGui.MorphGui.Enabled = false
    wait(1)
    char.HumanoidRootPart.Anchored = false
    
end)```
after computer's restart studio says that ```HumanoidRootPart is not a valid member of Model "plNotker"  -  Server - MorphClient:13```
I'm really confused about this one. Please help me 🙏
pseudo path
#

Does the model getting cloned actually have a HumanoidRootPart?

scenic dawn
# pliant spindle Yea

You sure it doesn't fall out of the map or something? It looks like it only errors after you wait a second.

pliant spindle
pliant spindle