Heya! I’m K0rrupt! Also known as “xt12t” and “K0rruqt”!
I am currently trying to make a character morph but the script does not seem to work. I put the character and the morph part both in the same model. I also un anchored all of the model parts.
Is anything wrong with my script? All feedbacks are appreciated!
Script:
local pad = script.Parent
local characterName = "VoidsLimit"
local character = pad.Parent:WaitForChild(characterName)
local debounce = true
pad.Touched:Connect(function(obj)
local plr = game.Players:GetPlayerFromCharacter(obj.Parent)
if plr and debounce == true then
debounce = false
pad.BrickColor = BrickColor.new("Lime green")
local charClone = character:Clone()
charClone.Name = plr.Name
plr.Character = charClone
local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Torso")
local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Torso")
if rootPart and plrRoot then
rootPart.CFrame = plrRoot.CFrame
end
charClone = workspace
wait(.5)
pad.BrickColor = BrickColor.new("Really red")
debounce = true
end
end)