Trusted
auto buy merchants, daily rewards, vending machines
- Views
- 382K
- Likes
- 4
- Dislikes
- 3
- Added
Script
local remotes = game.ReplicatedStorage.Network
local teleportr = remotes.Teleports_RequestTeleport
local vending_buy = remotes.VendingMachines_Purchase
local daily_redeem = remotes.DailyRewards_Redeem
local hum = game.Players.LocalPlayer.Character.Humanoid
local merchant_buy = remotes.Merchant_RequestPurchase
local machines = {
{"PotionVendingMachine1";"Cherry Blossom"};
{"PotionVendingMachine2";"Safari"};
{"EnchantVendingMachine1";"Misty Falls"};
{"EnchantVendingMachine2";"Fire and Ice"};
{"FruitVendingMachine1";"Mushroom Field"};
{"FruitVendingMachine2";"Pirate Cove"};
}
local DailyRedeemables = {
{"Castle"; "SmallDailyDiamonds"};
{"Jungle";"DailyPotions"};
{"Red Desert"; "MediumDailyDiamonds"};
}
local Merchants = {
{"RegularMerchant";"Oasis"};
{"AdvancedMerchant"; "Ice Rink"}
}
local function teleport(destination)
teleportr:InvokeServer(destination)
repeat task.wait() until hum.FloorMaterial == Enum.Material.Air
task.wait(0.5)
repeat task.wait() until hum.FloorMaterial == Enum.Material.Plastic
hum:ChangeState(Enum.HumanoidStateType.Jumping)
task.wait(1)
hum:ChangeState(Enum.HumanoidStateType.Jumping)
end
for i,v in ipairs(machines) do
teleport(v[2])
local a, b
for i2, v2 in pairs(workspace.Map:GetChildren()) do
if string.find(v2.Name,v[2], 1, true) then
hum.Parent:PivotTo(v2.INTERACT.Machines[v[1]].PrimaryPart.CFrame * CFrame.new(0,9,0))
end
end
repeat a,b = vending_buy:InvokeServer(v[1], 1)
task.wait(0.1)
until a == false
end
for i,v in ipairs(DailyRedeemables) do
teleport(v[1])
daily_redeem:InvokeServer(v[2])
end
for i,v in ipairs(Merchants) do
teleport(v[2])
task.wait(1)
local a, b
for i = 1, 6, 1 do
repeat
a,b = merchant_buy:InvokeServer(v[1], i)
task.wait(0.1)
until a == false
end
end