1 | loopEnabled = true |
2 | repeat |
3 | wait(0) |
4 | if loopEnabled then |
5 | for _, a in pairs(game:GetService("Workspace"):GetDescendants()) do |
6 | if a.Name == "ClickDetector" and a.Parent.Parent.Name == "Axe" then |
7 | fireclickdetector(a) |
8 | end |
9 | end |
10 | for _, a in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do |
11 | if a.Name == "Axe" and not game.Players.LocalPlayer.Character:FindFirstChild("Axe") then |
12 | a.Parent = game.Players.LocalPlayer.Character |
13 | end |
14 | end |
15 | end |
16 | until game.Players.LocalPlayer.Character.Humanoid.Health == 0 |