local shirtemplate = "148302166" -- Took away 1 from the shirt ID
local pantstemplate = "133004168" -- Took away 1 from the pants ID
local hats = {"1029025","hat 2 id","hat 3 id","even a hat 4 id"}
function giveShirtAndPants(p)
local c = p.Character
c.Shirt.ShirtTemplate = shirtemplate
c.Pants.PantsTemplate = shirtemplate
for _,v in pairs(hats) do
local hat = game:GetService("InsertService"):LoadAsset(v).Parent = c
end
end
game.Players.PlayerAdded:connect(function(p)
repeat wait() until p ~= nil
repeat wait() until p.Character ~= nil
giveShirtAndPants(p)
p.CharacterAdded:connect(function(c)
repeat wait() until c ~= nil
giveShirtAndPants(p)
end)
end)
-- Line 10 says: 11:55:12.611 - Workspace.Script:10: unexpected symbol near '='
I can't fish out the unexpected symbol near '='

2 comments
Will this script remove the hats if I added it to the beggining or will it have to be seperate
game.Workspace.ChildAdded:connect(function(obj) if (obj:IsA("Hat")) then wait(4) if (obj.Parent == game.Workspace) then obj:Destroy() end end end)