i’m trying to make a dress up game, there are custom meshes and i’m currently testing with skirts, it is supposed to save the outfit in a string like this
!Accessory type: Color1R, Color1G, Color1B;Color2R, Color2G, Color2B;Color3R, Color3G, Color3B;Color4R, Color4G, Color4B;Color5R, Color5G, Color5B:Name of the accessory
so basically the"!" divides every item, the “:” divides in three part the accessory name , colors, and name of the accessory the “;” divides the 5 colors of the accessory and the ", " divides the colors RGB.
i don’t want to use different string for each cause the player has to be able to use as many accessories as he wants
i don’t know how to check if the player has already a skirt on though, i tried with this so far
``
local Message = script.Parent.Parent.Parent.Parent.leaderstats.Outfit.Value
local SplitMessage = string.split(Message, “!”)
local AssetInfo = string.split(SplitMessage, “:”)
local Type, coloring, nameof= AssetInfo[1], AssetInfo[2], AssetInfo[3]
if Type== “Skirt” then
AssetInfo= " "
end
Message=Message…"!Skirt:1,1,1;1,1,1;1,1,1;1,1,1;1,1,1:SkirtTest"
``
with this i’m trying to detect if the player has a skirt on and delete the string part with it so the script can add a line for the new skirt accessory
