Imported from ScriptBlox https://scriptblox.com/
like and follow for more. have fun
Free
script.lua
257 lines
--// Made by _OpenSource_ (Modern 3D UI)
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
--// CHARACTER
local function getChar()
local char = player.Character or player.CharacterAdded:Wait()
return char, char:WaitForChild("HumanoidRootPart")
end
local character, root = getChar()
player.CharacterAdded:Connect(function()
character, root = getChar()
end)
--// REFERENCES
local OrbsFolder = workspace.Camera.Orbs
local EggRemote = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("EggOpened")
local RebirthRemote = ReplicatedStorage:WaitForChild("RemoteEvent")
local EggList = {
"Starter","Desert","Swag","Ocean","Magma","Golden","Cyber","Candy"
}
--// GUI BASE
local gui = Instance.new("ScreenGui", game.CoreGui)
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 300, 0, 420)
frame.Position = UDim2.new(0.4, 0, 0.2, 0)
frame.BackgroundColor3 = Color3.fromRGB(18,18,18)
frame.Active = true
frame.Draggable = true
Instance.new("UICorner", frame).CornerRadius = UDim.new(0,16)
local stroke = Instance.new("UIStroke", frame)
stroke.Color = Color3.fromRGB(60,60,60)
stroke.Thickness = 2
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1,0,0,40)
title.BackgroundTransparency = 1
title.Text = "OpenSource Hub"
title.Font = Enum.Font.GothamBold
title.TextSize = 20
title.TextColor3 = Color3.new(1,1,1)
--// BUTTON CREATOR
local function createButton(parent, text, posY, z)
local btn = Instance.new("TextButton", parent)
btn.Size = UDim2.new(0.85,0,0,35)
btn.Position = UDim2.new(0.075,0,0,posY)
btn.Text = text
btn.Font = Enum.Font.GothamBold
btn.TextSize = 14
btn.TextColor3 = Color3.new(1,1,1)
btn.BackgroundColor3 = Color3.fromRGB(30,30,30)
btn.ZIndex = z or 1
Instance.new("UICorner", btn).CornerRadius = UDim.new(0,10)
local s = Instance.new("UIStroke", btn)
s.Color = Color3.fromRGB(70,70,70)
return btn
end
--// INPUT BOX
local function createBox(parent, placeholder, posY)
local box = Instance.new("TextBox", parent)
box.Size = UDim2.new(0.85,0,0,35)
box.Position = UDim2.new(0.075,0,0,posY)
box.PlaceholderText = placeholder
box.Text = ""
box.Font = Enum.Font.Gotham
box.TextSize = 14
box.TextColor3 = Color3.new(1,1,1)
box.BackgroundColor3 = Color3.fromRGB(25,25,25)
Instance.new("UICorner", box).CornerRadius = UDim.new(0,10)
Instance.new("UIStroke", box).Color = Color3.fromRGB(70,70,70)
return box
end
--// ELEMENTS
local orbBtn = createButton(frame, "Auto Orbs: OFF", 50, 1)
local speedBox = createBox(frame, "Enter Speed (e.g. 3)", 95)
local tpBtn = createButton(frame, "TPWalk: OFF", 140, 1)
local dropdown = createButton(frame, "Select Egg ?", 185, 4)
local dropFrame = Instance.new("Frame", frame)
dropFrame.Size = UDim2.new(0.85,0,0,120)
dropFrame.Position = UDim2.new(0.075,0,0,225)
dropFrame.BackgroundColor3 = Color3.fromRGB(25,25,25)
dropFrame.Visible = false
dropFrame.ZIndex = 5
Instance.new("UICorner", dropFrame)
local rebirthBtn = createButton(frame, "Auto Rebirth: OFF", 260, 1)
local modeBtn = createButton(frame, "Mode: Single", 305, 1)
local eggBtn = createButton(frame, "Auto Hatch: OFF", 350, 1)
--// ORBS
local orbOn = false
orbBtn.MouseButton1Click:Connect(function()
orbOn = not orbOn
orbBtn.Text = "Auto Orbs: " .. (orbOn and "ON" or "OFF")
orbBtn.BackgroundColor3 = orbOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
-- Toggle collisions and anchoring
for _, orb in pairs(OrbsFolder:GetChildren()) do
if orb:IsA("BasePart") then
orb.CanCollide = not orbOn
orb.Anchored = orbOn
elseif orb:FindFirstChild("Orb") and orb.Orb:IsA("BasePart") then
orb.Orb.CanCollide = not orbOn
orb.Orb.Anchored = orbOn
end
end
end)
-- Smooth orb movement function
local function moveOrbsToPlayer()
if not root then return end
for _, orb in pairs(OrbsFolder:GetChildren()) do
local target
if orb:IsA("BasePart") then
target = orb
elseif orb:FindFirstChild("Orb") and orb.Orb:IsA("BasePart") then
target = orb.Orb
end
if target then
-- Smoothly move the orb toward the player
target.CFrame = target.CFrame:Lerp(root.CFrame + Vector3.new(0,3,0), 0.3)
end
end
end
RunService.Heartbeat:Connect(function()
if orbOn then
pcall(moveOrbsToPlayer)
end
end)
--// TPWALK
local tpOn = false
local speed = 3
tpBtn.MouseButton1Click:Connect(function()
tpOn = not tpOn
speed = tonumber(speedBox.Text) or 3
tpBtn.Text = "TPWalk: " .. (tpOn and "ON" or "OFF")
tpBtn.BackgroundColor3 = tpOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
end)
RunService.Heartbeat:Connect(function()
if not tpOn or not root then return end
local cam = workspace.CurrentCamera
local f = Vector3.new(cam.CFrame.LookVector.X,0,cam.CFrame.LookVector.Z)
local r = Vector3.new(cam.CFrame.RightVector.X,0,cam.CFrame.RightVector.Z)
local move = Vector3.zero
if UIS:IsKeyDown(Enum.KeyCode.W) then move += f end
if UIS:IsKeyDown(Enum.KeyCode.S) then move -= f end
if UIS:IsKeyDown(Enum.KeyCode.A) then move -= r end
if UIS:IsKeyDown(Enum.KeyCode.D) then move += r end
if move.Magnitude > 0 then
root.CFrame += move.Unit * speed
end
end)
--// EGGS
local selectedEgg = "Starter"
local mode = "Single"
local eggOn = false
local function refreshDropdown()
dropFrame:ClearAllChildren()
for i, name in ipairs(EggList) do
local btn = Instance.new("TextButton", dropFrame)
btn.Size = UDim2.new(1,0,0,25)
btn.Position = UDim2.new(0,0,0,(i-1)*25)
btn.Text = name
btn.BackgroundColor3 = Color3.fromRGB(35,35,35)
btn.TextColor3 = Color3.new(1,1,1)
btn.ZIndex = 6
btn.MouseButton1Click:Connect(function()
selectedEgg = name
dropdown.Text = "Egg: " .. name
dropFrame.Visible = false
end)
end
end
dropdown.MouseButton1Click:Connect(function()
dropFrame.Visible = not dropFrame.Visible
if dropFrame.Visible then refreshDropdown() end
end)
modeBtn.MouseButton1Click:Connect(function()
mode = (mode == "Single") and "Triple" or "Single"
modeBtn.Text = "Mode: " .. mode
end)
eggBtn.MouseButton1Click:Connect(function()
eggOn = not eggOn
eggBtn.Text = "Auto Hatch: " .. (eggOn and "ON" or "OFF")
eggBtn.BackgroundColor3 = eggOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
end)
RunService.Heartbeat:Connect(function()
if eggOn then
pcall(function()
EggRemote:InvokeServer(selectedEgg, mode)
end)
end
end)
--// AUTO REBIRTH (UNIVERSAL)
local rebirthOn = false
rebirthBtn.MouseButton1Click:Connect(function()
rebirthOn = not rebirthOn
rebirthBtn.Text = "Auto Rebirth: " .. (rebirthOn and "ON" or "OFF")
rebirthBtn.BackgroundColor3 = rebirthOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
end)
-- universal number finder
local function getBestRebirthValue()
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
for _, v in pairs(leaderstats:GetChildren()) do
if v:IsA("IntValue") or v:IsA("NumberValue") then
return v.Value
end
end
end
return 1
end
RunService.Heartbeat:Connect(function()
if rebirthOn then
pcall(function()
local value = getBestRebirthValue()
RebirthRemote:FireServer("rebirth", value)
end)
end
end)
Description
Comments 0
Login to comment
Loading comments...
Copied!