I am trying to morph players based on their team. I have a pre-existing script that morphs the player into a shirt and pants but I am looking to also morph into meshes and many other parts. Here is my existing script as well as an example of what I am morphing into: (NOTE: With the current script, the clothes are like so: http://ibb.co/HNPycVp) Script:
pnts = script.Pants
shirt = script.Shirt
function GiveClothes(character)
if not character:findFirstChild("Shirt") then
shirt:Clone().Parent = character
else character:findFirstChild("Shirt"):Destroy()
shirt:Clone().Parent = character
end
if not character:findFirstChild("Pants") then
pnts:Clone().Parent = character
else character:findFirstChild("Pants"):Destroy()
pnts:Clone().Parent = character
end
end
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
wait(1.12)
local plr = game.Players:findFirstChild(char.Name)
print(char.Name)
if plr.TeamColor ~= BrickColor.new("White") then
return
else GiveClothes(char)
end
end)
end)
What I'm morphing into: http://ibb.co/Gcx2LSV
