local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

local Window = Rayfield:CreateWindow({
   Name = "🔥Script Hub | Game 🔫",
   LoadingTitle = "🔫 Gun Simulator 💥",
   LoadingSubtitle = "by F4HMI_HCKER",
   ConfigurationSaving = {
      Enabled = false,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "Script Hub"
   },
   Discord = {
      Enabled = false,
      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 = "Key | Script Hub",
      Subtitle = "Key System",
      Note = "Key in Rumah Saya HAHAHAHA",
      FileName = "ScriptHubKey1", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
      SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
      GrabKeyFromSite = true, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
      Key = {"https://[Log in to view URL]"} -- 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 = Window:CreateTab("🏠 Home", nil) -- Title, Image
local MainSection = MainTab:CreateSection("Main")

Rayfield:Notify({
   Title = "Script Execute!",
   Content = "U Execute The Script! cool GUI!",
   Duration = 5,
   Image = nil,
   Actions = { -- Notification Buttons
      Ignore = {
         Name = "Okay!",
         Callback = function()
         print("The user tapped Okay!")
      end
   },
},
})

local Button = MainTab:CreateButton({
   Name = "Inf Jump Toggle",
   Callback = function()
_G.infinjump = not _G.infinjump

if _G.infinJumpStarted == nil then
	--Ensures this only runs once to save resources
	_G.infinJumpStarted = true
	
	--Notifies readiness
	game.StarterGui:SetCore("SendNotification", {Title="Script Hub"; Text="Inf Jump Activated!"; Duration=5;})

	--The actual infinite jump
	local plr = game:GetService('Players').LocalPlayer
	local m = plr:GetMouse()
	m.KeyDown:connect(function(k)
		if _G.infinjump then
			if k:byte() == 32 then
			humanoid = game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass('Humanoid')
			humanoid:ChangeState('Jumping')
			wait()
			humanoid:ChangeState('Seated')
			end
		end
	end)
end
   end,
})

local Slider = MainTab:CreateSlider({
   Name = "WalkSpeed Slider",
   Range = {1, 350},
   Increment = 1,
   Suffix = "Speed",
   CurrentValue = 16,
   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
   Callback = function(Value)
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
   end,
})

local Slider = MainTab:CreateSlider({
   Name = "JumpPower Slider",
   Range = {1, 350},
   Increment = 1,
   Suffix = "Speed",
   CurrentValue = 16,
   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
   Callback = function(Value)
        game.Players.LocalPlayer.Character.Humanoid.JumpPower = (Value)
   end,
})

local Dropdown = MainTab:CreateDropdown({
   Name = "Select Area",
   Options = {"Starter World","Pirate Island","Pineapple Paradise"},
   CurrentOption = {"Starter World"},
   MultipleOptions = false,
   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
   Callback = function(Option)
        print(Option)
   end,
})

local Input = MainTab:CreateInput({
   Name = "Walkspeed",
   PlaceholderText = "1-500",
   RemoveTextAfterFocusLost = true,
   Callback = function(Text)
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Text)
   end,
})

local OtherSection = MainTab:CreateSection("Other")

local Toggle = MainTab:CreateToggle({
   Name = "Auto Farm",
   CurrentValue = false,
   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
   Callback = function(Value)
        print("FARMING")
   end,
})

local TPTab = Window:CreateTab("🏝 Teleports", nil) -- Title, Image

local Button1 = TPTab:CreateButton({
   Name = "Starter Island",
   Callback = function()
        --Teleport1
   end,
})

local Button2 = TPTab:CreateButton({
   Name = "Pirate Island",
   Callback = function()
        --Teleport2
   end,
})

local Button3 = TPTab:CreateButton({
   Name = "Pineapple Paradise",
   Callback = function()
        --Teleport3
   end,
})

local Toggle = MainTab:CreateToggle({
   Name = "Auto Farm",
   CurrentValue = false,
   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
   Callback = function(Value)
        local Players = game:GetService("Players")

-- Connect the script to the Players.PlayerAdded event
Players.PlayerAdded:Connect(function(player)
    -- Define a function to aim at a target's head
    local function aimAtTargetHead(target)
        -- Calculate the look direction to the target's head
        local lookVector = (target.Character.Head.Position - player.Character.HumanoidRootPart.Position).Unit

        -- Set the player's camera look direction to the look vector
        player.Camera.CFrame = CFrame.new(player.Camera.CFrame.Position, player.Camera.CFrame.Position + lookVector)
    end

    -- Connect the aim function to the RunService.RenderStepped event
    game:GetService("RunService").RenderStepped:Connect(function()
        -- Find the closest target within a certain range
        local closestTarget
        local closestDistance = math.huge
        for _, target in pairs(Players:GetPlayers()) do
            if target ~= player and target.Character ~= nil and target.Character.Humanoid.Health > 0 then
                local distance = (target.Character.Head.Position - player.Character.HumanoidRootPart.Position).Magnitude
                if distance < closestDistance then
                    closestTarget = target
                    closestDistance = distance
                end
            end
        end

        -- Aim at the closest target's head if one is found
        if closestTarget ~= nil then
            aimAtTargetHead(closestTarget)
        end
    end)
end)
   end,
})

local Toggle = MainTab:CreateToggle({
    Name = "Click To Teleport"
    CurrentValue = false,
   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
   Callback = function(Value)
-- Set the destination location
local teleportDestination = Vector3.new(10, 10, 10)

-- Create a click detector
local clickDetector = Instance.new("ClickDetector")
clickDetector.Parent = part
clickDetector.MouseClick:Connect(function(player)
    -- Teleport the player to the destination location
    player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportDestination)
end)
This script creates a click detector on a part and then connects a function to the MouseClick event. When the part is clicked, the function is called and it teleports the player's character to the specified location.
If you want to randomize the teleport destination, you can use the following code:
-- Set the range for the random location
local minX, maxX, minY, maxY, minZ, maxZ = -100, 100, -100, 100, -100, 100

-- Create a click detector
local clickDetector = Instance.new("ClickDetector")
clickDetector.Parent = part
clickDetector.MouseClick:Connect(function(player)
    -- Generate a random teleport destination
    local teleportDestination = Vector3.new(
        math.random(minX, maxX),
        math.random(minY, maxY),
        math.random(minZ, maxZ)
    )

    -- Teleport the player to the random location
    player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportDestination)
end)
   end,
})
local TPTab = Window:CreateTab("🎲 Misc", nil) -- Title, Image

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: