Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- -- Key System
- local KeyWindow = OrionLib:MakeWindow({Name = "ynaneyt hub Key System", HidePremium = false, SaveConfig = true, ConfigFolder = "ynaneytConfig"})
- local KeyTab = KeyWindow:MakeTab({
- Name = "Key System",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- KeyTab:AddTextbox({
- Name = "Enter Key",
- Default = "",
- TextDisappear = true,
- Callback = function(Value)
- if Value == "veryprogamerscript" then -- Replace with your actual key
- OrionLib:MakeNotification({
- Name = "Success!",
- Content = "Correct key entered. Loading hub...",
- Image = "rbxassetid://4483345998",
- Time = 2
- })
- KeyWindow:Destroy() -- This will remove the key system window
- loadMainHub() -- This function will load your main hub
- else
- OrionLib:MakeNotification({
- Name = "Error!",
- Content = "Incorrect key. Please try again.",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- end
- })
- KeyTab:AddButton({
- Name = "Copy Pastebin URL",
- Callback = function()
- setclipboard("https://pastebin.com/raw/kPczkY5s")
- OrionLib:MakeNotification({
- Name = "URL Copied",
- Content = "The Pastebin URL has been copied to your clipboard",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- -- Main Hub Function
- function loadMainHub()
- if not _G.ynaneytData then
- _G.ynaneytData = {
- users = {},
- rank = "no rank",
- lastUpdate = 0
- }
- end
- local function hasRank(rank)
- return _G.ynaneytData.rank == rank
- end
- local function hasPremium()
- return hasRank("premium") or hasRank("content creator") or hasRank("owner")
- end
- local function setRank(userId, rank)
- if not _G.ynaneytData.users[userId] then
- _G.ynaneytData.users[userId] = {}
- end
- _G.ynaneytData.users[userId].rank = rank
- _G.ynaneytData.lastUpdate = os.time()
- end
- local function checkRankUpdates()
- local player = game.Players.LocalPlayer
- local userId = player.UserId
- if _G.ynaneytData.users[userId] and _G.ynaneytData.users[userId].rank ~= _G.ynaneytData.rank then
- local newRank = _G.ynaneytData.users[userId].rank
- _G.ynaneytData.rank = newRank
- OrionLib:MakeNotification({
- Name = "Rank Updated",
- Content = "The owner has given you " .. newRank .. " rank!",
- Image = "rbxassetid://4483345998",
- Time = 10
- })
- end
- end
- OrionLib:MakeNotification({
- Name = "Bug Reporting",
- Content = "If you encounter any bugs, please message wutdahell510onrobloxnewaccount on Discord to report and receive a reward.",
- Image = "rbxassetid://4483345998",
- Time = 10
- })
- local Window = OrionLib:MakeWindow({Name = "ynaneyt hub", HidePremium = false, SaveConfig = true, ConfigFolder = "ynaneytConfig"})
- -- Main Section (available to all users)
- local MainSection = Window:MakeTab({
- Name = "Main Section",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- MainSection:AddButton({
- Name = "Show Rank",
- Callback = function()
- OrionLib:MakeNotification({
- Name = "Your Rank",
- Content = "Your current rank is: " .. _G.ynaneytData.rank,
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- MainSection:AddButton({
- Name = "Anti AFK",
- Callback = function()
- local vu = game:GetService("VirtualUser")
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- wait(1)
- vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- end)
- OrionLib:MakeNotification({
- Name = "Anti AFK",
- Content = "Anti AFK has been enabled",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- -- Owner Section
- if hasRank("owner") then
- local OwnerSection = Window:MakeTab({
- Name = "Owner Section",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- OwnerSection:AddTextbox({
- Name = "Set User Rank",
- Default = "",
- TextDisappear = true,
- Callback = function(Value)
- local userId, rank = Value:match("(%d+),(%w+)")
- if userId and rank then
- setRank(tonumber(userId), rank)
- OrionLib:MakeNotification({
- Name = "Rank Set",
- Content = "User " .. userId .. " rank set to " .. rank,
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- end
- })
- end
- -- Content Creator Section
- if hasRank("content creator") or hasRank("owner") then
- local CCSection = Window:MakeTab({
- Name = "Content Creator Section",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- CCSection:AddButton({
- Name = "Notify Feature",
- Callback = function()
- OrionLib:MakeNotification({
- Name = "Coming Soon",
- Content = "New features for Content Creators are coming soon!",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- end
- -- Premium Section
- if hasPremium() then
- local PremiumSection = Window:MakeTab({
- Name = "Premium Section",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- PremiumSection:AddButton({
- Name = "Anti Kick",
- Callback = function()
- local mt = getrawmetatable(game)
- local old = mt.__namecall
- setreadonly(mt, false)
- mt.__namecall = newcclosure(function(self, ...)
- local method = getnamecallmethod()
- if method == "Kick" then
- return wait(9e9)
- end
- return old(self, ...)
- end)
- setreadonly(mt, true)
- OrionLib:MakeNotification({
- Name = "Anti Kick",
- Content = "Anti Kick has been enabled",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- end
- spawn(function()
- while wait(5) do
- checkRankUpdates()
- end
- end)
- end
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement