Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ArrayField = loadstring(game:HttpGet('https://raw.githubusercontent.com/UI-Interface/ArrayField/main/Source.lua'))()
- -- Key System
- local keyCheck = ArrayField:CreateWindow({
- Name = "ynaneyt hub",
- LoadingTitle = "ynaneyt hub",
- LoadingSubtitle = "by wutdahell510",
- KeySystem = true,
- KeySettings = {
- Title = "ynaneyt hub Key System",
- Subtitle = "Enter the key to access the hub",
- Note = "Get the key from the Pastebin URL",
- FileName = "ynaneytKey",
- SaveKey = true,
- GrabKeyFromSite = false,
- Key = "veryprogamerscript",
- Actions = {
- [1] = {
- Text = "Copy Pastebin URL",
- Callback = function()
- print("Copy button clicked") -- Debug log
- local success, result = pcall(function()
- setclipboard("https://pastebin.com/raw/kPczkY5s")
- end)
- if success then
- print("setclipboard function called successfully") -- Debug log
- ArrayField:Notify({
- Title = "URL Copied",
- Content = "The Pastebin URL has been copied to your clipboard",
- Duration = 3
- })
- else
- print("Error in setclipboard:", result) -- Debug log
- ArrayField:Notify({
- Title = "Copy Failed",
- Content = "Unable to copy automatically. Please manually copy: https://pastebin.com/raw/kPczkY5s",
- Duration = 10
- })
- end
- end
- },
- [2] = {
- Text = "Show Pastebin URL",
- Callback = function()
- ArrayField:Notify({
- Title = "Pastebin URL",
- Content = "https://pastebin.com/raw/kPczkY5s",
- Duration = 30
- })
- end
- }
- }
- }
- })
- -- Function to load all sections
- local function loadSections()
- -- Initialize _G table for data saving if it doesn't exist
- if not _G.ynaneytData then
- _G.ynaneytData = {
- users = {},
- rank = "no rank",
- lastUpdate = 0
- }
- end
- -- Function to check if user has a specific rank
- local function hasRank(rank)
- return _G.ynaneytData.rank == rank
- end
- -- Function to check if user has premium access
- local function hasPremium()
- return hasRank("premium") or hasRank("content creator") or hasRank("owner")
- end
- -- Function to set user rank
- 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
- -- Function to check for rank updates
- 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
- ArrayField:Notify({
- Title = "Rank Updated",
- Content = "The owner has given you " .. newRank .. " rank!",
- Duration = 10
- })
- updateUI()
- end
- end
- -- Function to update UI based on rank
- local function updateUI()
- -- Implementation depends on how you want to show/hide sections
- -- This is a placeholder and needs to be implemented based on your UI structure
- print("Updating UI for rank: " .. _G.ynaneytData.rank)
- end
- -- Notification about bug reporting
- ArrayField:Notify({
- Title = "Bug Reporting",
- Content = "If you encounter any bugs, please message wutdahell510onrobloxnewaccount on Discord to report and receive a reward.",
- Duration = 10
- })
- local w = ArrayField:CreateWindow({
- Name = "ynaneyt hub",
- LoadingTitle = "ynaneyt hub",
- LoadingSubtitle = "by wutdahell510",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil,
- FileName = "ynaneytConfig"
- }
- })
- -- Main Tab (visible to all)
- local MainTab = w:CreateTab("Main Tab")
- MainTab:CreateButton({
- Name = "Show Rank",
- Callback = function()
- ArrayField:Notify({
- Title = "Your Rank",
- Content = "Your current rank is: " .. _G.ynaneytData.rank,
- Duration = 5
- })
- end
- })
- MainTab:CreateButton({
- Name = "Anti AFK",
- Callback = function()
- local vu = game:GetService("VirtualUser")
- game.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)
- ArrayField:Notify({Title = "Anti AFK", Content = "Anti AFK has been enabled", Duration = 5})
- end
- })
- -- Owner Tab (Data Storage, only visible to owner)
- if hasRank("owner") then
- local OwnerTab = w:CreateTab("Data Storage")
- OwnerTab:CreateInput({
- Name = "Set User Rank",
- PlaceholderText = "UserId,Rank",
- RemoveTextAfterFocusLost = false,
- Callback = function(Text)
- local userId, rank = Text:match("(%d+),(%w+)")
- if userId and rank then
- setRank(tonumber(userId), rank)
- ArrayField:Notify({
- Title = "Rank Set",
- Content = "User " .. userId .. " rank set to " .. rank,
- Duration = 5
- })
- end
- end,
- })
- end
- -- Content Creator Section (only visible to content creators and owner)
- if hasRank("content creator") or hasRank("owner") then
- local CCTab = w:CreateTab("Content Creator")
- CCTab:CreateButton({
- Name = "Notify Feature",
- Callback = function()
- ArrayField:Notify({Title = "Coming Soon", Content = "New features for Content Creators are coming soon!", Duration = 5})
- end
- })
- end
- -- Premium Section (visible to premium, content creators, and owner)
- if hasPremium() then
- local PremiumTab = w:CreateTab("Premium")
- PremiumTab:CreateButton({
- 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)
- ArrayField:Notify({Title = "Anti Kick", Content = "Anti Kick has been enabled", Duration = 5})
- end
- })
- end
- -- Start a loop to check for rank updates
- spawn(function()
- while wait(5) do -- Check every 5 seconds
- checkRankUpdates()
- end
- end)
- -- Initial UI update
- updateUI()
- end
- -- Load sections after key system is completed
- keyCheck.Closed:Connect(function()
- loadSections()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement