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 Toggle = OtherTab:CreateToggle({
Name = "Toggle Wallbang",
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 player = game.Players.LocalPlayer
local mouse = player:GetMouse()
-- Objects
local ScreenGui = Instance.new("ScreenGui")
local TextButton = Instance.new("TextButton")
local On = Instance.new("StringValue")
-- Properties
ScreenGui.Parent = player.PlayerGui
TextButton.Parent = ScreenGui
TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
TextButton.BorderSizePixel = 0
TextButton.Position = UDim2.new(0, 0, 0.455743879, 0)
TextButton.Size = UDim2.new(0, 186, 0, 35)
TextButton.Font = Enum.Font.SourceSans
TextButton.Text = "Btools (Off)"
TextButton.TextColor3 = Color3.new(0.27451, 0.27451, 0.27451)
TextButton.TextScaled = true
TextButton.TextSize = 14
TextButton.TextWrapped = true
On.Parent = TextButton
On.Value = "Off"
-- Scripts
TextButton.MouseButton1Up:Connect(function()
if On.Value == "Off" then
On.Value = "On"
TextButton.Text = "Btools (On)"
else
On.Value = "Off"
TextButton.Text = "Btools (Off)"
end
end)
mouse.Button1Up:Connect(function()
if On.Value == "Off" then
print('btools off')
else
if mouse.Target.Locked == true then
mouse.Target:Destroy()
else
mouse.Target:Destroy()
end
end
end)
end,
})
local Toggle = OtherTab:CreateToggle({
Name = "AutoFarmJob = Money",
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)
-- Script generated by SimpleSpy - credits to exx#9394
local args = {
[1] = "Box Job"
}
if Value then
game:GetService("ReplicatedStorage").RemoteEvents.FetchGUI:FireServer(unpack(args))
-- Teleport to the first location
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-552.4525146484375, 3.5371451377868652, -83.8554458618164))
-- Hold 'E' for 5 seconds
game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.E, false, game)
wait(5) -- Wait for 5 seconds
-- Teleport to the second location
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-401.3119201660156, 3.4121932983398438, -72.4224853515625))
-- Hold 'E' for another 5 seconds
game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.E, false, game)
wait(5) -- Wait for 5 seconds
else
-- Code to handle turning off the autofarm (if needed)
-- In this example, let's assume there's nothing specific to do when turning off, so we'll simply do nothing
end
end,
})
OtherTab:AddButton({
Name = "Instant Loot",
Callback = function()
local ProximityPromptService = game:GetService("ProximityPromptService")
if _G.hold then _G.hold:Disconnect() end
_G.hold = ProximityPromptService.PromptButtonHoldBegan:Connect(function(prompt)
prompt.HoldDuration = 0;
end)
-- The function that takes place when the button is pressed
end,
})
MainTab:AddButton({
Name = "Show Guns",
Callback = function()
loadstring(game:HttpGet("https://[Log in to view URL]"))()
end,
})
OtherTab:AddButton({
Name = "Trash Auto Farm",
Callback = function()
-- Function to teleport to specific coordinates and hold 'E' key
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
local Noclip = nil
local Clip = nil
function noclip()
Clip = false
local function Nocl()
if Clip == false and game.Players.LocalPlayer.Character ~= nil then
for _,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
if v:IsA('BasePart') and v.CanCollide and v.Name ~= floatName then
v.CanCollide = false
end
end
end
wait(0.21) -- basic optimization
end
Noclip = game:GetService('RunService').Stepped:Connect(Nocl)
end
function clip()
if Noclip then Noclip:Disconnect() end
Clip = true
end
noclip() -- to toggle noclip() and clip()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local backpack = player.Backpack
local coordinates = {
Vector3.new(698.394287109375, 3.5371994972229004, 170.7313232421875),
Vector3.new(729.8390502929688, 3.4121947288513184, 211.96453857421875)
}
local stopScript = false
local function HoldEFor2Seconds()
game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.E, false, game)
wait(1)
game:GetService("VirtualInputManager"):SendKeyEvent(false, Enum.KeyCode.E, false, game)
end
local function MoveBackAndForth()
while not stopScript do
for i = 1, #coordinates do
local coord = coordinates[i]
humanoid.WalkSpeed = 22
humanoid:MoveTo(coord)
humanoid.MoveToFinished:Wait()
if stopScript then
return -- Exit the function if stopScript is true
end
if backpack then
local crate = backpack:FindFirstChild("TrashBag")
if crate then
crate.Parent = character
end
end
HoldEFor2Seconds()
end
end
end
local function OnKeyPress(input)
if input.KeyCode == Enum.KeyCode.F1 then
stopScript = true
humanoid.WalkSpeed = 16 -- Reset walk speed to default when stopping
end
end
game:GetService("UserInputService").InputBegan:Connect(OnKeyPress)
MoveBackAndForth()
end
})
MainTab:AddButton({
Name = "Esp Atms",
Callback = function()
-- loadstring
local ESP = loadstring(game:HttpGet("https://[Log in to view URL]"))()
-- config
ESP.Players = false
ESP.Boxes = false
ESP.Names = true
ESP:Toggle(true)
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM5", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM1", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM12", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM2", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM15", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM3", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM13", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM4", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM14", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM5", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM11", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM6", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM10", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM7", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM9", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM8", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM1", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM9", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM2", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM10", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM3", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM11", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM4", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM12", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM7", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM13", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM8", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM14", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
-- object
ESP:AddObjectListener(Workspace.ATMS, { -- Object Path, For example: Workspace.ThisFolder
Name = "ATM6", --Object name inside of the path, for example: Workspace.ThisFolder.Item_1
CustomName = "ATM15", -- Name you want to be displayed
Color = Color3.fromRGB(260, 260, 260), -- Color
IsEnabled = "whatever" -- Any name, has to be the same as the last line: ESP.TheNameYouWant
})
ESP.whatever = true
end,
})
MainTab:AddButton({
Name = "Fly",
Callback = function()
loadstring(game:HttpGet("https://[Log in to view URL]"))()
end,
})
MainTab:AddButton({
Name = "AimLock (Q To Lock)",
Callback = function()
getgenv().OldAimPart = "HumanoidRootPart"
getgenv().AimPart = "HumanoidRootPart" -- For R15 Games: {UpperTorso, LowerTorso, HumanoidRootPart, Head} | For R6 Games: {Head, Torso, HumanoidRootPart}
getgenv().AimlockKey = "q"
getgenv().AimRadius = 30 -- How far away from someones character you want to lock on at
getgenv().ThirdPerson = true
getgenv().FirstPerson = true
getgenv().TeamCheck = false -- Check if Target is on your Team (True means it wont lock onto your teamates, false is vice versa) (Set it to false if there are no teams)
getgenv().PredictMovement = true -- Predicts if they are moving in fast velocity (like jumping) so the aimbot will go a bit faster to match their speed
getgenv().PredictionVelocity = 9.100
getgenv().CheckIfJumped = true
getgenv().Smoothness = false
getgenv().SmoothnessAmount = 0.2
local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
local Aimlock, MousePressed, CanNotify = true, false, false;
local AimlockTarget;
local OldPre;
getgenv().WorldToViewportPoint = function(P)
return Camera:WorldToViewportPoint(P)
end
getgenv().WorldToScreenPoint = function(P)
return Camera.WorldToScreenPoint(Camera, P)
end
getgenv().GetObscuringObjects = function(T)
if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then
local RayPos = workspace:FindPartOnRay(RNew(
T[getgenv().AimPart].Position, Client.Character.Head.Position)
)
if RayPos then return RayPos:IsDescendantOf(T) end
end
end
getgenv().GetNearestTarget = function()
-- Credits to whoever made this, i didnt make it, and my own mouse2plr function kinda sucks
local players = {}
local PLAYER_HOLD = {}
local DISTANCES = {}
for i, v in pairs(Players:GetPlayers()) do
if v ~= Client then
table.insert(players, v)
end
end
for i, v in pairs(players) do
if v.Character ~= nil then
local AIM = v.Character:FindFirstChild("Head")
if getgenv().TeamCheck == true and v.Team ~= Client.Team then
local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
local DIFF = math.floor((POS - AIM.Position).magnitude)
PLAYER_HOLD[v.Name .. i] = {}
PLAYER_HOLD[v.Name .. i].dist= DISTANCE
PLAYER_HOLD[v.Name .. i].plr = v
PLAYER_HOLD[v.Name .. i].diff = DIFF
table.insert(DISTANCES, DIFF)
elseif getgenv().TeamCheck == false and v.Team == Client.Team then
local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
local DIFF = math.floor((POS - AIM.Position).magnitude)
PLAYER_HOLD[v.Name .. i] = {}
PLAYER_HOLD[v.Name .. i].dist= DISTANCE
PLAYER_HOLD[v.Name .. i].plr = v
PLAYER_HOLD[v.Name .. i].diff = DIFF
table.insert(DISTANCES, DIFF)
end
end
end
if unpack(DISTANCES) == nil then
return nil
end
local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
if L_DISTANCE > getgenv().AimRadius then
return nil
end
for i, v in pairs(PLAYER_HOLD) do
if v.diff == L_DISTANCE then
return v.plr
end
end
return nil
end
Mouse.KeyDown:Connect(function(a)
if not (Uis:GetFocusedTextBox()) then
if a == AimlockKey and AimlockTarget == nil then
pcall(function()
if MousePressed ~= true then MousePressed = true end
local Target;Target = GetNearestTarget()
if Target ~= nil then
AimlockTarget = Target
end
end)
elseif a == AimlockKey and AimlockTarget ~= nil then
if AimlockTarget ~= nil then AimlockTarget = nil end
if MousePressed ~= false then
MousePressed = false
end
end
end
end)
RService.RenderStepped:Connect(function()
if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
CanNotify = true
else
CanNotify = false
end
elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then
CanNotify = true
else
CanNotify = false
end
elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
CanNotify = true
else
CanNotify = false
end
end
if Aimlock == true and MousePressed == true then
if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then
if getgenv().FirstPerson == true then
if CanNotify == true then
if getgenv().PredictMovement == true then
if getgenv().Smoothness == true then
--// The part we're going to lerp/smoothen \\--
local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
--// Making it work \\--
Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
else
Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
end
elseif getgenv().PredictMovement == false then
if getgenv().Smoothness == true then
--// The part we're going to lerp/smoothen \\--
local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
--// Making it work \\--
Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
else
Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
end
end
end
end
end
end
if CheckIfJumped == true then
if AimlockTarget.Character.HuDDDDDDDDDDWmanoid.FloorMaterial == Enum.Material.Air then
getgenv().AimPart = "HumanoidRootPart"
else
getgenv().AimPart = getgenv().OldAimPart
end
end
end)
end,
})
To embed this program on your website, copy the following code and paste it into your website's HTML: