Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Entire script was created by ClassyInori#5056.
- If you're going to make videos or re-release this or whatever make sure to give credits.
- ]]
- local key = "k" -- key to toggle farm
- -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- if not type(key) == "string" or string.len(key) > 1 then error("mega new user :holy") else key = key:upper() end
- local function getService(str)
- return game:GetService(str)
- end
- -- secondary bypass method, main one is used in my paid script.
- local function tpwsbypass()
- local mt = getrawmetatable(game)
- if setreadonly then setreadonly(mt, false) elseif make_writeable then make_writeable(mt) end
- local o_namecall = mt.__namecall; local o_newindex = mt.__newindex
- mt.__namecall = function(self, ...)
- local args = {...}
- local method = args[#args]
- if method == "Kick" or method == "BreakJoints" then
- --print("Caught: "..method.." being naughty.")
- return
- end
- return o_namecall(self, ...)
- end
- mt.__newindex = function(t, k, v)
- if k == "Health" then
- --print("Caught death.")
- return error("Bypassed.")
- elseif k == "Value" and tostring(t) and tostring(t) == "Health" then
- --print("Caught death.")
- return error("Bypassed.")
- end
- return o_newindex(t, k, v)
- end
- end
- tpwsbypass()
- local plr = getService("Players").LocalPlayer; local char = plr.Character; local data = char:WaitForChild("Entity", 5)
- local function getMob()
- for i, v in next, getService("Workspace").Mobs:children() do
- if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Entity") and v:FindFirstChild("Healthbar") then
- return v
- end
- end
- warn("no mobs")
- end
- local toggled = false
- getService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode[key] then
- toggled = not toggled
- warn(tostring(toggled))
- end
- end)
- while wait(.25) do -- 10/10 loopage 100% non-skiddery :holy:
- if toggled then
- local mob = getMob()
- if mob then
- repeat wait(.1)
- if plr.Character then
- char = plr.Character
- else
- break
- end
- if char:FindFirstChild("Entity") then
- data = char.Entity
- else
- break
- end
- if not mob:FindFirstChild("HumanoidRootPart") then
- break
- elseif not mob:FindFirstChild("Entity") then
- break
- elseif not mob:FindFirstChild("Healthbar") then
- break
- elseif not char:FindFirstChild("HumanoidRootPart") then
- break
- end
- char.HumanoidRootPart.CFrame = mob.HumanoidRootPart.CFrame
- if mouse1click then
- mouse1click()
- elseif Input then
- Input.LeftClick()
- else
- error("ey yo u using a bad exploit why dont u buy synapse instead")
- end
- until data.Health.Value == 0 or not mob or not toggled
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement