dsakljdsalk

Untitled

Mar 15th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. --[[
  2. > Credits <
  3.  
  4. Stellar = Making the main script.
  5. Hamiii = Unpatching it and re scripting it.
  6. ]]
  7.  
  8. --// EDITABLE
  9. local SpammingTimes = _G.SpammingTimes
  10. --// DO NOT EDIT
  11. local Remotes = game.ReplicatedStorage.remotes
  12. local Player = game.Players.LocalPlayer
  13. local make_writeable = setreadonly or make_writeable
  14. if not make_writeable then
  15. game.Players.LocalPlayer:Kick('Your exploit is not compatible with this script!')
  16. end
  17. local mt = debug.getmetatable(game) or getrawmetatable(game)
  18. local old = mt.__namecall
  19. make_writeable(mt,false)
  20. mt.__namecall = function(self,...)
  21. local a = {...}
  22. local m = table.remove(a)
  23. if self.Name == 'equipItem' and game.IsA(self,'RemoteFunction') and m == "InvokeServer" then
  24. _G.Key = a[2]
  25. _G.st = a[3]
  26. _G.Ready = true
  27. end
  28. return old(self,...)
  29. end
  30.  
  31. if type(_G.Key) ~= 'number' then
  32. game.StarterGui:SetCore("SendNotification", {
  33. Title = "Dungeon Quest";
  34. Text = "Please re-equip the spell you want to use!";
  35. Duration = 5;
  36. })
  37. end
  38.  
  39. local function spellCheck()
  40. for k,v in next,game.Players.LocalPlayer.Backpack:GetChildren() do
  41. if v.ClassName == 'Tool' and v.abilitySlot.Value == tostring(_G.st) then
  42. return v
  43. else
  44. end
  45. end
  46. end
  47.  
  48. local function checkgui()
  49. if game.CoreGui:FindFirstChild('DevConsoleMaster') and game.CoreGui:FindFirstChild('DevConsoleMaster').DevConsoleWindow.DevConsoleUI:FindFirstChild('MainView') then
  50. for k,v in next,game.CoreGui.DevConsoleMaster.DevConsoleWindow.DevConsoleUI:FindFirstChild('MainView').ClientLog:GetChildren() do
  51. if v.ClassName ~= 'UIListLayout' then
  52. for dick,suck in next,v:GetChildren() do
  53. if suck.ClassName == 'TextLabel' and suck.Text:match('inventory') then
  54. suck:Destroy()
  55. end
  56. end
  57. end
  58. end
  59. end
  60. end
  61.  
  62.  
  63. local function Run()
  64. Loop = game:GetService("RunService").RenderStepped:Connect(function()
  65. if spellCheck() and spellCheck().Name and Player.Backpack:FindFirstChild(spellCheck().Name) then
  66. Player.Backpack[spellCheck().Name].Parent = Player.Backpack["Arcane Barrage"]
  67. Remotes.unequipItem:InvokeServer("ability", _G.Key)
  68. Remotes.equipItem:InvokeServer("ability", _G.Key, tostring(_G.st))
  69. checkgui()
  70. end
  71. end)
  72. wait(SpammingTimes)
  73. game.StarterGui:SetCore("SendNotification", {
  74. Title = "Dungeon Quest";
  75. Text = "Loaded spammer!\nPress F :)";
  76. Duration = 5;
  77. })
  78. Loop:Disconnect()
  79. checkgui()
  80. end
  81.  
  82.  
  83.  
  84. game:GetService("UserInputService").InputBegan:Connect(function(inputObject)
  85. if inputObject.KeyCode == Enum.KeyCode.F then
  86. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetDescendants()) do
  87. if v:IsA("RemoteEvent") then
  88. if v.Parent:FindFirstChild('abilitySlot') then
  89. if v.Parent.abilitySlot.Value == tostring(_G.st) then
  90. v:FireServer()
  91. wait()
  92. end
  93. end
  94. end
  95. end
  96. end
  97. end)
  98.  
  99. while true do
  100. if _G.Ready == true and game.Players.LocalPlayer.Backpack:FindFirstChildOfClass('Tool') and game.Players.LocalPlayer.Backpack:FindFirstChildOfClass('Tool').abilitySlot ~= tostring(_G.st) then
  101. Run()
  102. break
  103. end
  104. wait()
  105. end
Advertisement
Add Comment
Please, Sign In to add comment