Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.70 KB | None | 0 0
  1. local Rawr = {}
  2. local Api = {}
  3. local Log = {}
  4.  
  5. local function Service(name)
  6. return game:GetService(name)
  7. end
  8.  
  9. local function SecondsToClock(seconds)
  10. -- https://gist.github.com/jesseadams/791673
  11. local seconds = tonumber(seconds)
  12. if seconds <= 0 then
  13. return "00:00:00";
  14. else
  15. local hours = string.format("%02.f", math.floor(seconds/3600));
  16. local mins = string.format("%02.f", math.floor(seconds/60 - (hours*60)));
  17. local secs = string.format("%02.f", math.floor(seconds - hours*3600 - mins *60));
  18. return hours..":"..mins..":"..secs
  19. end
  20. end
  21.  
  22. function Log:Init()
  23. local Profile = game:GetService("ReplicatedStorage").Profiles[Api.GetPlayer().Name]
  24. local Vel = Profile.Stats.Vel
  25. local LastVel = Vel.Value
  26. Log.Earned = {
  27. Vel = 0,
  28. Items = {},
  29. }
  30. Profile.Inventory.ChildAdded:Connect(function(item)
  31. table.insert(Log.Earned.Items, item.Name)
  32. if(Api.GetSetting("auto_dismantle") == true)then
  33. Api.Dismantle(item.Name)
  34. end
  35. end)
  36. Vel.Changed:Connect(function()
  37. local earn = Vel.Value - LastVel
  38. LastVel = Vel.Value
  39. Log.Earned.Vel = Log.Earned.Vel + earn
  40. end)
  41. end
  42.  
  43. function Log.Save()
  44. Log.Earned.RunTime = SecondsToClock(tick()-Api.Start)
  45. Synapse:WriteFile(tick() .. "_log.dat", game:GetService("HttpService"):JSONEncode(Log.Earned))
  46. end
  47.  
  48. function Rawr:Check(...) --secret sauce
  49. local player = Api.GetPlayer()
  50. local character = Api.GetCharacter()
  51. local args = {...}
  52.  
  53. if(character and character.PrimaryPart and args[1]:lower()=="cframe")then
  54. --player.Character = Api.FakeCharacter
  55. player.Character.RobloxLocked = true
  56. wait(Api.GetSetting("rawr_bypass_speed"))
  57. character:SetPrimaryPartCFrame(args[2])
  58. wait(Api.GetSetting("rawr_bypass_speed"))
  59. --player.Character = character
  60. player.Character.RobloxLocked = false
  61. end
  62. end
  63.  
  64. function Api.GetPlayer()
  65. return game:GetService("Players").LocalPlayer
  66. end
  67.  
  68. function Api.Dismantle(name)
  69. game.ReplicatedStorage.Event:FireServer("Equipment", {
  70. "Dismantle",
  71. game:GetService("ReplicatedStorage").Profiles[Api.GetPlayer().Name].Inventory[name]
  72. })
  73. end
  74.  
  75. function Api.Replicate(object)
  76. local Model = Instance.new("Model")
  77. Model.Name = object.Name
  78. for index, child in pairs(object:GetChildren()) do
  79. local c = child:Clone()
  80. c.Parent = Model
  81. end
  82. if(object.PrimaryPart)then
  83. Model.PrimaryPart = Model[object.PrimaryPart.Name]
  84. end
  85. return Model
  86. end
  87.  
  88. function Api.GetCharacter()
  89. return Api.Character or Api.GetPlayer().Character
  90. end
  91.  
  92. function Api.GetEntity(model)
  93. return model:FindFirstChild("Entity")
  94. end
  95.  
  96. function Api.Settings(...)
  97. Api.Settings = {}
  98. for name, value in pairs(...) do
  99. Api.Settings[name] = value
  100. end
  101. end
  102.  
  103. function Api.GetSetting(name)
  104. return Api.Settings[name]
  105. end
  106.  
  107. function Api.IsValid(model)
  108. if(model.PrimaryPart and model:FindFirstChild("Entity") and model.Entity:FindFirstChild("Health") and model.Parent~=nil and model:FindFirstChild("Nameplate"))then
  109. return true
  110. end
  111. end
  112.  
  113. function Api.GetPlayerDistances(model)
  114. local localPlayer = Api.GetPlayer()
  115. local distances = {}
  116. for index, player in pairs(Service("Players"):GetChildren()) do
  117. if(player~=localPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and model:FindFirstChild("HumanoidRootPart"))then
  118. distances[player.Name] = (model.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude
  119. end
  120. end
  121. return distances
  122. end
  123.  
  124. function Api.CheckNear(monster)
  125. if(Api.GetSetting("avoid_players_nearby")["Enabled"] == true)then
  126. local max_distance = Api.GetSetting("avoid_players_nearby")["Distance"]
  127. local distances = Api.GetPlayerDistances(monster)
  128. for player, distance in pairs(distances)do
  129. if(distance <= max_distance)then
  130. return false
  131. end
  132. end
  133. end
  134. return true
  135. end
  136.  
  137. function Api.CheckBlacklist(monster)
  138. for index, blacklist in pairs(Api.Blacklist) do
  139. if(monster == blacklist)then
  140. return false
  141. end
  142. end
  143. return true
  144. end
  145.  
  146. function Api.GetMonsters()
  147. local targets = {}
  148. for index, monster in pairs(Service("Workspace").Mobs:GetChildren()) do
  149. local entity = monster:FindFirstChildOfClass("Folder")
  150. local filterApplied = false
  151. local distanceCheck = Api.CheckNear(monster)
  152. if(monster.PrimaryPart and Api.IsValid(monster) and distanceCheck and Api.CheckBlacklist(monster))then
  153. if(Api.GetSetting("monster_filter")["Enabled"] == true)then
  154. if(entity.Health.Value >= Api.GetSetting("monster_filter")["max_monster_health"] and entity.Exp.Value >= Api.GetSetting("monster_filter")["min_exp_earned"])then
  155. table.insert(targets, monster)
  156. end
  157. filterApplied = true
  158. elseif(Api.GetSetting("target_specific_enemy").Enabled == true)then
  159. if(Api.GetSetting("target_specific_enemy").Names[monster.Nameplate.SurfaceGui.TextLabel.Text] == true)then
  160. table.insert(targets, monster)
  161. end
  162. filterApplied = true
  163. end
  164. if(filterApplied == false)then
  165. table.insert(targets, monster)
  166. end
  167. end
  168. end
  169. return targets
  170. end
  171.  
  172. function Api:Connect()
  173. local player = Api.GetPlayer()
  174. local character = Api.GetCharacter()
  175. local setupCharacter = function(character)
  176. Api.FakeCharacter = Api.Replicate(character)
  177. end
  178.  
  179. setupCharacter(character)
  180. player.CharacterAdded:Connect(setupCharacter)
  181. end
  182.  
  183. function Api:SetKeys()
  184. game:GetService("UserInputService").InputBegan:connect(function(Key)
  185. if(Key.KeyCode == Api.GetSetting("stop_key"))then
  186. Api.Enabled = false
  187. elseif(Key.KeyCode == Api.GetSetting("pause_key"))then
  188. Api.Paused = true
  189. elseif(Key.KeyCode == Api.GetSetting("unpause_key"))then
  190. Api.Paused = false
  191. end
  192. end)
  193. end
  194. --[[
  195. CREATED BY Methode @v3rmillion
  196. MODIFIED BY ZombieRushFan @v3rmillion || Styler12#2196 || Sealtiel Dy @FB
  197. ]]
  198. function Api:Init()
  199. Api.Blacklist = {}
  200. Api.Start = tick()
  201. Api.Paused = false
  202. Api.CanClick = false
  203. Api.Enabled = true
  204. wait(Api.GetSetting("StartDelay"))
  205. spawn(function()
  206. while wait(Api.GetSetting("click_break_speed")) and Api.Enabled do
  207. if(Api.Paused == false and Api.CanClick == true)then
  208. if(mouse1click)then
  209. mouse1click()
  210. end
  211. else
  212. wait()
  213. end
  214. end
  215. end)
  216. while wait() and Api.Enabled do
  217. --[[experimental, works but sometimes still glitches you above the ground
  218. for i,v in pairs(game.Workspace.Mobs:children()) do --credits to Mortalkombatman2
  219. if v:FindFirstChild("Head") then
  220. v.HumanoidRootPart.Transparency = 0.5
  221. v.HumanoidRootPart.Size = Vector3.new(10, 20, 10)
  222. end
  223. end
  224. ]]
  225. if(Api.Paused == false)then
  226. for index, monster in pairs(Api.GetMonsters()) do
  227. local distanceCheck = Api.CheckNear(monster)
  228. if(distanceCheck and Api.IsValid(monster) and Api.Enabled)then -- recheck
  229. Rawr:Check("CFrame", monster:GetPrimaryPartCFrame() * CFrame.Angles(math.rad(Api.GetSetting("rocX")),math.rad(Api.GetSetting("rocY")),math.rad(Api.GetSetting("rocZ"))) * CFrame.new(Api.GetSetting("dfmX"), Api.GetSetting("dfmY"), Api.GetSetting("dfmZ"))) -- bypass
  230. wait(Api.GetSetting("swap_monster_speed"))
  231. local entity = Api.GetEntity(monster)
  232. local base = entity.Health.Value
  233. entity.Health.Changed:Connect(function()
  234. if(entity.Health.Value == base)then
  235. dontBreak = false
  236. end
  237. end)
  238. dontBreak = true
  239. local timer = 0
  240. while dontBreak and Api.Enabled do
  241. if(Api.Paused == false)then
  242. local thisTime = wait()
  243. wait(thisTime)
  244. timer = timer + thisTime
  245. if(timer >= Api.GetSetting("timeout")["time"])then
  246. warn('Timeout exceeded!')
  247. if(Api.GetSetting("timeout")["blacklist_monster_after_timeout"] == true)then
  248. table.insert(Api.Blacklist, monster)
  249. end
  250. break
  251. end
  252. if(Api.IsValid(monster) and entity.Health.Value > 0)then
  253. local character = Api.GetCharacter()
  254. if(character)then
  255. Api.CanClick = false -- true
  256. character:SetPrimaryPartCFrame(monster:GetPrimaryPartCFrame() * CFrame.Angles(math.rad(Api.GetSetting("rocX")),math.rad(Api.GetSetting("rocY")),math.rad(Api.GetSetting("rocZ"))) * CFrame.new(Api.GetSetting("dfmX"), Api.GetSetting("dfmY"), Api.GetSetting("dfmZ")))
  257. wait(Api.GetSetting("swap_monster_speed"))
  258. else
  259. character = Api.GetCharacter()
  260. if(character)then
  261. Rawr:Check("CFrame", monster:GetPrimaryPartCFrame() * CFrame.Angles(math.rad(Api.GetSetting("rocX")),math.rad(Api.GetSetting("rocY")),math.rad(Api.GetSetting("rocZ"))) * CFrame.new(Api.GetSetting("dfmX"), Api.GetSetting("dfmY"), Api.GetSetting("dfmZ"))) -- bypass
  262. wait(Api.GetSetting("swap_monster_speed"))
  263. wait(Api.GetSetting("swap_monster_speed"))
  264. end
  265. end
  266. else
  267. Api.CanClick = false
  268. break
  269. end
  270. else
  271. wait()
  272. end
  273. end
  274. wait(Api.GetSetting("swap_monster_speed"))
  275. end
  276. end
  277. end
  278. end
  279. Log.Save()
  280. end
  281.  
  282. Api.Settings({
  283. ["start_delay"] = 1,
  284. ["stop_key"] = Enum.KeyCode.Escape,
  285. ["pause_key"] = Enum.KeyCode.LeftControl,
  286. ["unpause_key"] = Enum.KeyCode.RightControl,
  287. ["rawr_bypass_speed"] = 0.1, -- 0.1
  288. ["swap_monster_speed"] = 0.05, -- 0.05,
  289. ["click_break_speed"] = 0.01,
  290. ["auto_dismantle"] = false,
  291. ["rocX"] = 90, -- rotation of character based on X-Axis
  292. ["rocY"] = 0, -- rotation of character based on Y-Axis
  293. ["rocZ"] = 0, -- rotation of character based on Z-Axis
  294. ["dfmX"] = 0, -- distance from the mob in X-Axis based on rotation
  295. ["dfmY"] = 0, -- distance from the mob in Y-Axis based on rotation
  296. ["dfmZ"] = 9, -- distance from the mob in Z-Axis based on rotation
  297. ["timeout"] = {
  298. ["time"] = 15,
  299. ["blacklist_monster_after_timeout"] = true
  300. },
  301. ["monster_filter"] = {
  302. ["Enabled"] = false,
  303. ["max_monster_health"] = 0,
  304. ["min_exp_earned"] = 70,
  305. },
  306. ["avoid_players_nearby"] = {
  307. ["Enabled"] = false,
  308. ["Distance"] = 200
  309. },
  310. ["target_specific_enemy"] = {
  311. ["Enabled"] = false,
  312. ["Names"] = {
  313. ["Grim the Overseer"] = true,
  314. ["Baal"] = true,
  315. ["Wendigo"] = true,
  316. ["Winged Minion"] = true,
  317. ["Grunt"] = false,
  318. ["Undead Warrior"] = false,
  319. ["Gargoyle Reaper"] = false,
  320. ["Mortis the Flaming Sear"] = false,
  321. ["Ent"] = false,
  322. ["Patrolman Elite"] = false,
  323. ["Centaurian Defender"] = false,
  324. ["Sa'jun the Centurian Chieftain"] = false,
  325. ["Fire Scorpion"] = false,
  326. }
  327. }
  328. })
  329.  
  330. Api:SetKeys()
  331. Api:Connect()
  332. Log:Init()
  333. Api:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement