Rayfield

an anonymous user · June 26, 2025
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

local MainWindow = Rayfield:CreateWindow({
   Name = "Aayans Hub",
   Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
   LoadingTitle = "Loading...",
   LoadingSubtitle = "by Aayan",
   ShowText = "Aayans Hub", -- for mobile users to unhide rayfield, change if you'd like
   Theme = "Default", -- Check https://[Log in to view URL]

   ToggleUIKeybind = "K", -- The keybind to toggle the UI visibility (string like "K" or Enum.KeyCode)

   DisableRayfieldPrompts = false,
   DisableBuildWarnings = false, -- Prevents Rayfield from warning when the script has a version mismatch with the interface

   ConfigurationSaving = {
      Enabled = true,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "Aayan Hub"
   },

   Discord = {
      Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
      Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ ABCD would be ABCD
      RememberJoins = true -- Set this to false to make them join the discord every time they load it up
   },

   KeySystem = true, -- Set this to true to use our key system
   KeySettings = {
      Title = "Aayans Key System",
      Subtitle = "Key",
      Note = "My Name", -- Use this to tell the user how to get a key
      FileName = "AayansKey", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
      SaveKey = false, -- The user's key will be saved, but if you change the key, they will be unable to use your script
      GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
      Key = {"Aayan"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
   }
})


local MainTab = MainWindow:CreateTab("Main 💀", 0) -- Title, Image


local Slider = MainTab:CreateSlider({
   Name = "Walkspeed",
   Range = {16, 100},
   Increment = 16,
   Suffix = "Walkspeed",
   CurrentValue = 16,
   Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
   end,
}) 


local Slider = MainTab:CreateSlider({
   Name = "Jumppower",
   Range = {10, 100},
   Increment = 10,
   Suffix = "Jumppower",
   CurrentValue = 10,
   Flag = "Slider2", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
       game.Players.LocalPlayer.Character.Humanoid.JumpPower = (Value)
   end,
})


local Button = MainTab:CreateButton({
   Name = "Ghosthub",
   Callback = function()
       loadstring(game:HttpGet('https://[Log in to view URL]'))()
   end,
})


local PrisonlifeTab = MainWindow:CreateTab("Prison Life 🔫", 0) -- Title, Image


local Button = PrisonlifeTab:CreateButton({
   Name = "Destroy Doors",
   Callback = function()
       game.Workspace.Doors:Destroy()
   end,
})


local Button = MainTab:CreateButton({
   Name = "Reset",
   Callback = function()
       local plr = game.Players.LocalPlayer
       local char = plr.Character

       char.Humanoid.Health = 0
   end,
})


local Button = MainTab:CreateButton({
   Name = "Keyboard",
   Callback = function()
       loadstring(game:HttpGet("https://[Log in to view URL]", true))()
   end,
})
Output

Comments

Please sign up or log in to contribute to the discussion.