#morphs not working
1 messages · Page 1 of 1 (latest)
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)
What error on consol ?
Bc i see that you type "findFirstChild" it's "FindFirstChild"
It won’t morph me when I touch it
It's not what I asked
Show the consol
Learn to script first..
its help
this would only work for r6
w subaru pfp
and scripting is too hard
It aint that hard buddy
** You are now Level 2! **
then u fix it
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
have you checked the console for errors??
Ok
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
you there bro??
lety me try it now
it does not work
shit
u want the model to see whats wrong with it
whats that
ok
click on the icon with the caption "Output"
ok
and once you load into the game
I want you to test your morph thingy
and after that
ok
Send me the screenshot of everything inside that output panel
** You are now Level 4! **
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
u want the model?
no
💳 Credits : @ParadoxumGames @officialphoqus @WikiaColors
🎵 Original Music : https://www.youtube.com/watch?v=T-yAu4Ra4JU
📦 Model : https://discord.gg/Kw4fPtVUHx
Roblox Profile : https://www.roblox.com/users/26317199...
can u do it only for the body like a roblox bundle