```lua
--// Legends of Speed Stats Tracker & Download Button //--
--// Configuration (Modify these as needed) //--
local XpPerLevelMultiplier = 100 -- Replace with the actual XP needed per level calculation if it's more complex
local RebirthCurrencyName = "Steps" -- Replace if rebirths use a different currency
--// UI Setup //--
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "LegendsOfSpeedTracker"
ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 200, 0, 150)
MainFrame.Position = UDim2.new(0.05, 0, 0.05, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
MainFrame.BorderSizePixel = 2
MainFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
MainFrame.Parent = ScreenGui
local TitleLabel = Instance.new("TextLabel")
TitleLabel.Size = UDim2.new(1, 0, 0.25, 0)
TitleLabel.Position = UDim2.new(0, 0, 0, 0)
TitleLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleLabel.Text = "Legends of Speed Tracker"
TitleLabel.TextScaled = true
TitleLabel.Font = Enum.Font.SourceSansBold
TitleLabel.Parent = MainFrame
local LevelLabel = Instance.new("TextLabel")
LevelLabel.Size = UDim2.new(1, 0, 0.25, 0)
LevelLabel.Position = UDim2.new(0, 0, 0.25, 0)
LevelLabel.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
LevelLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
LevelLabel.Text = "Level: 0"
LevelLabel.TextScaled = true
LevelLabel.Font = Enum.Font.SourceSans
LevelLabel.Parent = MainFrame
local RebirthLabel = Instance.new("TextLabel")
RebirthLabel.Size = UDim2.new(1, 0, 0.25, 0)
RebirthLabel.Position = UDim2.new(0, 0, 0.5, 0)
RebirthLabel.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
RebirthLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
RebirthLabel.Text = "Rebirths: 0"
RebirthLabel.TextScaled = true
RebirthLabel.Font = Enum.Font.SourceSans
RebirthLabel.Parent = MainFrame
local XpLabel = Instance.new("TextLabel")
XpLabel.Size = UDim2.new(1, 0, 0.25, 0)
XpLabel.Position = UDim2.new(0, 0, 0.75, 0)
XpLabel.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
XpLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
XpLabel.Text = "XP: 0 / 0"
XpLabel.TextScaled = true
XpLabel.Font = Enum.Font.SourceSans
XpLabel.Parent = MainFrame
local DownloadButton = Instance.new("TextButton")
DownloadButton.Size = UDim2.new(0.4, 0, 0.2, 0)
DownloadButton.Position = UDim2.new(0.5, 0, 0.5, 0) -- Center the button
DownloadButton.AnchorPoint = Vector2.new(0.5, 0.5)
DownloadButton.BackgroundColor3 = Color3.fromRGB(46, 204, 113)
DownloadButton.TextColor3 = Color3.fromRGB(255, 255, 255)
DownloadButton.Text = "Download Script"
DownloadButton.TextScaled = true
DownloadButton.Font = Enum.Font.SourceSansBold
DownloadButton.Parent = ScreenGui
local ScriptFrame = Instance.new("Frame")
ScriptFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
ScriptFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
ScriptFrame.AnchorPoint = Vector2.new(0.5, 0.5)
ScriptFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
ScriptFrame.BorderSizePixel = 2
ScriptFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
ScriptFrame.Visible = false
ScriptFrame.Parent = ScreenGui
local ScriptTextBox = Instance.new("TextBox")
ScriptTextBox.Size = UDim2.new(0.9, 0, 0.8, 0)
ScriptTextBox.Position = UDim2.new(0.5, 0, 0.4, 0)
ScriptTextBox.AnchorPoint = Vector2.new(0.5, 0.5)
ScriptTextBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
ScriptTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
ScriptTextBox.Text = ""
ScriptTextBox.Font = Enum.Font.SourceSans
ScriptTextBox.TextWrapped = true
ScriptTextBox.ReadOnly = true
ScriptTextBox.Parent = ScriptFrame
local CloseButton = Instance.new("TextButton")
CloseButton.Size = UDim2.new(0.2, 0, 0.1, 0)
CloseButton.Position = UDim2.new(0.8, 0, 0.9, 0)
CloseButton.AnchorPoint = Vector2.new(0.5, 0.5)
CloseButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60)
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseButton.Text = "Close"
CloseButton.TextScaled = true
CloseButton.Font = Enum.Font.SourceSansBold
CloseButton.Parent = ScriptFrame
--// Function to get a service //--
local function GetService(serviceName)
local service = game:GetService(serviceName)
return service
end
--// Function to find a value in the player //--
local function FindValue(valueName)
local player = game.Players.LocalPlayer
if player then
for _, obj in pairs(player:GetChildren()) do
if obj:IsA("IntValue") or obj:IsA("NumberValue") then
if obj.Name == valueName then
return obj
end
end
end
end
return nil
end
--// Variables to store the values //--
local LevelValue = FindValue("Level")
local RebirthValue = FindValue(RebirthCurrencyName) -- Assuming "Steps" is used for rebirths
local XPValue = FindValue("XP") -- You might need to check what the actual XP value is called.
--// Function to update the UI //--
local function UpdateUI()
if LevelValue then
LevelLabel.Text = "Level: " .. LevelValue.Value
else
LevelLabel.Text = "Level: N/A"
end
if RebirthValue then
RebirthLabel.Text = "Rebirths: " .. RebirthValue.Value
else
RebirthLabel.Text = "Rebirths: N/A"
end
if XPValue and LevelValue then
local requiredXP = LevelValue.Value * XpPerLevelMultiplier
XpLabel.Text = "XP: " .. XPValue.Value .. " / " .. requiredXP
else
XpLabel.Text = "XP: N/A"
end
end
--// Event listeners for value changes //--
if LevelValue then
LevelValue.Changed:Connect(UpdateUI)
end
if RebirthValue then
RebirthValue.Changed:Connect(UpdateUI)
end
if XPValue then
XPValue.Changed:Connect(UpdateUI)
end
-- Initial update
UpdateUI()
-- Download button functionality
DownloadButton.MouseButton1Click:Connect(function()
ScriptFrame.Visible = true
ScriptTextBox.Text = [[
-- Your code here
print("Hello from Legends of Speed Script")
local LocalPlayer = game.Players.LocalPlayer
print("Player Name:", LocalPlayer.Name)
-- Add more exploit code here (e.g., speed hack, jump hack)
]]
end)
-- Close button functionality
CloseButton.MouseButton1Click:Connect(function()
ScriptFrame.Visible = false
end) make this script work