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

How do I fix my R15 Auto Morph Script to Create New Shirt/Pant Instances?

Asked by
Dexlia 0
5 years ago
Edited 5 years ago

So, basically I'm trying to make an R15 Auto Morph script. Now I've set up a bunch of stuff and it works with all the models and such, but what I'm trying to do is add the Clothing to it. I see that in mine all it is doing is changing the clothing IF the User has clothes on. If the User doesn't have clothes on it doesn't switch the Shirt or Pants. I'm trying to make it just make a New Shirt and Pants even if the User doesn't have clothes on or if he does it still works. I really need help on this, because I don't know where to put it in this function?

local function Finale(Char)
    for i,v in pairs(Char:GetChildren()) do
        if v:IsA('Accessory') or v:IsA('Hat') then
            v:Destroy()
        end
    end
end
0
Please no screenshots, send the exact code. Vmena 87 — 5y
0
Sending the Code on the site, just kept putting it on the side and I'd have to indent everything again. Dexlia 0 — 5y

Answer this question