#lf good scripter to help me make an item reskin system
1 messages · Page 1 of 1 (latest)
you gonna need a lot more than that if all you have is an empty table
im not going to make it for you
how is it supposed to work?
local Reskins = {
Forkini = {
["Red"] = Color3.new(1, 0, 0);
["Blue"] = Color3.new(0, 0, 1);
["Green"] = Color3.new(0, 1, 0);
};
};
local function GetReskinColour(Type,WantedColour)
if not Reskins[Type] or not Reskins[Type][WantedColour] then return nil; end;
return Reskins[Type][WantedColour];
end
local Wanted = GetReskinColour("Forkini","Red");
print("Player wanted: "..tostring(Wanted));```
like this?
im not sure wym
im here to help people not ai 👍
nor perform the functions of ai
trying to, but you keep pinging me 
is this how you want it to be done?
local Reskins = {
Fork = {
["Handle"] = Color3.new(0, 1, 1);
};
};
local function GetPartReskinColour(ItemName,PartName)
if not Reskins[ItemName] then
warn(ItemName.." does not have any reskin data");
return nil
end
if not Reskins[ItemName][PartName] then return nil; end;
return Reskins[ItemName][PartName];
end
-- quick example how to reskin
for _,Part in pairs(workspace.Fork:GetDescendants()) do
local hasData = GetPartReskinColour("Fork",Part.Name);
if hasData then
Part.Color = hasData;
end
end```
if so just ask chatgpt to do that ig
dude got mad