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

I can't get a script to change the player's clothes. Help?

Asked by
corbenv 17
5 years ago

It just does nothing with no error message.

local function replaceClothes(player)
    local character = player.Character
    if character then 
        local shirt = character:FindFirstChildOfClass("Shirt")
        local pants = character:FindFirstChildOfClass("Pants")
        shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1027549646"
        pants.PantsTemplate = "http://www.roblox.com/asset/?id=1120991775"
    end
end
0
Did you called the function? WikiBaseHealthFinder 40 — 5y
0
You have to fire the function + Are there errors? MiguRB 60 — 5y
0
Nevermind, I worked around it, and no error messages corbenv 17 — 5y

Answer this question