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

How do I make a miscellaneous morph button?

Asked by 10 years ago
I am looking for a script that will let users morph into anything, not just humanoids.  A standard morph button would be appreciated. Thank you!

2 answers

Log in to vote
0
Answered by 10 years ago

Please look into free models for morph creators, it's stupid to use free models but it's easier to do it yourself than to ask other people on this type of topic

Also, please do not use "code block" when asking your question, only use it when displaying code.

0
When I do that all that comes up are humanoids. Can I put the humanoid parts into the model? wantedfunnybunny 0 — 10y
0
What do you mean by that? colefrickz 0 — 10y
0
When I search morph creator the models that come up look like characters, I am loooking to make a monster morph that is not shaped like a characte. wantedfunnybunny 0 — 10y
Ad
Log in to vote
0
Answered by
Mauvn 100
10 years ago

Shirt:

local cln = script.Parent.Shirt:clone()

function onTouched(hit)
    local h = hit.Parent:findFirstChild("Humanoid")
    if h~=nil then
        local s = hit.Parent:findFirstChild("Shirt")
        local d = hit.Parent.Torso:findFirstChild("roblox")
        if s~=nil and d~=nil then
            hit.Parent.Torso.roblox:remove()
            hit.Parent.Shirt:remove()
            cln.Parent = hit.Parent
        elseif s~=nil then
            hit.Parent.Shirt:remove()
            cln.Parent = hit.Parent
        elseif d~=nil then
            hit.Parent.Torso.roblox:remove()
            cln.Parent = hit.Parent
        elseif s==nil and d==nil then
            cln.Parent = hit.Parent
        end
    end
end

script.Parent.Touched:connect(onTouched)

Pants:

local cln = script.Parent.Pants:clone()

function onTouched(hit)
    local h = hit.Parent:findFirstChild("Humanoid")
    if h~=nil then
        local s = hit.Parent:findFirstChild("Pants")
        if s~=nil and d~=nil then
            hit.Parent.Pants:remove()
            cln.Parent = hit.Parent
        elseif s~=nil then
            hit.Parent.Pants:remove()
            cln.Parent = hit.Parent
        elseif d~=nil then
            cln.Parent = hit.Parent
        elseif s==nil and d==nil then
            cln.Parent = hit.Parent
        end
    end
end

script.Parent.Touched:connect(onTouched)

***REMINDER**** Please use in 2 different scripts and put it in a "Smooth Block Model" And insert also in the same Parent Shirt and Pants, insert also a Humanoid.

Answer this question