InstaFarm
Key Required Verified

InstaFarm

Periastron Stars RPGvxstyvxsty 181.9K views 525 executesUpdated Apr 2, 2024
0.5/ 5(20 votes)
21810% Positive
Lua Script•85 lines (2372 chars)
local Path = workspace.Special
local vim = game:GetService('VirtualInputManager');
local lp = game:GetService('Players').LocalPlayer;
function press(keycode)
 vim:SendKeyEvent(true, keycode, false, game)
 task.wait()
 vim:SendKeyEvent(false, keycode, false, game)
end
function buy(itemName, shop)
local args = {
    [1] = itemName,
    [2] = 1,
    [3] = shop
}

game:GetService("ReplicatedStorage").Events.BuyItem:InvokeServer(unpack(args))
end
function Get()
for i, v in Path:GetChildren() do
 local char = workspace.Characters:WaitForChild(lp.Name);
 if v.Name == 'Chest' or v.Name == 'XpCrystal' then
  print("Collecting",v.NameGui.TextLabel.Text)
  char.HumanoidRootPart.CFrame = v.Hitbox.CFrame
  firetouchinterest(char.Head, v.Hitbox, 0)
  task.wait(.5)
 end
end
end
function GetShop(a)
 for i, v in workspace.Interact.NPCs:GetChildren() do
  if v.Name == a then
    return v
  end
 end
end
function GetBestArmor()
 local Highest, Armor = 0, nil
 for i, v in workspace.Interact:GetChildren() do
  if v.Name:lower():find("armor") then
   print(v.ArmorNametag.InfoLabel.Text:split(" ")[2])
   local Level = v.ArmorNametag.InfoLabel.Text:split(" ")[2]
   if Level:find('K') then
    Level = Level:gsub('K', '')
    Level = tonumber(Level) * 1000
   end
   Level = tonumber(Level)
   if Level > Highest then
    Highest = Level
    Armor = v
   end
  end
 end
 return Armor, Highest
end
function EquipBestArmor()
 local Armor, Level = GetBestArmor()
 lp.Character.HumanoidRootPart.CFrame = Armor:FindFirstChildWhichIsA("Part").CFrame
 press(Enum.KeyCode.E)
end
local Gold = lp.leaderstats.Gold.Value

local ShopPrices = {
    ArticShop = {['Subzero Sword']=750*1000}, ItemShop = {['Iron Sword']=125, ['Gold Sword']=250}, 
    KnightShop = {Longsword=10*1000}, MountainShop = {['Earth Sword'] = 500*1000}, 
    OrcShop = {['Virdian Sword'] = 1000, ['Bone Sword'] = 3.75 * 1000}, PirateShop = {Cutlass=25*1000}, 
    SeaShop = {['Otterhead Shortsword'] = 45*1000, ['Abyssal Sword'] = 75*1000, ['Tidal Wave'] = 120*1000}, 
    SkyShop = {['Sky Blade'] = 15*1000}, SkeletonShop = {['Rock Sword'] = 1000*1000}, 
}

local Highest = 0
local Swrd = ''
local SwrdSh = nil
for _, ab in ShopPrices do
 for i, v in ab do
  if v > Highest and Gold > v then
    SwrdSh = GetShop(_)
    Swrd = i
    Highest = v
  end
 end
end
Get()
--EquipBestArmor()
task.wait(1)
--buy(Swrd, SwrdSh)

Features & Information

Instantly sets you level to 4k (By getting every xp crystal) and collects every gold on the map, Then equips the best armor (Lightkeeper as of now) v1.0.1: Added buy best sword: Automatically buys the best sword that you can afford How to disable: add a -- before the last line, so it becomes --buy(Swrd, SwrdSh) v1.0.2: Devs patched the InstaFarm, Replaced by adding a teleport to xpcrystals and gold, This is infact alot slower but it's better than nothing.
#free#op#keyless#rpg

Community Comments (13)

broooobrooooApr 2, 2024(edited)

no work

broooobrooooApr 2, 2024(edited)

work in Arceus?

angexllxangexllxApr 2, 2024(edited)

Can you make get all sword??

silkycomedian_318silkycomedian_318Apr 2, 2024(edited)

works very well thank you

vxstyvxstyApr 2, 2024(edited)

@broooo Are you sure? Can you at least tell me the error?

vxstyvxstyApr 2, 2024(edited)

@SomeoneWhoLikescrpt Sure, Maybe tommorow

BonBonBonBonApr 3, 2024(edited)

it says line 262 and 542

crackernig4crackernig4Apr 3, 2024(edited)

@vxsty it crashes on arceus

vxstyvxstyApr 3, 2024(edited)

@benisosm What's the full error message?

vxstyvxstyApr 3, 2024(edited)

@crackernig4 Tell the arceus devs to fix firetouchinterest, I'm not gonna change it in my script for 1 executor.

angexllxangexllxApr 4, 2024(edited)

@vxsty Okay

angexllxangexllxApr 7, 2024(edited)

Oh well, it's patched

TopazTopazJul 20, 2025

I remember when those *s banned me from that game.

More Scripts for Periastron Stars RPG