subaru112g

trying something

Mar 5th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. local Plr = owner
  2.  
  3. -- Chatted Function
  4. function onChatted(msg, recipient, speaker) --For this to work you have to say "try/Thepersonsuserid" Ex. Telamon would be, "try/231
  5.  
  6.  
  7.  
  8. local source = string.lower(speaker.Name)
  9.  
  10. if (string.sub(msg,1,6) == "nohats") then
  11. for i,v in pairs(owner.Character:GetChildren()) do
  12. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  13. v:Destroy()
  14. end
  15. end
  16. end
  17.  
  18. if (string.sub(msg,1,7) == "noshirt") then
  19. for i,v in pairs(owner.Character:GetChildren()) do
  20. if v.ClassName == "Shirt" then
  21. v:Destroy()
  22. end
  23. end
  24. end
  25.  
  26. if (string.sub(msg,1,7) == "nopants") then
  27. for i,v in pairs(owner.Character:GetChildren()) do
  28. if v.ClassName == "Pants" then
  29. v:Destroy()
  30. end
  31. end
  32. end
  33.  
  34. if (string.sub(msg,1,9) == "nobundles") then
  35. for i,v in pairs(owner.Character:GetChildren()) do
  36. if v.ClassName == "CharacterMesh" then
  37. v:Destroy()
  38. end
  39. end
  40. end
  41.  
  42. if (string.sub(msg,1,11) == "white color") then
  43. wait(0.5)
  44. if owner.Character["Body Colors"] ~= nil then
  45. owner.Character["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  46. owner.Character["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  47. owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  48. owner.Character["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  49. owner.Character["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  50. owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  51. end
  52. if owner.Character["Body Colors"] == nil then
  53. local c = Instance.new("BodyColors",owner.Character)
  54. c.Name = "Body Colors"
  55. owner.Character["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  56. owner.Character["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  57. owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  58. owner.Character["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  59. owner.Character["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  60. owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  61. end
  62. end
  63.  
  64. if (string.sub(msg,1,5) == "color") then
  65. if owner.Character["Body Colors"] ~= nil then
  66. owner.Character["Body Colors"].HeadColor = BrickColor.new("Light orange")
  67. owner.Character["Body Colors"].TorsoColor = BrickColor.new("Light orange")
  68. owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Light orange")
  69. owner.Character["Body Colors"].RightArmColor = BrickColor.new("Light orange")
  70. owner.Character["Body Colors"].RightLegColor = BrickColor.new("Light orange")
  71. owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Light orange")
  72. end
  73. if owner.Character["Body Colors"] == nil then
  74. local c = Instance.new("BodyColors",owner.Character)
  75. c.Name = "Body Colors"
  76. owner.Character["Body Colors"].HeadColor = BrickColor.new("Light orange")
  77. owner.Character["Body Colors"].TorsoColor = BrickColor.new("Light orange")
  78. owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Light orange")
  79. owner.Character["Body Colors"].RightArmColor = BrickColor.new("Light orange")
  80. owner.Character["Body Colors"].RightLegColor = BrickColor.new("Light orange")
  81. owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Light orange")
  82. end
  83. end
  84.  
  85. if (string.sub(msg,1,4) == "hat ") then
  86. local id = string.sub(msg,5)
  87.  
  88. game:GetService("InsertService"):LoadAsset(id).Parent = workspace
  89. print("https://www.roblox.com/catalog/"..id)
  90. for i,m in pairs(game.Workspace:GetChildren()) do
  91. if m.ClassName == "Model" and m.Name == "Model" then
  92. for i,s in pairs(m:GetChildren()) do
  93. if s.ClassName == "Hat" or s.ClassName == "Accessory" then
  94. s.Parent = Plr.Character
  95. print(s.Name)
  96. m:Destroy()
  97. end
  98. end
  99. end
  100. end
  101. end
  102.  
  103. if (string.sub(msg,1,6) == "shirt ") then
  104. local id = string.sub(msg,7)
  105. for i,v in pairs(owner.Character:GetChildren()) do
  106. if v.ClassName == "Shirt" then
  107. v:Destroy()
  108. end
  109. end
  110. game:GetService("InsertService"):LoadAsset(id).Parent = workspace
  111. print("https://www.roblox.com/catalog/"..id)
  112. for i,m in pairs(game.Workspace:GetChildren()) do
  113. if m.ClassName == "Model" and m.Name == "Model" then
  114. for i,s in pairs(m:GetChildren()) do
  115. if s.ClassName == "Shirt" then
  116. s.Parent = Plr.Character
  117. print(s.Name)
  118. m:Destroy()
  119. end
  120. end
  121. end
  122. end
  123. end
  124.  
  125. if (string.sub(msg,1,6) == "pants ") then
  126. local id = string.sub(msg,7)
  127. for i,v in pairs(owner.Character:GetChildren()) do
  128. if v.ClassName == "Pants" then
  129. v:Destroy()
  130. end
  131. end
  132. game:GetService("InsertService"):LoadAsset(id).Parent = workspace
  133. print("https://www.roblox.com/catalog/"..id)
  134. for i,m in pairs(game.Workspace:GetChildren()) do
  135. if m.ClassName == "Model" and m.Name == "Model" then
  136. for i,s in pairs(m:GetChildren()) do
  137. if s.ClassName == "Pants" then
  138. s.Parent = Plr.Character
  139. print(s.Name)
  140. m:Destroy()
  141. end
  142. end
  143. end
  144. end
  145. end
  146.  
  147.  
  148. if (string.sub(msg,1,5) == "face ") then
  149. local id = string.sub(msg,6)
  150. for i,v in pairs(owner.Character.Head:GetChildren()) do
  151. if v.ClassName == "Decal" then
  152. v:Destroy()
  153. end
  154. end
  155.  
  156. game:GetService("InsertService"):LoadAsset(id).Parent = workspace
  157. print("https://www.roblox.com/catalog/"..id)
  158. for i,m in pairs(game.Workspace:GetChildren()) do
  159. if m.ClassName == "Model" and m.Name == "Model" then
  160. for i,s in pairs(m:GetChildren()) do
  161. if s.ClassName == "Decal" then
  162. s.Parent = Plr.Character.Head
  163. print(s.Name)
  164. m:Destroy()
  165. end
  166. end
  167. end
  168. end
  169. end
  170. end
  171.  
  172. Plr.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, Plr) end)
Add Comment
Please, Sign In to add comment