0% found this document useful (0 votes)
30 views6 pages

Saber Simulator - Lua

The document is a Lua script for a game, specifically designed to automate various gameplay functions such as collecting currency, auto-clicking, and purchasing items. It utilizes the Roblox game services to create a user interface with toggles for different automated actions and settings. The script also includes functionality for selecting bosses to fight and managing performance metrics like frames per second (FPS).

Uploaded by

lol27727127shsja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views6 pages

Saber Simulator - Lua

The document is a Lua script for a game, specifically designed to automate various gameplay functions such as collecting currency, auto-clicking, and purchasing items. It utilizes the Roblox game services to create a user interface with toggles for different automated actions and settings. The script also includes functionality for selecting bosses to fight and managing performance metrics like frames per second (FPS).

Uploaded by

lol27727127shsja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

if not game:IsLoaded() then

game.Loaded:Wait()
end

local marketplace_service = game:GetService("MarketplaceService")


local replicated_storage = game:GetService("ReplicatedStorage")
local run_service = game:GetService("RunService")
local workspace = game:GetService("Workspace")
local players = game:GetService("Players")
local stats = game:GetService("Stats")

local info = marketplace_service:GetProductInfo(game.PlaceId)


local local_player = players.LocalPlayer

local collectables =
workspace:FindFirstChild("Gameplay"):FindFirstChild("CurrencyPickup"):FindFirstChil
d("CurrencyHolder")

local auto_sabers = false


local auto_boosts = false
local auto_auras = false
local auto_click = false
local auto_crown = false
local auto_dnas = false
local auto_sell = false
local auto_hit = false

local selected_boss = "Normal"

local repo = 'https://raw.githubusercontent.com/KINGHUB01/Gui/main/'

local library = loadstring(game:HttpGet(repo .. 'Gui%20Lib%20%5BLibrary%5D'))()


local theme_manager = loadstring(game:HttpGet(repo .. 'Gui%20Lib%20%5BThemeManager
%5D'))()
local save_manager = loadstring(game:HttpGet(repo .. 'Gui%20Lib%20%5BSaveManager
%5D'))()

local window = library:CreateWindow({


Title = "Silly Femboy OwO",
Center = true,
AutoShow = true,
TabPadding = 8,
MenuFadeTime = 0.35
})

local tabs = {
main = window:AddTab("Main"),
["ui settings"] = window:AddTab("UI Settings")
}

local auto_group = tabs.main:AddLeftGroupbox("Auto Settings")


local shop_group = tabs.main:AddRightGroupbox("Shop Settings")
local farm_group = tabs.main:AddRightGroupbox("Farm Settings")
local menu_group = tabs["ui settings"]:AddLeftGroupbox("Menu")

auto_group:AddDivider()

auto_group:AddToggle('auto_crown', {
Text = 'Collect Crowns',
Default = auto_crown,
Tooltip = 'Collects crowns for you',

Callback = function(Value)
auto_crown = Value
if Value then
repeat
if #collectables:GetChildren() > 0 then
local crowns = {}
for _, v in next, collectables:GetChildren() do
if v:IsA("MeshPart") then
table.insert(crowns, v)
end
end

replicated_storage:WaitForChild("Events"):WaitForChild("CollectCurrencyPickup"):Fir
eServer(crowns)
end
task.wait(.2)
until not auto_crown
end
end
})

auto_group:AddToggle('auto_click', {
Text = 'Auto Click',
Default = auto_click,
Tooltip = 'Farms strength for you',

Callback = function(Value)
auto_click = Value
if Value then
repeat
if not local_player.Character:FindFirstChildOfClass("Tool") then

local_player.Character:FindFirstChild("Humanoid"):EquipTool(local_player.Backpack:F
indFirstChildOfClass("Tool"))
end

replicated_storage:WaitForChild("Events"):WaitForChild("SwingSaber"):FireServer()
task.wait(.2)
until not auto_click
end
end
})

auto_group:AddToggle('auto_sell', {
Text = 'Auto Sell',
Default = auto_sell,
Tooltip = 'Sells from anywhere',

Callback = function(Value)
auto_sell = Value
if Value then
repeat

replicated_storage:WaitForChild("Events"):WaitForChild("SellStrength"):FireServer()
task.wait(.2)
until not auto_sell
end
end
})

shop_group:AddDivider()

shop_group:AddToggle('auto_boosts', {
Text = 'Auto Buy Boss Hits',
Default = auto_boosts,
Tooltip = 'Buys available boss hits',

Callback = function(Value)
auto_boosts = Value
if Value then
repeat

replicated_storage:WaitForChild("Events"):WaitForChild("UIAction"):FireServer("BuyA
llBossBoosts")
task.wait(.5)
until not auto_boosts
end
end
})

shop_group:AddToggle('auto_sabers', {
Text = 'Auto Buy Sabers',
Default = auto_sabers,
Tooltip = 'Buys available sabers',

Callback = function(Value)
auto_sabers = Value
if Value then
repeat

replicated_storage:WaitForChild("Events"):WaitForChild("UIAction"):FireServer("BuyA
llWeapons")
task.wait(.5)
until not auto_sabers
end
end
})

shop_group:AddToggle('auto_auras', {
Text = 'Auto Buy Auras',
Default = auto_auras,
Tooltip = 'Buys available auras',

Callback = function(Value)
auto_auras = Value
if Value then
repeat

replicated_storage:WaitForChild("Events"):WaitForChild("UIAction"):FireServer("BuyA
llAuras")
task.wait(.5)
until not auto_auras
end
end
})
shop_group:AddToggle('auto_dnas', {
Text = 'Auto Buy DNAs',
Default = auto_dnas,
Tooltip = 'Buys available dnas',

Callback = function(Value)
auto_dnas = Value
if Value then
repeat

replicated_storage:WaitForChild("Events"):WaitForChild("UIAction"):FireServer("BuyA
llDNAs")
task.wait(.5)
until not auto_dnas
end
end
})

farm_group:AddDivider()

farm_group:AddDropdown('selected_boss', {
Values = { "Normal", "Earth", "Water", "Fire" },
Default = selected_boss,
Multi = false,

Text = 'Select Boss To Fight',

Callback = function(Value)
selected_boss = Value
end
})

farm_group:AddToggle('auto_hit', {
Text = 'Farm Selected Enemy',
Default = auto_hit,
Tooltip = 'Farms selected enemy',

Callback = function(Value)
auto_hit = Value
if Value then
repeat
if not local_player.Character:FindFirstChildOfClass("Tool") then

local_player.Character:FindFirstChild("Humanoid"):EquipTool(local_player.Backpack:F
indFirstChildOfClass("Tool"))
end
if selected_boss == "Normal" then
if
#workspace:FindFirstChild("Gameplay"):FindFirstChild("Boss"):FindFirstChild("BossHo
lder"):GetChildren() > 0 then

local_player.Character:MoveTo(workspace.Gameplay.Boss.BossHolder:FindFirstChildOfCl
ass("Model"):GetPivot().Position)

local_player.Character:FindFirstChildOfClass("Tool"):FindFirstChild("RemoteClick"):
FireServer()
end
elseif selected_boss == "Earth" then
if
workspace:FindFirstChild("Gameplay"):FindFirstChild("Map"):FindFirstChild("ElementZ
ones"):FindFirstChild("Earth"):FindFirstChild("Model"):FindFirstChild("Earth"):Find
FirstChildOfClass("Model") then

local_player.Character:MoveTo(workspace.Gameplay.Map.ElementZones.Earth.Model.Earth
:FindFirstChildOfClass("Model"):GetPivot().Position)

local_player.Character:FindFirstChildOfClass("Tool"):FindFirstChild("RemoteClick"):
FireServer()
end
elseif selected_boss == "Water" then
if
workspace:FindFirstChild("Gameplay"):FindFirstChild("Map"):FindFirstChild("ElementZ
ones"):FindFirstChild("Water"):FindFirstChild("Water"):FindFirstChildOfClass("Model
") then

local_player.Character:MoveTo(workspace.Gameplay.Map.ElementZones.Water.Water:FindF
irstChildOfClass("Model"):GetPivot().Position)

local_player.Character:FindFirstChildOfClass("Tool"):FindFirstChild("RemoteClick"):
FireServer()
end
elseif selected_boss == "Fire" then
if
workspace:FindFirstChild("Gameplay"):FindFirstChild("Map"):FindFirstChild("ElementZ
ones"):FindFirstChild("Fire"):FindFirstChild("Fire"):FindFirstChildOfClass("Model")
then

local_player.Character:MoveTo(workspace.Gameplay.Map.ElementZones.Fire.Fire:FindFir
stChildOfClass("Model"):GetPivot().Position)

local_player.Character:FindFirstChildOfClass("Tool"):FindFirstChild("RemoteClick"):
FireServer()
end
end
task.wait()
until not auto_hit
end
end
})

local frame_timer = tick()


local frame_counter = 0;
local fps = 60;

local watermark_connection = run_service.RenderStepped:Connect(function()


frame_counter += 1;

if (tick() - frame_timer) >= 1 then


fps = frame_counter;
frame_timer = tick();
frame_counter = 0;
end;

library:SetWatermark(('Astolfo Ware | %s fps | %s ms | game:


'..info.Name..''):format(
math.floor(fps),
math.floor(stats.Network.ServerStatsItem['Data Ping']:GetValue())
));
end);

menu_group:AddButton('Unload', function()
auto_sabers = false
auto_boosts = false
auto_auras = false
auto_click = false
auto_crown = false
auto_dnas = false
auto_sell = false
auto_hit = false
watermark_connection:Disconnect()
library:Unload()
end)

menu_group:AddLabel('Menu bind'):AddKeyPicker('MenuKeybind', { Default = 'End',


NoUI = true, Text = 'Menu keybind' })
library.ToggleKeybind = Options.MenuKeybind
theme_manager:SetLibrary(library)
save_manager:SetLibrary(library)
save_manager:IgnoreThemeSettings()
save_manager:SetIgnoreIndexes({ 'MenuKeybind' })
theme_manager:SetFolder('Astolfo Ware')
save_manager:SetFolder('Astolfo Ware/Saber Simulator Rewrite')
save_manager:BuildConfigSection(tabs['ui settings'])
theme_manager:ApplyToTab(tabs['ui settings'])
save_manager:LoadAutoloadConfig()

You might also like