Facebook
From johnny, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 199
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4.    Name = "? Johnny Script Hub | Game ?",
  5.    LoadingTitle = "? Muscle Legends ?",
  6.    LoadingSubtitle = "by JohnnyFronny",
  7.    ConfigurationSaving = {
  8.       Enabled = false,
  9.       FolderName = nil, -- Create a custom folder for your hub/game
  10.       FileName = "Johnny Hub"
  11.    },
  12.    Discord = {
  13.       Enabled = false,
  14.       Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
  15.       RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  16.    },
  17.    KeySystem = true, -- Set this to true to use our key system
  18.    KeySettings = {
  19.       Title = "Key | Youtube Hub",
  20.       Subtitle = "Key System",
  21.       Note = "Key In Discord Server",
  22.       FileName = "YoutubeHubKey1", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  23.       SaveKey = false, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  24.       GrabKeyFromSite = true, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  25.       Key = {"https://pastebin.pl/view/02c920cf"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
  26.    }
  27. })
  28.  
  29. local MainTab = Window:CreateTab("? Home", nil) -- Title, Image
  30. local MainSection = MainTab:CreateSection("Main")
  31.  
  32. Rayfield:Notify({
  33.    Title = "You executed the script",
  34.    Content = "Very cool gui",
  35.    Duration = 5,
  36.    Image = nil,
  37.    Actions = { -- Notification Buttons
  38.       Ignore = {
  39.          Name = "Okay!",
  40.          Callback = function()
  41.          print("The user tapped Okay!")
  42.       end
  43.    },
  44. },
  45. })
  46.  
  47. local Button = MainTab:CreateButton({
  48.    Name = "Infinite Jump Toggle",
  49.    Callback = function()
  50.        --Toggles the infinite jump between on or off on every script run
  51. _G.infinjump = not _G.infinjump
  52.  
  53. if _G.infinJumpStarted == nil then
  54.  --Ensures this only runs once to save resources
  55.  _G.infinJumpStarted = true
  56.  
  57.  --Notifies readiness
  58.  game.StarterGui:SetCore("SendNotification", {Title="Youtube Hub"; Text="Infinite Jump Activated!"; Duration=5;})
  59.  
  60.  --The actual infinite jump
  61.  local plr = game:GetService('Players').LocalPlayer
  62.  local m = plr:GetMouse()
  63.  m.KeyDown:connect(function(k)
  64.   if _G.infinjump then
  65.    if k:byte() == 32 then
  66.    humanoid = game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass('Humanoid')
  67.    humanoid:ChangeState('Jumping')
  68.    wait()
  69.    humanoid:ChangeState('Seated')
  70.    end
  71.   end
  72.  end)
  73. end
  74.    end,
  75. })
  76.  
  77. local Slider = MainTab:CreateSlider({
  78.    Name = "WalkSpeed Slider",
  79.    Range = {1, 350},
  80.    Increment = 1,
  81.    Suffix = "Speed",
  82.    CurrentValue = 16,
  83.    Flag = "sliderws", -- 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
  84.    Callback = function(Value)
  85.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
  86.    end,
  87. })
  88.  
  89. local Slider = MainTab:CreateSlider({
  90.    Name = "JumpPower Slider",
  91.    Range = {1, 350},
  92.    Increment = 1,
  93.    Suffix = "Speed",
  94.    CurrentValue = 16,
  95.    Flag = "sliderjp", -- 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
  96.    Callback = function(Value)
  97.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = (Value)
  98.    end,
  99. })
  100.  
  101. local Dropdown = MainTab:CreateDropdown({
  102.    Name = "Select Area",
  103.    Options = {"Starter World","Pirate Island","Pineapple Paradise"},
  104.    CurrentOption = {"Starter World"},
  105.    MultipleOptions = false,
  106.    Flag = "dropdownarea", -- 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
  107.    Callback = function(Option)
  108.         print(Option)
  109.    end,
  110. })
  111.  
  112. local Input = MainTab:CreateInput({
  113.    Name = "Walkspeed",
  114.    PlaceholderText = "1-500",
  115.    RemoveTextAfterFocusLost = true,
  116.    Callback = function(Text)
  117.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Text)
  118.    end,
  119. })
  120.  
  121. local OtherSection = MainTab:CreateSection("Other")
  122.  
  123. local Toggle = MainTab:CreateToggle({
  124.    Name = "Auto Farm",
  125.    CurrentValue = false,
  126.    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
  127.    Callback = function(Value)
  128.         print("FARMING")
  129.    end,
  130. })
  131.  
  132. local TPTab = Window:CreateTab("Auto", nil) -- Title, Image
  133.  
  134. local Button1 = TPTab:CreateButton({
  135.    Name = "Auto",
  136.    Callback = function()
  137.         --Teleport1
  138.    end,
  139. })
  140.  
  141. local Button2 = TPTab:CreateButton({
  142.    Name = "Autokill",
  143.    Callback = function()
  144.     local Players = game:GetService("Players")
  145. local Workspace = game:GetService("Workspace")
  146.  
  147. local player = Players.LocalPlayer
  148. local baseplate = Workspace.Baseplate
  149.  
  150. -- Function to teleport a humanoid/player in front of the player's arms
  151. local function teleportPlayerInFront(humanoid)
  152.     local offset = Vector3.new(0, 0, -5) -- Adjust the offset as needed
  153.     humanoid.RootPart.CFrame = player.Character.PrimaryPart.CFrame * CFrame.new(offset)
  154. end
  155.  
  156. -- Teleport the player to the baseplate
  157. player.CharacterAdded:Connect(function(character)
  158.     character:SetPrimaryPartCFrame(baseplate.CFrame)
  159. end)
  160.  
  161. -- Loop to continuously teleport all players in front of the player's arms
  162. while true do
  163.     for _, otherPlayer in pairs(Players:GetPlayers()) do
  164.         if otherPlayer ~= player then
  165.             local otherCharacter = otherPlayer.Character
  166.             if otherCharacter then
  167.                 local humanoid = otherCharacter:FindFirstChild("Humanoid")
  168.                 if humanoid then
  169.                     teleportPlayerInFront(humanoid)
  170.                 end
  171.             end
  172.         end
  173.     end
  174.     wait(0.1) -- Adjust the wait time as needed for performance
  175. end
  176. end
  177.     end
  178.