Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Morph = script.Parent.Parent["Powering_GIRLS1"]
- function GiveMorph(plr)
- coroutine.resume(coroutine.create(function()
- if plr.Character:FindFirstChild(Morph.Name) == nil then
- local CheckScript = script["CheckScript"]:clone()
- CheckScript.Parent = plr.PlayerGui
- wait(0.1)
- local Cloned = Morph:clone()
- Cloned.Parent = plr.Character
- for i, v in pairs(Cloned:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- if v:IsA("BasePart") then
- if v.Name ~= "Middle" then
- local w = Instance.new("Weld")
- w.Part0 = Cloned["Middle"]
- w.Part1 = v
- w.C0 = w.Part0.CFrame:inverse() * CFrame.new(w.Part1.Position)
- w.C1 = w.Part1.CFrame:inverse() * CFrame.new(w.Part1.Position)
- w.Parent = w.Part0
- else
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- local w = Instance.new("Weld", plr.Character["Torso"])
- w.Part0 = plr.Character["Torso"]
- w.Part1 = v
- w.C0 = CFrame.new(0, 0, 0)
- end))
- end
- end
- end))
- end
- for i, v in pairs(Cloned:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- if v:IsA("BasePart") then
- v.Anchored = false
- v.CanCollide = false
- end
- end))
- end
- if plr.Character:findFirstChild("Shirt") ~= nil then
- plr.Character["Shirt"]:remove()
- end
- if script.Parent:findFirstChild("Shirt") ~= nil then
- script.Parent["Shirt"]:clone().Parent = plr.Character
- end
- if plr.Character:findFirstChild("Pants") ~= nil then
- plr.Character["Pants"]:remove()
- end
- if script.Parent:findFirstChild("Pants") ~= nil then
- script.Parent["Pants"]:clone().Parent = plr.Character
- end
- for i, v in pairs(plr.Character:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- if v:IsA("CharacterMesh") then
- v:remove()
- end
- if v:IsA("Hat") then
- v:remove()
- end
- end))
- end
- end
- end))
- end
- function Touch(hit)
- coroutine.resume(coroutine.create(function()
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plr ~= nil then
- GiveMorph(plr)
- end
- end
- end))
- end
- script.Parent.Touched:connect(Touch)
Advertisement
Add Comment
Please, Sign In to add comment