Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- --Settings--
- local Uniform = {}
- Uniform.Shirt = "http://roblox.com/asset/?id=799776807"
- Uniform.Pants = "http://roblox.com/asset/?id=911033495"
- --function--
- function AddUniform(P)
- local Character = P.Character
- repeat wait(0) until Character ~= nil
- for i,Object in next,Character:GetChildren() do
- if Object:IsA("Shirt") or Object:IsA("Pants") then
- Object:Destroy()
- end
- end
- local Shirt = Instance.new("Shirt",Character)
- Shirt.ShirtTemplate = Uniform.Shirt
- local Pants = Instance.new("Pants",Character)
- Pants.PantsTemplate = Uniform.Pants
- end
- --GUIPart--
- local Bin = script.Parent
- if Bin:IsA("TextButton") or Bin:IsA("ImageButton") then
- Bin.MouseButton1Down:connect(function()
- AddUniform(Player)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement