|
| 25 Jul 2016 07:06 PM |
I need a script for this, I've searched in developer tab and none of them work. Help please, I don't mind if you make one or find a working one
|
|
|
| Report Abuse |
|
|
Dominical
|
  |
| Joined: 04 Nov 2011 |
| Total Posts: 1303 |
|
|
| 25 Jul 2016 07:08 PM |
Add this script to workspace or ServerScriptService:
-- Let me know if there's any errors or problems, and I'll investigate the script again. while wait(.5) do for i,v in pairs(workspace:GetChildren()) do if v:IsA("Hat") or v:IsA("Tool") then v:Destroy() end end end
|
|
|
| Report Abuse |
|
|
|
| 25 Jul 2016 07:10 PM |
It works perfectly, but I forgot to be specific my bad! can you make it where when someone says " clean " the script takes action
|
|
|
| Report Abuse |
|
|
|
| 25 Jul 2016 07:11 PM |
player.Chatted:connect(function(m)
if m:lower() == "clean" then --code end
end) |
|
|
| Report Abuse |
|
|
Dominical
|
  |
| Joined: 04 Nov 2011 |
| Total Posts: 1303 |
|
|
| 25 Jul 2016 07:21 PM |
Just in case you didn't know what to do with the thedailyblarg posted, replace what I gave you earlier with this:
player.Chatted:connect(function(m)
if m:lower() == "clean" then
for i,v in pairs(workspace:GetChildren()) do if v:IsA("Hat") or v:IsA("Tool") then v:Destroy()
end end end
end)
|
|
|
| Report Abuse |
|
|
| |
|
Dominical
|
  |
| Joined: 04 Nov 2011 |
| Total Posts: 1303 |
|
|
| 25 Jul 2016 07:28 PM |
Oops, try this:
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(m)
if m:lower() == "clean" then
for i,v in pairs(workspace:GetChildren()) do if v:IsA("Hat") or v:IsA("Tool") then v:Destroy()
end end end
end) end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|