Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How to make an auto-morph script...? *edited

Asked by 10 years ago

I was wanting a script that would change your hat, shirt, and pants to the kind you want.

I need a script that will make you have 2.0 arms and legs, normal head, a super hero torso, glasses, normal boy hair, a Serious Sam shirt and pants, and that's it. I have most of it done, but I don't know how to get shirts, pants, and hats on it.

script.Parent.Touched:connect(function(hit)
    if hit.Parent == nil then return end
    if (hit.Parent:findFirstChild("Humanoid") == nil) then return end
    local human = hit.Parent:findFirstChild("Humanoid") 
    local char = hit.Parent
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if (human ~= nil) and debounce == false then
        debounce = true
        originals = char:getChildren()
        for w = 1, #originals do
            if originals[w].className == "CharacterMesh" then
                originals[w]:remove()
            end
        end
        meshes = script:getChildren()
        for y = 1, #meshes do
            copy = meshes[y]:clone()
            copy.Parent = char
        end
    end
    wait(1)
    debounce = false
end)
game.Players.PlayerAdded:connect(function(p)
    p.CharacterAdded:connect(function(char)
        wait(1)
        originals = char:getChildren()
        for w = 1, #originals do
            if originals[w].className == "CharacterMesh" then
                originals[w]:remove()
            end
        end
        meshes = script:getChildren()
        for y = 1, #meshes do
            copy = meshes[y]:clone()
            copy.Parent = char
        end
    end)
end)
0
Please include some code or theories you had of doing this. This site is not here to make scripts for you. Aethex 256 — 10y
0
Alright. Will do. TheRings0fSaturn 28 — 10y

Answer this question