Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = script.Parent.MorphPart
- part.Touched:Connect(function(t)
- local player = game.Players:GetPlayerFromCharacter(t.Parent)
- if player then
- local morph = script.Parent.MorphCharacter:Clone()
- morph.HumanoidRootPart.Anchored = false
- for i, child in pairs(player.Character:GetChildren()) do
- if child:IsA("Script") or child:IsA("LocalScript") then
- child:Clone().Parent = morph
- end
- end
- morph:SetPrimaryPartCFrame(player.Character.PrimaryPart.CFrame)
- player.Character = morph
- morph.Parent = workspace
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement