Advertisement
Guest User

MTF Uniform Script (ROBLOX)

a guest
Jun 9th, 2017
1,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. --Settings--
  3. local Uniform = {}
  4. Uniform.Shirt = "http://roblox.com/asset/?id=461822689
  5. Uniform.Pants = "http://roblox.com/asset/?id=461822722
  6. --function--
  7. function AddUniform(P)
  8. local Character = P.Character
  9. repeat wait(0) until Character ~= nil
  10. for i,Object in next,Character:GetChildren() do
  11. if Object:IsA("Shirt") or Object:IsA("Pants") then
  12. Object:Destroy()
  13. end
  14. end
  15. local Shirt = Instance.new("Shirt",Character) Shirt.ShirtTemplate = Uniform.Shirt local Pants = Instance.new("Pants",Character) Pants.PantsTemplate = Uniform.Pants
  16. end
  17. --GUIPart--
  18. local Bin = script.Parent
  19. if Bin:IsA("TextButton") or Bin:IsA("ImageButton") then
  20. Bin.MouseButton1Down:connect(function()
  21. AddUniform(Player)
  22. end)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement