ADVERTISEMENTREMOVE ADS
Build And Survive!
50,242 views

Script Preview
ADVERTISEMENTREMOVE ADS
231 Lines • 6.45 KiB
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
-- Variables
local killAura = false
local distance = 60
local damage = 5
local heartCollectionEnabled = false
local starCollectionEnabled = false
local coinCollectionEnabled = false
local rainBlocks = false
local spamBlocks = false
local selectedBlock = "Wood"
local materials = { "Wood", "Brick", "Metal", "Obsidian", "Firebrick" }
-- Functions
local function collectItem(item)
if item:FindFirstChild("UID") then
local args = {
[1] = {
[1] = {
[1] = item.UID.Value
}
}
}
workspace.__THINGS.__REMOTES.redeemdrop:FireServer(unpack(args))
end
end
local function gatherHearts()
while heartCollectionEnabled do
wait(5)
for _, item in pairs(game:GetService("Workspace")["__DEBRIS"].MonsterDrops:GetChildren()) do
if item.Name == "Heart" then
collectItem(item)
end
end
end
end
local function gatherStars()
while starCollectionEnabled do
wait(1)
for _, item in pairs(game:GetService("Workspace")["__DEBRIS"].MonsterDrops:GetChildren()) do
if item.Name == "Star" then
collectItem(item)
end
end
end
end
local function gatherCoins()
while coinCollectionEnabled do
wait(1)
for _, item in pairs(game:GetService("Workspace")["__DEBRIS"].MonsterDrops:GetChildren()) do
if item.Name == "Coin" then
collectItem(item)
end
end
end
end
local function placeBlocks()
while rainBlocks do
workspace.__THINGS.__REMOTES.placeblock:FireServer({
[1] = {
[1] = CFrame.new(
game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X + math.random(-100, 100),
247,
game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z + math.random(-100, 100)
),
[2] = selectedBlock,
[3] = workspace.__THINGS.BuildArea
}
})
wait()
end
end
local function spamPlaceBlocks()
while spamBlocks do
workspace.__THINGS.__REMOTES.placeblock:FireServer({
[1] = {
[1] = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p) * CFrame.Angles(0, 0, 0),
[2] = selectedBlock,
[3] = workspace.__THINGS.BuildArea
}
})
wait()
end
end
-- Orion UI Setup
local Window = OrionLib:MakeWindow({
Name = "Build and Survive - Orion UI",
HidePremium = false,
SaveConfig = true,
ConfigFolder = "OrionConfig"
})
-- Tabs
local MainTab = Window:MakeTab({ Name = "Main", Icon = "rbxassetid://4483345998", PremiumOnly = false })
local BuildingTab = Window:MakeTab({ Name = "Building", Icon = "rbxassetid://4483345998", PremiumOnly = false })
-- Main Tab
MainTab:AddToggle({
Name = "Kill Aura",
Default = false,
Callback = function(state)
killAura = state
while killAura do
for _, monster in pairs(workspace.__THINGS.Monsters:GetChildren()) do
if monster:IsA("Model") and (monster.PrimaryPart or monster:FindFirstChild("HumanoidRootPart")) then
if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - (monster.PrimaryPart.Position or monster.HumanoidRootPart.Position)).magnitude <= distance then
workspace.__THINGS.__REMOTES.mobdodamage:FireServer(unpack({
[1] = {
[1] = {
[1] = {
[1] = monster,
[2] = damage
}
}
}
}))
end
end
end
wait(math.random(10, 30) / 100) -- Waits between 0.1 and 0.3 seconds.
end
end
})
MainTab:AddSlider({
Name = "Kill Aura Distance",
Min = 10,
Max = 500,
Default = 60,
Increment = 10,
Callback = function(value)
distance = value
end
})
MainTab:AddSlider({
Name = "Kill Aura Damage",
Min = 1,
Max = 500,
Default = 20,
Increment = 1,
Callback = function(value)
damage = value
end
})
MainTab:AddButton({
Name = "Kill All Monsters",
Callback = function()
for _, monster in pairs(workspace.__THINGS.Monsters:GetChildren()) do
if monster:IsA("Model") and (monster.PrimaryPart or monster:FindFirstChild("HumanoidRootPart")) then
workspace.__THINGS.__REMOTES.mobdodamage:FireServer(unpack({
[1] = {
[1] = {
[1] = {
[1] = monster,
[2] = 9e99
}
}
}
}))
end
end
end
})
MainTab:AddToggle({
Name = "Heart Collector",
Default = false,
Callback = function(state)
heartCollectionEnabled = state
if state then gatherHearts() end
end
})
MainTab:AddToggle({
Name = "Star Collector",
Default = false,
Callback = function(state)
starCollectionEnabled = state
if state then gatherStars() end
end
})
MainTab:AddToggle({
Name = "Coin Collector",
Default = false,
Callback = function(state)
coinCollectionEnabled = state
if state then gatherCoins() end
end
})
-- Building Tab
BuildingTab:AddDropdown({
Name = "Select Block",
Default = "Wood",
Options = materials,
Callback = function(value)
selectedBlock = value
end
})
BuildingTab:AddToggle({
Name = "Rain Blocks",
Default = false,
Callback = function(state)
rainBlocks = state
if state then placeBlocks() end
end
})
BuildingTab:AddToggle({
Name = "Spam Blocks",
Default = false,
Callback = function(state)
spamBlocks = state
if state then spamPlaceBlocks() end
end
})
-- Initialize UI
OrionLib:Init()
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS







Comments