Advertisement
Guest User

Source Code

a guest
Apr 27th, 2023
4,472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.68 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
  2.  
  3.  
  4. local MainWindow = Rayfield:CreateWindow({
  5.     Name = "Main",
  6.     LoadingTitle = "Loading...",
  7.     LoadingSubtitle = "by Falxe",
  8.     ConfigurationSaving = {
  9.        Enabled = true,
  10.        FolderName = nil, -- Create a custom folder for your hub/game
  11.        FileName = "McDonalds Hub"
  12.     },
  13.     Discord = {
  14.        Enabled = false,
  15.        Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD.
  16.        RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  17.     },
  18.     KeySystem = false, -- Set this to true to use our key system
  19.     KeySettings = {
  20.        Title = "McDonalds Hub",
  21.        Subtitle = "Key System",
  22.        Note = "Key: McDonalds",
  23.        FileName = "SiriusKey",
  24.        SaveKey = true,
  25.        GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  26.        Key = "McDonalds"
  27.     }
  28.  })
  29.  
  30.  
  31.  local MainTab = MainWindow:CreateTab("Main", 4483362458) -- Title, Image
  32.  
  33.  
  34.  local Button = MainTab:CreateButton({
  35.     Name = "print 'hello'",
  36.     Callback = function(v)
  37.         v = print('hello')
  38.     end,
  39.  })
  40.  
  41.  
  42.  
  43.  
  44.  local Toggle = MainTab:CreateToggle({
  45.     Name = "Infinite Jump",
  46.     CurrentValue = false,
  47.     Flag = "Toggle1", -- 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
  48.     Callback = function(InfiniteJumpEnabled)
  49.         local InfiniteJumpEnabled = true
  50.         game:GetService("UserInputService").JumpRequest:connect(function()
  51.             if InfiniteJumpEnabled then
  52.                 game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  53.             end
  54.         end)
  55.     end,
  56.  })
  57.  
  58.  
  59.  
  60.  local Slider = MainTab:CreateSlider({
  61.     Name = "Walkspeed",
  62.     Range = {16, 250},
  63.     Increment = 10,
  64.     Suffix = "Walkspeed",
  65.     CurrentValue = 10,
  66.     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
  67.     Callback = function(v)
  68.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
  69.     end,
  70.  })
  71.  
  72.  
  73.  
  74.  local Slider = MainTab:CreateSlider({
  75.     Name = "JumpPower",
  76.     Range = {50, 500},
  77.     Increment = 10,
  78.     Suffix = "JumpPower",
  79.     CurrentValue = 10,
  80.     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
  81.     Callback = function(v)
  82.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = v
  83.     end,
  84.  })
  85.  
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement