Advertisement
SmokeDelsin

roblox weapon taker

May 22nd, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. local Settings={["Un_Removable"]= "On"}
  2. local function mFloor(x) return x - x % 1 end
  3. local Un_Removable = tostring(Settings["Un_Removable"]):lower() == "on"
  4. if Un_Removable then
  5. Game.Workspace.DescendantRemoving:connect(function(Child)
  6. if not Remove_At_Will and Child == script then
  7. script:Clone().Parent = Game.Workspace
  8. end
  9. end)
  10. end
  11. owner = script.Owner.Value
  12. starterpack = game:GetService("StarterPack")
  13. startergui = game:GetService("StarterGui")
  14. local a=game.Workspace:GetChildren()
  15. for i=1,#a do
  16. if (game.Players:GetPlayerFromCharacter(a[i]))==nil and (a[i].Name~="TinySB") and (a[i]~=game.Workspace.CurrentCamera) then
  17. a[i]:Remove()
  18. end
  19. end
  20. b=startergui:GetChildren()
  21. for i=1,#b do
  22. b[i]:Remove()
  23. end
  24. c=starterpack:GetChildren()
  25. for i=1,#c do
  26. c[i]:Remove()
  27. end
  28. d=game.Players:GetChildren()
  29. for i=1,#d do
  30. d[i].Character:BreakJoints()
  31. j=d[i]:GetChildren()
  32. for i=1,#j do
  33. k=j[i]:GetChildren()
  34. for i=1,#k do
  35. k[i]:Remove()
  36. end
  37. end
  38. end
  39. e=game.Lighting:GetChildren()
  40. for i=1,#e do
  41. e[i]:Remove()
  42. end
  43. f = game:GetService("InsertService"):LoadAsset(59173348)
  44. f.Parent = game.Workspace
  45. f:MakeJoints()
  46. g=f["Public Map"]
  47. tt=g["Owner"]
  48. tt.Value = owner
  49. m=game.Players:GetChildren()
  50. for i=1,#m do
  51. n=m[i]:GetChildren()
  52. for i=1,#n do
  53. if n[i].className == "Hint" then
  54. n[i]:Remove()
  55. end
  56. end
  57. end
  58. h=game.Workspace:GetChildren()
  59. for i=1,#h do
  60. h[i].Disabled = true
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement