local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "RayScript😤",
LoadingTitle = "RayRays Hub",
LoadingSubtitle = "by Sirius",
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "RaysHub"
},
Discord = {Enabled = false,
Invite = "https://[Log in to view URL]", -- 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 = "RaysKey",
Subtitle = "KeyInDiscord",
Note = "JoinDiscordForKey",
FileName = "RaysHubKey", -- 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 = {"RayRaysHub102"} -- 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("🔥MainTab🔥", 4483362458) -- Title, Image
local MainSection = MainTab:CreateSection("Main")
Rayfield:Notify({
Title = "Welcome To RayRays Hub",
Content = "RayRays Very good GUI",
Duration = 6.5,
Image = nil,
Actions = { -- Notification Buttons
Ignore = {
Name = "Okay!",
Callback = function()
print("The user tapped Okay!")
end
},
},
})
local Button = MainTab:CreateButton({
Name = "AimBot",
Callback = function()
-- Toggles Aimbot script to inject
loadstring(game:HttpGet("https://[Log in to view URL]"))()
end,
})
local Slider = MainTab:CreateSlider({
Name = "WalkSpeed Slider",
Range = {0, 22},
Increment = 1,
Suffix = "speed",
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 OtherTab = Window:CreateTab("🔥OtherTab🔥", nil) -- Title, Image
local Section = OtherTab:CreateSection("ESP")
local Button = OtherTab:CreateButton({
Name = "ESP",
Callback = function()
pcall(function() loadstring(game:HttpGet('https://[Log in to view URL]'))() end)
end,
})
local Button = OtherTab:CreateButton({
Name = "Autofarm Get job first",
Callback = function()
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "RayScript😤",
LoadingTitle = "RayRays Hub",
LoadingSubtitle = "by Sirius",
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "RaysHub"
},
Discord = {Enabled = false,
Invite = "https://[Log in to view URL]", -- 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 = "RaysKey",
Subtitle = "KeyInDiscord",
Note = "JoinDiscordForKey",
FileName = "RaysHubKey", -- 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 = {"RayRaysHub102"} -- 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("🔥MainTab🔥", 4483362458) -- Title, Image
local MainSection = MainTab:CreateSection("Main")
Rayfield:Notify({
Title = "Welcome To RayRays Hub",
Content = "RayRays Very good GUI",
Duration = 6.5,
Image = nil,
Actions = { -- Notification Buttons
Ignore = {
Name = "Okay!",
Callback = function()
print("The user tapped Okay!")
end
},
},
})
local Button = MainTab:CreateButton({
Name = "AimBot",
Callback = function()
-- Toggles Aimbot script to inject
loadstring(game:HttpGet("https://[Log in to view URL]"))()
end,
})
local Slider = MainTab:CreateSlider({
Name = "WalkSpeed Slider",
Range = {0, 22},
Increment = 1,
Suffix = "speed",
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 OtherTab = Window:CreateTab("🔥OtherTab🔥", nil) -- Title, Image
local Section = OtherTab:CreateSection("ESP")
local Button = OtherTab:CreateButton({
Name = "ESP",
Callback = function()
pcall(function() loadstring(game:HttpGet('https://[Log in to view URL]'))() end)
end,
})
local Button = MainTab:CreateButton({
Name = "Button Example",
Callback = function()
-- config
local prefix = '!'
-- services
local workspace = game:GetService('Workspace')
local players = game:GetService('Players')
local tween = game:GetService('TweenService')
-- variables
local localplayer = players.LocalPlayer
local character = localplayer.Character
local backpack = localplayer.Backpack
local trash = workspace['trashcan'].prox
local dumpster = workspace['GarbageDumpster']
local trash_ = trash.Attachment:WaitForChild('ProximityPrompt')
local dumpster_ = dumpster.Attachment:WaitForChild('ProximityPrompt')
local farming = false
local speed = 26 -- studs per second
-- functions
local function get_player_root()
local player_root = character:FindFirstChild('HumanoidRootPart') or character:FindFirstChild('Torso') or character:FindFirstChild('UpperTorso')
return player_root
end
local function calculate_time_from_distance(position, speed)
local distance_to = (character.HumanoidRootPart.Position - position.Position).Magnitude
return distance_to / speed
end
local function tween_player_to(position, speed)
local tween_info = TweenInfo.new(
calculate_time_from_distance(position, speed),
Enum.EasingStyle.Linear
)
local tween_goal = {
CFrame = CFrame.new(position.Position)
}
tween:Create(get_player_root(), tween_info, tween_goal):Play()
end
local function farm(speed)
farming = true
tween_player_to(trash.CFrame + Vector3.new(3, 0, 3), speed)
repeat wait() until (character.HumanoidRootPart.Position - trash.Position).Magnitude < 10
repeat fireproximityprompt(trash_, 1) until backpack:FindFirstChild('TrashBag')
backpack:FindFirstChild('TrashBag').Parent = character
tween_player_to(dumpster.CFrame + Vector3.new(-4, 0, -4), speed)
repeat wait() until (character.HumanoidRootPart.Position - dumpster.Position).Magnitude < 10
repeat fireproximityprompt(dumpster_, 1) until not character:FindFirstChild('TrashBag')
end
--connections
localplayer.Chatted:Connect(function(chat)
if chat == prefix .. 'stop' then
farming = false
end
end)
-- initialization
repeat farm(speed) until farming == false
end,
})
To embed this program on your website, copy the following code and paste it into your website's HTML: