ADVERTISEMENTREMOVE ADS
Many Features
22,569 views
Script Preview
ADVERTISEMENTREMOVE ADS
83 Lines β’ 4.15 KiB
Verified
getgenv().settings = {
autocollect = {
enabled = true,
collectonce = false,
drop = true
},
hitaura = {
enabled = true,
hitdistance = 100
},
repairdefenses = {
enabled = true
}
}
task.spawn(function()
while getgenv().settings.autocollect.enabled do
if getgenv().settings.autocollect.collectonce then
for i, v in ipairs(workspace.Interactables:GetChildren()) do
if v:GetAttribute("ObjectUUID") and v:FindFirstChildOfClass("Humanoid") then
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\016$\000" .. v:GetAttribute("ObjectUUID")), {})
break
end
end
if getgenv().settings.autocollect.drop then
for i, v in ipairs(workspace.Camera.FirstPersonArm:GetChildren()) do
if v:FindFirstChildOfClass("Humanoid") then
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\014\000"), {})
task.wait(0.1)
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\017\000\001"), {})
end
end
end
else
for i, v in ipairs(workspace.Interactables:GetChildren()) do
if v:GetAttribute("ObjectUUID") and v:FindFirstChildOfClass("Humanoid") then
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\016$\000" .. v:GetAttribute("ObjectUUID")), {})
task.wait(0.1)
end
end
if getgenv().settings.autocollect.drop then
for i, v in ipairs(workspace.Camera.FirstPersonArm:GetChildren()) do
if v:FindFirstChildOfClass("Humanoid") then
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\014\001\001\014\001\001"), {})
task.wait(0.1)
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\017\000\001"), {})
task.wait(0.1)
end
end
end
end
task.wait(0.1)
end
end)
task.spawn(function()
while task.wait(0.1) do
if getgenv().settings.hitaura.enabled and game:GetService("Players").LocalPlayer.Character then
for i, v in ipairs(workspace.Monsters:GetChildren()) do
if v:FindFirstChildOfClass("Humanoid") and (v.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= getgenv().settings.hitaura.hitdistance then
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\021\001\000\000\000\003"), {v})
end
end
end
end
end)
task.spawn(function()
while task.wait(0.1) do
if getgenv().settings.repairdefenses.enabled then
for i, v in ipairs(game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("Pages"):WaitForChild("Home"):GetDescendants()) do
if v.Name == "ItemLabel" and (string.find(v.Text, "Iron Repair Hammer") or string.find(v.Text, "Wood Repair Hammer")) then
for i2, v2 in ipairs(v.Parent:GetDescendants()) do
if string.find(v2.Name, "SlotNumber") then
game:GetService("ReplicatedStorage"):WaitForChild("ZAP"):WaitForChild("ZAP_RELIABLE"):FireServer(buffer.fromstring("\023\001"), {{defenses = workspace.Defenses:GetChildren(), activeSlot = tonumber(v2.Text)}})
break
end
end
end
end
end
end
end)
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS




Comments