[ad_1]
Created by Fuu Dev
Features:
local anticheat = game.Workspace:FindFirstChild("DirtsAntiExploit")
if (anticheat) then
anticheat:Destroy()
end
local player = game.Players.LocalPlayer
function teleport(location)
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRoot = character:WaitForChild("HumanoidRootPart")
local previousLocation = humanoidRoot.CFrame
humanoidRoot.CFrame = location
return(previousLocation)
end
function getFoodLocation(food)
local parts = food:GetDescendants()
for index, part in ipairs(parts) do
if (part.Name == "HumanoidRootPart" or part.Name == "Veggies") then
return(part.CFrame)
end
end
end
function getProximity(food)
local parts = food:GetDescendants()
for index, part in ipairs(parts) do
if (part.Name == "ProximityPrompt") then
return(part)
end
end
end
function getFood(food, amount)
local proximity = getProximity(food)
local location = getFoodLocation(food)
local previousLocation = teleport(location)
wait(0.25)
while (amount > 0) do
fireproximityprompt(proximity, 5)
amount = amount - 1
end
teleport(previousLocation)
end
function checkFood()
local food = nil
if (game.Workspace:FindFirstChild("BentoMerchant")) then
food = game.Workspace:FindFirstChild("BentoMerchant")
else
local parts = game.Workspace:GetDescendants()
for index, part in ipairs(parts) do
if (part.Name == "Udon Stand") then
food = part
end
end
end
return(food)
end
local food = checkFood()
local amount = 50
if (food ~= nil) then
getFood(food, amount)
end
- AUTO HEAL WHEN HEALTH IS 70%
local player = game.Players.LocalPlayer
function dequip()
for index, part in ipairs(player.Character:GetDescendants()) do
if (part.ClassName == "Tool") then
player.Character.Humanoid:UnequipTools()
return(part)
end
end
return(nil)
end
function eatfood()
for index, part in ipairs(player.Backpack:GetChildren()) do
if (part.Name == "Udon" or part.Name == "Bento") then
player.Character.Humanoid:EquipTool(part)
part.Rem:FireServer()
return(nil)
end
end
end
function heal()
tool = dequip()
eatfood()
if (tool ~= nil) then
player.Character.Humanoid:EquipTool(tool)
else
player.Character.Humanoid:UnequipTools()
end
end
_G.autoheal = true
while _G.autoheal do
wait()
if player.Character then
if (player.Character.Humanoid.Health < 70) then
heal()
wait(2)
end
end
end
- MONEY STEALER & AUTO COLLECT
function collect()
local root = game.Players.LocalPlayer.Character.HumanoidRootPart
local parts = game.Workspace:GetDescendants()
for index, part in ipairs(parts) do
if (part.Name == "Giver") then
firetouchinterest(root, part, 0)
wait(0.25)
firetouchinterest(root, part, 1)
end
end
end
while true do
collect()
wait(20)
end
local player = game.Players.LocalPlayer
function processState(oldState, newState)
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
if (newState == Enum.HumanoidStateType.FallingDown or newState == Enum.HumanoidStateType.Ragdoll) then
humanoid:ChangeState(Enum.HumanoidStateType.Running)
end
end
function initialize()
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid.StateChanged:Connect(processState)
end
initialize()
player.CharacterAdded:Connect(initialize)
tycoons = game.Workspace.TycoonSets.Tycoons:GetChildren()
for index, tycoon in ipairs(tycoons) do
if (tostring(tycoon.Owner.Value) == game.Players.LocalPlayer.Name) then
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = tycoon.Essentials.Spawn.CFrame
end
end
local player = game.Players.LocalPlayer
local buying = true
function convertMoney(str)
if (string.find(str, "+")) then
local letter = string.sub(str, #str-1, #str-1)
local amount = tonumber(string.sub(str, 1, #str-2))
if (letter == "K") then
return(amount * 1000)
elseif (letter == "M") then
return(amount * 1000000)
end
else
return(tonumber(str))
end
end
function canAfford(button)
local cash = convertMoney(player.leaderstats.Cash.Value)
local price = tonumber(button.Price.Value)
if (cash > price) then
return(true)
else
return(false)
end
end
function touchButton(button)
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRoot = character:WaitForChild("HumanoidRootPart")
firetouchinterest(humanoidRoot, button.Head, 0)
wait()
firetouchinterest(humanoidRoot, button.Head, 1)
end
function buyButton(button)
if canAfford(button) then
touchButton(button)
end
end
function getCheapest(tycoon)
local buttons = tycoon.Buttons:GetChildren()
local cheapest = nil
for index, button in ipairs(buttons) do
if (button.Head.Transparency == 0) then
if (cheapest ~= nil) then
if (button.Price.Value < cheapest.Price.Value) then
cheapest = button
end
else
cheapest = button
end
end
end
return(cheapest)
end
function getTycoon()
local tycoons = game.Workspace.TycoonSets.Tycoons:GetChildren()
for index, tycoon in ipairs(tycoons) do
local owner = tostring(tycoon.Owner.Value)
if (owner == player.Name) then
return(tycoon)
end
end
return(nil)
end
while buying do
local tycoon = getTycoon()
if (tycoon ~= nil) then
local button = getCheapest(tycoon)
if (button ~= nil) then
buyButton(button)
else
buying = false
end
else
buying = false
end
wait(0.25)
end
function findResource(name)
local parts = game.Workspace:GetDescendants()
for index, part in ipairs(parts) do
if (part.Name == name and part.CanCollide) then
return(part)
end
end
return(nil)
end
function breakResource(resource, tool)
while (resource.Transparency == 0) do
tool.Attack:FireServer()
wait(0.5)
end
end
function returnResource(resource, oldPosition)
resource.CFrame = oldPosition
end
function bringResource(resource)
local hrp = game.Players.LocalPlayer.Character.HumanoidRootPart
local oldPosition = resource.CFrame
resource.CanCollide = false
resource.CFrame = (hrp.CFrame + hrp.CFrame.LookVector * 3)
return(oldPosition)
end
function unequip()
local character = game.Players.LocalPlayer.Character
local equipped = nil
for index, thing in ipairs(character:GetChildren()) do
if thing.ClassName == "Tool" then
equipped = thing
end
end
character.Humanoid:UnequipTools()
return(equipped)
end
function equip(tool)
game.Players.LocalPlayer.Character.Humanoid:EquipTool(tool)
end
function getResource(resource)
local tool = unequip()
local pickaxe = game.Players.LocalPlayer.Backpack.Pickaxe
local hatchet = game.Players.LocalPlayer.Backpack.Hatchet
if (resource == "Rock") then
local rock = findResource("RockHitPart")
equip(pickaxe)
local oldPosition = bringResource(rock)
breakResource(rock, pickaxe)
returnResource(rock, oldPosition)
else
local wood = findResource("WoodHitPart")
equip(hatchet)
local oldPosition = bringResource(wood)
breakResource(wood, hatchet)
returnResource(wood, oldPosition)
end
if (tool ~= nil) then
equip(tool)
else
unequip()
end
end
getResource("Rock")
getResource("Wood")
ENJOY!
Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script!
[ad_2]