function Module:Add(Character,Accessory,BodyPart,Type)
-- Check --
if not Character:FindFirstChild('Jersey'):FindFirstChild('Accessories') then
-- Create --
local Folder1 = Instance.new('Folder',Character:FindFirstChild('Jersey'))
local Folder2 = Instance.new('Folder',Folder1)
local Folder3 = Instance.new('Folder',Folder1)
local Folder4 = Instance.new('Folder',Folder1)
local Folder5 = Instance.new('Folder',Folder1)
--
Folder1.Name = 'Accessories'
Folder2.Name = 'Head'
Folder3.Name = 'Torso'
Folder4.Name = 'Arms'
Folder5.Name = 'Legs'
end
-- Check x2 --
if Character:FindFirstChild('Jersey') then
-- Top --
if Accessory == 'Glove' then
local Glove = Accessories:FindFirstChild(Type):FindFirstChild('Glove'):Clone()
Glove.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Glove,Glove,BodyPart,CFrame.new(-0,0.913,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Glove,Glove,BodyPart,CFrame.new(-0,0.913,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Glove,Glove,BodyPart,CFrame.new(-0,0.913,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'QBHand' then
local QBHand = Accessories:FindFirstChild(Type):FindFirstChild('QBHand'):Clone()
QBHand.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),QBHand,QBHand,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),QBHand,QBHand,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),QBHand,QBHand,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'Armband' then
local Armband = Accessories:FindFirstChild(Type):FindFirstChild('Armband'):Clone()
Armband.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Armband,Armband,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Armband,Armband,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Armband,Armband,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'TurfTape' then
local TurfTape = Accessories:FindFirstChild(Type):FindFirstChild('Turf Tape'):Clone()
TurfTape.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),TurfTape,TurfTape,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),TurfTape,TurfTape,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),TurfTape,TurfTape,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'WristTape' then
local WristTape = Accessories:FindFirstChild(Type):FindFirstChild('Wrist Tape'):Clone()
WristTape.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),WristTape,WristTape,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),WristTape,WristTape,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),WristTape,WristTape,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'Wristband' then
local Wristband = Accessories:FindFirstChild(Type):FindFirstChild('Wristband'):Clone()
Wristband.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Wristband,Wristband,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Wristband,Wristband,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Wristband,Wristband,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'Sleeve' then
local Sleeve = Accessories:FindFirstChild(Type):FindFirstChild('Sleeve'):Clone()
Sleeve.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Sleeve,Sleeve,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Sleeve,Sleeve,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),Sleeve,Sleeve,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'ArmBrace' then
local ArmBrace = Accessories:FindFirstChild(Type):FindFirstChild('Arm Brace'):Clone()
ArmBrace.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),ArmBrace,ArmBrace,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),ArmBrace,ArmBrace,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),ArmBrace,ArmBrace,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
-- Bottom --
elseif Accessory == 'LegSleeve' then
local LegSleeve = Accessories:FindFirstChild(Type):FindFirstChild('LegSleeve'):Clone()
LegSleeve.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegSleeve,LegSleeve,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegSleeve,LegSleeve,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegSleeve,LegSleeve,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'LegBand' then
local LegBand = Accessories:FindFirstChild(Type):FindFirstChild('LegBand'):Clone()
LegBand.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegBand,LegBand,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegBand,LegBand,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegBand,LegBand,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
elseif Accessory == 'LegBrace' then
local LegBrace = Accessories:FindFirstChild(Type):FindFirstChild('Leg Brace'):Clone()
LegBrace.Parent = Character:FindFirstChild('Jersey'):FindFirstChild('Accessories'):FindFirstChild('Arms')
-- Check --
if Type == 'SlimBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegBrace,LegBrace,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'FitBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegBrace,LegBrace,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
elseif Type == 'BigBody' then
-- Weld --
Module.Weld(string.sub(BodyPart.Name,1,1),LegBrace,LegBrace,BodyPart,CFrame.new(-0,0.61,0),Vector3.new(0,-90,0))
end
end
end
end