Saber Simulator - Lua
Saber Simulator - Lua
game.Loaded:Wait()
end
local collectables =
workspace:FindFirstChild("Gameplay"):FindFirstChild("CurrencyPickup"):FindFirstChil
d("CurrencyHolder")
local tabs = {
main = window:AddTab("Main"),
["ui settings"] = window:AddTab("UI Settings")
}
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,
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
})
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)