Advertisement
Honansik

The Maze Infinite Axe Script

Nov 15th, 2021
4,830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.72 KB | None | 0 0
  1. local tpp = game:GetService("Workspace").Axe.Handle.ClickDetector
  2. local runservice = game:GetService("RunService")
  3. local lp = game.Players.LocalPlayer
  4. local mouse = lp:GetMouse()
  5.  
  6. fireclickdetector(tpp)
  7. lp.Backpack.ChildRemoved:Connect(function(hh)
  8. if hh:IsA("Tool") and hh.Name == "Axe" then
  9. fireclickdetector(tpp)
  10. end
  11. end)
  12. lp.CharacterAdded:Connect(function(hhh)
  13. fireclickdetector(tpp)
  14. lp.Backpack.ChildRemoved:Connect(function(hb)
  15. if hb:IsA("Tool") and hb.Name == "Axe" then
  16. fireclickdetector(tpp)
  17. end
  18. end)
  19. end)
  20. mouse.Button1Down:Connect(function()
  21. if lp.Character then
  22. for i,v in pairs(lp.Character:GetChildren()) do
  23. if v:IsA("Tool") and v.Name == "Axe" and v:FindFirstChild("ServerControl") then
  24. coroutine.wrap(function()
  25. v.ServerControl:InvokeServer("Click",true,mouse.Hit.p)
  26. end)()
  27. end
  28. end
  29. else
  30. lp.CharacterAdded:Wait()
  31. for i,v in pairs(lp.Character:GetChildren()) do
  32. if v:IsA("Tool") and v.Name == "Axe" and v:FindFirstChild("ServerControl") then
  33. coroutine.wrap(function()
  34. v.ServerControl:InvokeServer("Click",true,mouse.Hit.p)
  35. end)()
  36. end
  37. end
  38. end
  39. end)
  40.  
  41. mouse.KeyDown:Connect(function(key)
  42. if key:lower() == "q" and lp.Backpack ~= nil then
  43. for i,v in pairs(lp.Backpack:GetChildren()) do
  44. coroutine.wrap(function()
  45. if v.Name == "Axe" and v:IsA("Tool") then
  46. v.Parent = lp.Character
  47. end
  48. end)()
  49. end
  50. end
  51. end)
  52. lp.Backpack.ChildAdded:Connect(function(hh)
  53. if hh:IsA("Tool") and hh.Name == "Axe" then
  54. runservice.Stepped:Wait()
  55. hh.Parent = game.Players.LocalPlayer.Character
  56. end
  57. end)
  58. lp.CharacterAdded:Connect(function(hb)
  59. lp.Backpack.ChildAdded:Connect(function(hh)
  60. if hh:IsA("Tool") and hh.Name == "Axe" then
  61. runservice.Stepped:Wait()
  62. hh.Parent = game.Players.LocalPlayer.Character
  63. end
  64. end)
  65. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement