#morphs not working

1 messages · Page 1 of 1 (latest)

north wind
#

Help pls

#

Script

#

function ChangeMe(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(0)
debounce = false
end

script.Parent.Touched:connect(ChangeMe)

torn lagoon
#

What error on consol ?

#

Bc i see that you type "findFirstChild" it's "FindFirstChild"

north wind
torn lagoon
#

Show the consol

north wind
#

it’s a free model

#

I don’t know how to script

#

do u want the model?

velvet hound
#

kaleb

#

learn how to script bro

torn lagoon
#

Learn to script first..

velvet hound
#

its help

tulip igloo
velvet hound
north wind
#

I’m on r6 only

#

do u want the model link

north wind
steep sigil
fringe tapirBOT
#

studio** You are now Level 2! **studio

steep sigil
#

Yes it's a lil hard

#

but not too hard

north wind
steep sigil
#

are there any errors in the console?

north wind
#

function ChangeMe(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(0)
debounce = false
end

script.Parent.Touched:connect(ChangeMe)

#

It does not do anything when I touch it

steep sigil
#

have you checked the console for errors??

north wind
#

I don’t know what the console is

#

it’s a free modle

#

do u want the model?

steep sigil
#

no

#

like

#

yk what

#

gimme a sec

north wind
#

Ok

steep sigil
#

local debounce = false

function ChangeMe(hit)
if not hit.Parent then return end

local human = hit.Parent:FindFirstChild("Humanoid")
if not human or debounce then return end

debounce = true

local char = hit.Parent
local player = game.Players:GetPlayerFromCharacter(char)

for _, child in ipairs(char:GetChildren()) do
    if child:IsA("CharacterMesh") then
        child:Destroy()
    end
end

for _, mesh in ipairs(script:GetChildren()) do
    local copy = mesh:Clone()
    copy.Parent = char
end

wait(1)
debounce = false

end

script.Parent.Touched:Connect(ChangeMe)

#

try this

north wind
#

Ok

#

Let me go on my pc one sec

steep sigil
#

you there bro??

north wind
#

lety me try it now

north wind
steep sigil
#

shit

north wind
steep sigil
#

nono

#

send the whole file structure if you got one

north wind
#

whats that

steep sigil
#

ok look

#

so open roblox

#

studio

#

go to the view tab

north wind
#

ok

steep sigil
#

click on the icon with the caption "Output"

north wind
#

ok

steep sigil
#

and once you load into the game

#

I want you to test your morph thingy

#

and after that

north wind
#

ok

steep sigil
#

Send me the screenshot of everything inside that output panel

north wind
fringe tapirBOT
#

studio** You are now Level 4! **studio

steep sigil
#

local morphName = "KorbloxMage"
local debounce = {}

script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if not player then return end
if debounce[player] then return end
debounce[player] = true

local morphModel = game.ServerStorage:FindFirstChild(morphName)
if not morphModel then return end

for _, item in ipairs(character:GetChildren()) do
    if item:IsA("Accessory") or item:IsA("CharacterMesh") then
        item:Destroy()
    end
end

for _, item in ipairs(morphModel:GetChildren()) do
    local clone = item:Clone()
    clone.Parent = character
end

task.wait(2)
debounce[player] = false

end)

#

try now

north wind
#

ok

#

it still does not work

north wind
steep sigil
#

I tried my best dude

#

go watch a tutorial or smth

north wind
#

u want the model?

steep sigil
#

no

north wind
steep sigil
#

idk bro

#

figure it out