Advertisement
Honansik

Soul Eater Resonance Farm Script

May 17th, 2022
6,221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.75 KB | None | 0 0
  1. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  2. local X = Material.Load({
  3. Title = "Soul Eater",
  4. Style = 3,
  5. SizeX = 500,
  6. SizeY = 350,
  7. ColorOverrides = {
  8. MainFrame = Color3.fromRGB(20,20,20),
  9. Minimise = Color3.fromRGB(20, 20, 20),
  10. MinimiseAccent = Color3.fromRGB(219, 210, 202),
  11. Maximise = Color3.fromRGB(189, 183, 177),
  12. MaximiseAccent = Color3.fromRGB(189, 183, 177),
  13. NavBar = Color3.fromRGB(166, 255, 0),
  14. NavBarAccent = Color3.fromRGB(20,20,20),
  15. NavBarInvert = Color3.fromRGB(30,30,30),
  16. TitleBar = Color3.fromRGB(166, 255, 0),
  17. TitleBarAccent = Color3.fromRGB(20,20,20),
  18. Overlay = Color3.fromRGB(166, 255, 0),
  19. Banner = Color3.fromRGB(20,20,20),
  20. BannerAccent = Color3.fromRGB(166, 255, 0),
  21. Content = Color3.fromRGB(166, 255, 0),
  22. Button = Color3.fromRGB(166, 255, 0),
  23. ButtonAccent = Color3.fromRGB(20,20,20),
  24. ChipSet = Color3.fromRGB(166, 255, 0),
  25. ChipSetAccent = Color3.fromRGB(20,20,20),
  26. DataTable = Color3.fromRGB(166, 255, 0),
  27. DataTableAccent = Color3.fromRGB(20,20,20),
  28. Slider = Color3.fromRGB(20,20,20),
  29. SliderAccent = Color3.fromRGB(166, 255, 0),
  30. Toggle = Color3.fromRGB(166, 255, 0),
  31. ToggleAccent = Color3.fromRGB(20,20,20),
  32. Dropdown = Color3.fromRGB(20,20,20),
  33. DropdownAccent = Color3.fromRGB(166, 255, 0),
  34. ColorPicker = Color3.fromRGB(20,20,20),
  35. ColorPickerAccent = Color3.fromRGB(166, 255, 0),
  36. TextField = Color3.fromRGB(166, 255, 0),
  37. TextFieldAccent = Color3.fromRGB(20,20,20),
  38. }
  39. })
  40.  
  41.  
  42. -- functions --
  43. local tp = false
  44. local Plr = game:GetService("Players").LocalPlayer
  45. local Mouse = Plr:GetMouse()
  46. Mouse.Button1Down:connect(function()
  47.     if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) and Mouse.Target and tp then
  48.         Plr.Character:MoveTo(Mouse.Hit.p)
  49.     end
  50. end)
  51. local function pressKey(key)
  52.     game:GetService('VirtualInputManager'):SendKeyEvent(true, key, false, game)
  53. end
  54. local farmM = false
  55. local monsters = {}
  56. local farmMonsters = function()
  57.     local npcs = game:GetService("Workspace").NPCS:GetChildren()
  58.     while farmM do
  59.         wait()
  60.         for i,v in pairs(npcs) do
  61.             for j,x in pairs(monsters) do
  62.                 if string.match(v.Name, x) then
  63.                     while farmM do
  64.                         wait()
  65.                         Plr.Character.HumanoidRootPart.CFrame = v[x].HumanoidRootPart.CFrame + v[x].HumanoidRootPart.CFrame.LookVector * -3
  66.                         local args = {
  67.                             [1] = "Up",
  68.                             [2] = CFrame.new(35.08075714111328, 140.1752166748047, -382.56640625) * CFrame.Angles(2.9372031688690186, 0.6149491667747498, -3.0225722789764404),
  69.                             [3] = "\240\159\152\153\240\159\152\153\240\159\152\161\240\159\152\173\240\159\152\173\240\159\152\173\240\159\152\173\240\159\164\160",
  70.                             [4] = "Down"
  71.                         }
  72.                         game:GetService("ReplicatedStorage").Remotes.KeyEvent:FireServer(unpack(args))
  73.                         pressKey(Enum.KeyCode.Q)
  74.                         pressKey(Enum.KeyCode.E)
  75.                         pressKey(Enum.KeyCode.F)
  76.                         pressKey(Enum.KeyCode.R)
  77.                         if v[x].Humanoid.Health == 0 or game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
  78.                             break
  79.                         end
  80.                     end
  81.                     if game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
  82.                         wait(5)
  83.                         pressKey(Enum.KeyCode.L)
  84.                     end
  85.                 end
  86.             end
  87.         end
  88.     end
  89. end
  90.  
  91. local farmQ = false
  92. local quest = nil
  93. local farmQuests = function()
  94.     local location = nil
  95.     if quest == "Psychopath" then
  96.         location = "PoliceQuest"
  97.     elseif quest == "Blademaster" then
  98.         location = "BurnedTunafishDog"
  99.     elseif quest == "Meister" then
  100.         location = "Chrona"
  101.     elseif quest == "Zombie" then
  102.         location = "ZombieQuest"
  103.     end
  104.     while farmQ do
  105.         wait()
  106.         if game:GetService("Players").LocalPlayer.PlayerGui.Gui.Quests.Visible == false then
  107.             Plr.Character.HumanoidRootPart.CFrame = game.Workspace.NPCS.Quests[location].HumanoidRootPart.CFrame
  108.             local args = {
  109.                 [1] = quest,
  110.                 [2] = workspace.NPCS.Quests[location].Detect
  111.             }
  112.  
  113.             game:GetService("ReplicatedStorage").Remotes.Quest:FireServer(unpack(args))
  114.         end
  115.     end
  116. end
  117.  
  118. -- Buttons --
  119. local Page1 = X.New({
  120. Title = "Main"
  121. })
  122.  
  123. local cntrltp = Page1.Toggle({
  124. Text = "Ctrl Click TP",
  125. Callback = function(Value)
  126.         tp = Value
  127. end,
  128. Enabled = false
  129. })
  130.  
  131. local farmmonsters = Page1.Toggle({
  132. Text = "Farm Monsters",
  133. Callback = function(Value)
  134.         farmM = Value
  135.         farmMonsters()
  136. end,
  137. Enabled = false
  138. })
  139.  
  140. local monsterTypes = Page1.ChipSet({
  141. Callback = function(ChipSet)
  142. table.foreach(ChipSet, function(Option, Value)
  143. if Value then
  144. local ispresent = false
  145. for i,v in pairs(monsters) do
  146. if v == Option then
  147. ispresent = true
  148. end
  149. end
  150. if ispresent == false then
  151. table.insert(monsters, Option)
  152. end
  153. else
  154. for i,v in pairs(monsters) do
  155. if v == Option then
  156. table.remove(monsters, i)
  157. end
  158. end
  159. end
  160. end)
  161. end,
  162. Options = {
  163.         Zombies = true,
  164.         Meister = true,
  165.         Psychopath = true,
  166.         Blademaster = true
  167. }
  168. })
  169.  
  170. local farmquests = Page1.Toggle({
  171. Text = "Farm Quests",
  172. Callback = function(Value)
  173.         farmQ = Value
  174.         farmQuests()
  175. end,
  176. Enabled = false
  177. })
  178.  
  179. local questselect = Page1.Dropdown({
  180. Text = "Choose a quest",
  181. Callback = function(Value)
  182. quest = Value
  183. end,
  184. Options = {
  185.         "Psychopath",
  186.         "Blademaster",
  187.         "Meister",
  188.         "Zombie"
  189.     }
  190. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement