Advertisement
InTesting

tool ban

Mar 17th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. -- anti tool script
  2. local workspaceC = workspace:GetDescendants()
  3. for _,v in pairs(workspaceC ) do
  4.     if v:IsA("Tool") and v.Parent~=owner.Character then
  5.         v:Destroy()
  6.     end
  7. end
  8. workspace.DescendantAdded:Connect(function(tool)
  9.     if tool:IsA("Tool") and tool.Parent~=owner.Character then
  10.         tool:Destroy()
  11.     end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement