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

What is the /Accoutrement Class - Please explain in Details; I've looked at the wiki?

Asked by 9 years ago

What is the /Accoutrement Class - Please explain in Details; I've looked at the wiki.

0
What don't you understand? The wiki's pretty clear. It's basically a hat. Perci1 4988 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

Accoutrement Is clothing for your head. Your face and head do not count as Accoutrements though because face is a Texture and a Head is a basepart.


The section below isn't about accoutrements but it uses the accoutrements class.


You can use the method :IsA() to find out if something IS A certain class. If it's right then It will return true. If not, it could return false. You can use this in scripts to delete hats when they join the game.

game.Players.PlayerAdded:connect(function(plyr)
    plyr.CharacterAdded:connect(function(char)
        local body = char:GetChildren() --The characters body parts.
        for i = 1,#body do
            if body[i]:IsA("Accoutrement") then --If there is clothing on the players head
                body[i]:Destroy() --Delete the accoutrements.
            end
        end
    end)
end)

I agree with Percil though, the wiki is pretty clear.

0
ROBLOX's hats used to be Accoutrements, but they switched at some point (probably because of the pain it is to spell "Accoutrement" ) to use the Hat class instead. BlueTaslem 18071 — 9y
Ad

Answer this question