Great script maj frend
Lua
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "Velebit's menu",
Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
LoadingTitle = "Credits to rayfield for the cool gui",
LoadingSubtitle = "by Velebit",
Theme = "Default", -- Check https://[Log in to view URL]
ToggleUIKeybind = "K", -- The keybind to toggle the UI visibility (string like "K" or Enum.KeyCode)
DisableRayfieldPrompts = false,
DisableBuildWarnings = false, -- Prevents Rayfield from warning when the script has a version mismatch with the interface
ConfigurationSaving = {
Enabled = true,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "Big Hub"
},
Discord = {
Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
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 = "Enter a key",
Subtitle = "key system",
Note = "The key is subscribes", -- Use this to tell the user how to get a key
FileName = "very unique place to store script", -- 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("Main", nil) -- Title, Image
local MainSection = MainTab:CreateSection("Legitbot")
Rayfield:Notify({
Title = "You successfully executed the script",
Content = "Have fun!",
Duration = 5,
Image = nil,
})
local Button = MainTab:CreateButton({
Name = "Legitbot",
Callback = function()
local target = nil
local aim_smoothness = 0.2
function find_target(camera)
-- In a real implementation, you'd need to find the nearest player using game logic.
-- This is just a placeholder to illustrate the concept.
local players = game.Players:GetChildren()
local closest_distance = math.huge
local closest_player = nil
for _, player in pairs(players) do
if player.Character and player.Character:FindFirstChild("Humanoid") then
local character_position = player.Character:GetPivot()
local distance = (camera.CFrame.Position - character_position).Magnitude
if distance < closest_distance then
closest_distance = distance
closest_player = player
end
end
end
return closest_player
end
function aim_towards_target(player_camera, target_character_position)
-- In a real implementation, you'd use the player's camera to calculate the angle.
-- This is a simplified example.
local current_rotation = player_camera.CFrame.LookVector
local target_direction = (target_character_position - player_camera.CFrame.Position).Unit
-- Smoothly rotate the camera towards the target
current_rotation = current_rotation:Lerp(target_direction, aim_smoothness)
-- Update the player's camera
player_camera.CFrame = CFrame.lookAt(player_camera.CFrame.Position, player_camera.CFrame.Position + current_rotation)
end
-- In a game loop or when the user presses a key, you can call these functions
game:GetService("UserInputService").InputChanged:Connect(function(input, is_processed)
if not is_processed and input.UserInputType == Enum.UserInputType.Mouse and input.ButtonName == "Button2" then -- Right click
if not target then
target = find_target(game.Players.LocalPlayer.PlayerCamera)
end
end
if target then
if target.Character and target.Character:FindFirstChild("Humanoid") then
aim_towards_target(game.Players.LocalPlayer.PlayerCamera, target.Character:GetPivot())
else
target = nil
end
end
end)
end,
})
local Toggle = MainTab:CreateToggle({
Name = "Legitbot",
CurrentValue = false,
Flag = "Toggled", -- 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 (on)
-- The function that takes place when the toggle is pressed
-- The variable (Value) is a boolean on whether the toggle is true or false
end,
})
local VisualsTab = Window:CreateTab("visuals", nil) -- Title, Image
local VisualsSection = VisualsTab:CreateSection("Esp")
local Button = Tab:CreateButton({
Name = "wallhacks",
Callback = function()
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
function createESP(player)
if player == localPlayer then return end
player.CharacterAdded:Connect(function(character)
local head = character:WaitForChild("Head", 10)
if head then
local billboard = Instance.new("BillboardGui")
billboard.Name = "ESP"
billboard.Size = UDim2.new(0, 100, 0, 40)
billboard.Adornee = head
billboard.AlwaysOnTop = true
billboard.StudsOffset = Vector3.new(0, 2, 0)
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, 0, 1, 0)
label.BackgroundTransparency = 1
label.Text = player.Name
label.TextColor3 = Color3.new(1, 0, 0)
label.TextStrokeTransparency = 0
label.TextScaled = true
label.Parent = billboard
billboard.Parent = head
end
end)
end
for _, player in ipairs(Players:GetPlayers()) do
createESP(player)
end
Players.PlayerAdded:Connect(createESP)
-- The function that takes place when the button is pressed
end,
})
local Toggle = VisualsTab:CreateToggle({
Name = "wallhacks",
CurrentValue = false,
Flag = "Toggeled", -- 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 (on)
-- The function that takes place when the toggle is pressed
-- The variable (Value) is a boolean on whether the toggle is true or false
end,
})
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.