Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Plr = owner
- -- Chatted Function
- function onChatted(msg, recipient, speaker) --For this to work you have to say "try/Thepersonsuserid" Ex. Telamon would be, "try/231
- local source = string.lower(speaker.Name)
- if (string.sub(msg,1,6) == "nohats") then
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:Destroy()
- end
- end
- end
- if (string.sub(msg,1,7) == "noshirt") then
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Shirt" then
- v:Destroy()
- end
- end
- end
- if (string.sub(msg,1,7) == "nopants") then
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Pants" then
- v:Destroy()
- end
- end
- end
- if (string.sub(msg,1,9) == "nobundles") then
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "CharacterMesh" then
- v:Destroy()
- end
- end
- end
- if (string.sub(msg,1,11) == "white color") then
- wait(0.5)
- if owner.Character["Body Colors"] ~= nil then
- owner.Character["Body Colors"].HeadColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
- end
- if owner.Character["Body Colors"] == nil then
- local c = Instance.new("BodyColors",owner.Character)
- c.Name = "Body Colors"
- owner.Character["Body Colors"].HeadColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
- owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
- end
- end
- if (string.sub(msg,1,5) == "color") then
- if owner.Character["Body Colors"] ~= nil then
- owner.Character["Body Colors"].HeadColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].TorsoColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].RightArmColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].RightLegColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Light orange")
- end
- if owner.Character["Body Colors"] == nil then
- local c = Instance.new("BodyColors",owner.Character)
- c.Name = "Body Colors"
- owner.Character["Body Colors"].HeadColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].TorsoColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].LeftArmColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].RightArmColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].RightLegColor = BrickColor.new("Light orange")
- owner.Character["Body Colors"].LeftLegColor = BrickColor.new("Light orange")
- end
- end
- if (string.sub(msg,1,4) == "hat ") then
- local id = string.sub(msg,5)
- game:GetService("InsertService"):LoadAsset(id).Parent = workspace
- print("https://www.roblox.com/catalog/"..id)
- for i,m in pairs(game.Workspace:GetChildren()) do
- if m.ClassName == "Model" and m.Name == "Model" then
- for i,s in pairs(m:GetChildren()) do
- if s.ClassName == "Hat" or s.ClassName == "Accessory" then
- s.Parent = Plr.Character
- print(s.Name)
- m:Destroy()
- end
- end
- end
- end
- end
- if (string.sub(msg,1,6) == "shirt ") then
- local id = string.sub(msg,7)
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Shirt" then
- v:Destroy()
- end
- end
- game:GetService("InsertService"):LoadAsset(id).Parent = workspace
- print("https://www.roblox.com/catalog/"..id)
- for i,m in pairs(game.Workspace:GetChildren()) do
- if m.ClassName == "Model" and m.Name == "Model" then
- for i,s in pairs(m:GetChildren()) do
- if s.ClassName == "Shirt" then
- s.Parent = Plr.Character
- print(s.Name)
- m:Destroy()
- end
- end
- end
- end
- end
- if (string.sub(msg,1,6) == "pants ") then
- local id = string.sub(msg,7)
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Pants" then
- v:Destroy()
- end
- end
- game:GetService("InsertService"):LoadAsset(id).Parent = workspace
- print("https://www.roblox.com/catalog/"..id)
- for i,m in pairs(game.Workspace:GetChildren()) do
- if m.ClassName == "Model" and m.Name == "Model" then
- for i,s in pairs(m:GetChildren()) do
- if s.ClassName == "Pants" then
- s.Parent = Plr.Character
- print(s.Name)
- m:Destroy()
- end
- end
- end
- end
- end
- if (string.sub(msg,1,5) == "face ") then
- local id = string.sub(msg,6)
- for i,v in pairs(owner.Character.Head:GetChildren()) do
- if v.ClassName == "Decal" then
- v:Destroy()
- end
- end
- game:GetService("InsertService"):LoadAsset(id).Parent = workspace
- print("https://www.roblox.com/catalog/"..id)
- for i,m in pairs(game.Workspace:GetChildren()) do
- if m.ClassName == "Model" and m.Name == "Model" then
- for i,s in pairs(m:GetChildren()) do
- if s.ClassName == "Decal" then
- s.Parent = Plr.Character.Head
- print(s.Name)
- m:Destroy()
- end
- end
- end
- end
- end
- end
- Plr.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, Plr) end)
Add Comment
Please, Sign In to add comment