Advertisement
Upscalefanatic3

Swordburst 2 level script!

Mar 27th, 2018
16,721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. --[[
  2. Entire script was created by ClassyInori#5056.
  3. If you're going to make videos or re-release this or whatever make sure to give credits.
  4. ]]
  5.  
  6. local key = "k" -- key to toggle farm
  7.  
  8. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  9.  
  10. if not type(key) == "string" or string.len(key) > 1 then error("mega new user :holy") else key = key:upper() end
  11.  
  12. local function getService(str)
  13. return game:GetService(str)
  14. end
  15.  
  16. -- secondary bypass method, main one is used in my paid script.
  17. local function tpwsbypass()
  18. local mt = getrawmetatable(game)
  19. if setreadonly then setreadonly(mt, false) elseif make_writeable then make_writeable(mt) end
  20. local o_namecall = mt.__namecall; local o_newindex = mt.__newindex
  21.  
  22. mt.__namecall = function(self, ...)
  23. local args = {...}
  24. local method = args[#args]
  25. if method == "Kick" or method == "BreakJoints" then
  26. --print("Caught: "..method.." being naughty.")
  27. return
  28. end
  29. return o_namecall(self, ...)
  30. end
  31.  
  32. mt.__newindex = function(t, k, v)
  33. if k == "Health" then
  34. --print("Caught death.")
  35. return error("Bypassed.")
  36. elseif k == "Value" and tostring(t) and tostring(t) == "Health" then
  37. --print("Caught death.")
  38. return error("Bypassed.")
  39. end
  40. return o_newindex(t, k, v)
  41. end
  42. end
  43.  
  44. tpwsbypass()
  45.  
  46. local plr = getService("Players").LocalPlayer; local char = plr.Character; local data = char:WaitForChild("Entity", 5)
  47.  
  48. local function getMob()
  49. for i, v in next, getService("Workspace").Mobs:children() do
  50. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Entity") and v:FindFirstChild("Healthbar") then
  51. return v
  52. end
  53. end
  54. warn("no mobs")
  55. end
  56.  
  57. local toggled = false
  58. getService("UserInputService").InputBegan:Connect(function(input)
  59. if input.KeyCode == Enum.KeyCode[key] then
  60. toggled = not toggled
  61. warn(tostring(toggled))
  62. end
  63. end)
  64.  
  65. while wait(.25) do -- 10/10 loopage 100% non-skiddery :holy:
  66. if toggled then
  67. local mob = getMob()
  68. if mob then
  69. repeat wait(.1)
  70. if plr.Character then
  71. char = plr.Character
  72. else
  73. break
  74. end
  75. if char:FindFirstChild("Entity") then
  76. data = char.Entity
  77. else
  78. break
  79. end
  80. if not mob:FindFirstChild("HumanoidRootPart") then
  81. break
  82. elseif not mob:FindFirstChild("Entity") then
  83. break
  84. elseif not mob:FindFirstChild("Healthbar") then
  85. break
  86. elseif not char:FindFirstChild("HumanoidRootPart") then
  87. break
  88. end
  89. char.HumanoidRootPart.CFrame = mob.HumanoidRootPart.CFrame
  90. if mouse1click then
  91. mouse1click()
  92. elseif Input then
  93. Input.LeftClick()
  94. else
  95. error("ey yo u using a bad exploit why dont u buy synapse instead")
  96. end
  97. until data.Health.Value == 0 or not mob or not toggled
  98. end
  99. end
  100. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement