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

Mannequin tryon script (shirt isnt loading?)

Asked by 6 years ago

script.Parent.MouseButton1Click:connect(function() local plr = script.Parent.Parent.Parent.Parent local char = plr.Character if char:FindFirstChild("Shirt") ~= nil then char.Shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value elseif char:FindFirstChild("Shirt") == nil then local shirt = Instance.new("Shirt",char) shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value end end)

no errors and fe enabled

1 answer

Log in to vote
0
Answered by 6 years ago
script.Parent.MouseButton1Click:connect(function()
    local plr = script.Parent.Parent.Parent.Parent
    local char = plr.Character
    if char:FindFirstChild("Shirt") ~= nil then
        char.Shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value
    elseif char:FindFirstChild("Shirt") == nil then
        local shirt = Instance.new("Shirt",char)
        shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value
    end
end)


no errors and fe enabled
Ad

Answer this question