Is because you did player:FindFirstChild(“HumanoidRootPart”) instead of char:FindFirstChild(“HumanoidRootPart”). Also I recommend you wait for the character so it doesn’t error or yield the code if it hasn’t loaded. May I ask why are you putting the morphs CFrame the player’s if you switching morphs? Why can’t you use StarterCharacter.
maybe use :WaitForChild() instead? it could be that the part isn’t loaded correctly.
question: do you want the morphing to be client sided? (only client can see changes)
cuz if you dont want a hacker to just morph into any morphs they want then you should do it on serverside.
and last thing: you set up “char” wrong, now it redefines the VARIABLE and not the CHARACTER and destroys the new variable!
fixed code:
local function MonsterTransform()
local Morphs = RS.Morphs
local Root = Player.Character:WaitForChild("HumanoidRootPart")
local MorphChar = Morphs:FindFirstChild("Werewolf"):Clone()
MorphChar.HumanoidRootPart.CFrame = Root.CFrame
MorphChar.Parent = Workspace
Player.Character:Destroy()
Player.Character = MorphChar
end
I WAS FIRST HERE! you dirty man! i was already solving this and you decided to steal this! not cool man! I already reported you for this!
DONT DO THIS AGAIN!
Okay? DONT BE DIRTY LIKE THIS!
People, settle down, you all were seen in trying to help, no worries.
Also Sam your script helped by the way, but now the UI disappeared for some reason and camera is just being anchored on same position…
Any ideas how come?
these scripts are very long, I do not want them to fall into people’s hands that just passed by, I can send it trough discord if you need
send friend request to my profile: Atebread