Back to Scripts
Ez Win
ScriptBlox
Free
Game: Loot Hero [Beta]
773
Views
8
Likes
0
Dislikes
Chocolatewater
offline
Features
EXECUTE IN AN ACTUAL MAP NOT THE LOBBY
Godmode
Weapon Mods
Show/hide gui button
Script Code
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- Full Stats GUI (WORKING + Safe Show/Hide)
-- Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Remotes
local Heal = ReplicatedStorage.Remotes.Heal
local Money = ReplicatedStorage.Remotes.Money
local Choice = ReplicatedStorage.Remotes.Choice
-- States
local dmgEnabled = false
local rangeEnabled = false
local atkSpeedEnabled = false
local maxHpEnabled = false
local healEnabled = false
local goldEnabled = false
-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "StatsGUI"
gui.ResetOnSpawn = false
gui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
------------------------------------------------
-- SHOW / HIDE BUTTON (ALWAYS VISIBLE)
------------------------------------------------
local toggleGuiButton = Instance.new("TextButton")
toggleGuiButton.Size = UDim2.new(0, 120, 0, 30)
toggleGuiButton.Position = UDim2.new(0, 20, 0, 20)
toggleGuiButton.Text = "Hide GUI"
toggleGuiButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
toggleGuiButton.TextColor3 = Color3.new(1, 1, 1)
toggleGuiButton.Parent = gui
------------------------------------------------
-- MAIN FRAME
------------------------------------------------
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 320, 0, 440)
frame.Position = UDim2.new(0, 20, 0.5, -220)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.BorderSizePixel = 0
frame.Parent = gui
toggleGuiButton.MouseButton1Click:Connect(function()
frame.Visible = not frame.Visible
toggleGuiButton.Text = frame.Visible and "Hide GUI" or "Show GUI"
end)
------------------------------------------------
-- DISCLAIMER
------------------------------------------------
local disclaimer = Instance.new("TextLabel")
disclaimer.Size = UDim2.new(1, -20, 0, 30)
disclaimer.Position = UDim2.new(0, 10, 0, 5)
disclaimer.Text = "Must level up once for things to work!"
disclaimer.TextColor3 = Color3.fromRGB(255, 200, 0)
disclaimer.BackgroundTransparency = 1
disclaimer.TextScaled = true
disclaimer.Parent = frame
------------------------------------------------
-- BUTTON CREATOR
------------------------------------------------
local function makeButton(text, y)
local b = Instance.new("TextButton")
b.Size = UDim2.new(1, -20, 0, 40)
b.Position = UDim2.new(0, 10, 0, y)
b.Text = text
b.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
b.TextColor3 = Color3.new(1,1,1)
b.Parent = frame
return b
end
------------------------------------------------
-- BUTTONS
------------------------------------------------
local dmgButton = makeButton("Infinite Damage: OFF", 45)
local rangeButton = makeButton("Infinite Range: OFF", 95)
local atkButton = makeButton("Attack Speed Boost: OFF", 145)
local maxHpButton = makeButton("Max Health Boost: OFF", 195)
local healButton = makeButton("Infinite Heal: OFF", 245)
local goldButton = makeButton("Auto Pickup Gold: OFF", 295)
local ammoButton = makeButton("Infinite Projectiles (+)", 345)
local ammoWarning = Instance.new("TextLabel")
ammoWarning.Size = UDim2.new(1, -20, 0, 20)
ammoWarning.Position = UDim2.new(0, 10, 0, 390)
ammoWarning.Text = "β donβt use it too much"
ammoWarning.TextColor3 = Color3.fromRGB(255, 100, 100)
ammoWarning.BackgroundTransparency = 1
ammoWarning.TextScaled = true
ammoWarning.Parent = frame
------------------------------------------------
-- LOOPS
------------------------------------------------
task.spawn(function()
while true do
if dmgEnabled then
Choice:FireServer("Skull")
Choice:FireServer("Toxin")
end
task.wait(0.1)
end
end)
task.spawn(function()
while true do
if rangeEnabled then
Choice:FireServer("Trident")
end
task.wait(0.1)
end
end)
task.spawn(function()
while true do
if atkSpeedEnabled then
Choice:FireServer("Firework")
end
task.wait(0.1)
end
end)
task.spawn(function()
while true do
if maxHpEnabled then
Choice:FireServer("Apple")
end
task.wait(0.1)
end
end)
task.spawn(function()
while true do
if healEnabled then
Heal:FireServer()
end
task.wait(0.1)
end
end)
-- UPDATED AUTO PICKUP (Gold + Sapphire + Amethyst)
task.spawn(function()
while true do
if goldEnabled then
Money:FireServer("Gold")
Money:FireServer("Sapphire")
Money:FireServer("Amethyst")
end
task.wait(0.1)
end
end)
------------------------------------------------
-- BUTTON LOGIC
------------------------------------------------
dmgButton.MouseButton1Click:Connect(function()
dmgEnabled = not dmgEnabled
dmgButton.Text = "Infinite Damage: " .. (dmgEnabled and "ON" or "OFF")
dmgButton.BackgroundColor3 = dmgEnabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
end)
rangeButton.MouseButton1Click:Connect(function()
rangeEnabled = not rangeEnabled
rangeButton.Text = "Infinite Range: " .. (rangeEnabled and "ON" or "OFF")
rangeButton.BackgroundColor3 = rangeEnabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
end)
atkButton.MouseButton1Click:Connect(function()
atkSpeedEnabled = not atkSpeedEnabled
atkButton.Text = "Attack Speed Boost: " .. (atkSpeedEnabled and "ON" or "OFF")
atkButton.BackgroundColor3 = atkSpeedEnabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
end)
maxHpButton.MouseButton1Click:Connect(function()
maxHpEnabled = not maxHpEnabled
maxHpButton.Text = "Max Health Boost: " .. (maxHpEnabled and "ON" or "OFF")
maxHpButton.BackgroundColor3 = maxHpEnabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
end)
healButton.MouseButton1Click:Connect(function()
healEnabled = not healEnabled
healButton.Text = "Infinite Heal: " .. (healEnabled and "ON" or "OFF")
healButton.BackgroundColor3 = healEnabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
end)
goldButton.MouseButton1Click:Connect(function()
goldEnabled = not goldEnabled
goldButton.Text = "Auto Pickup Gold: " .. (goldEnabled and "ON" or "OFF")
goldButton.BackgroundColor3 = goldEnabled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
end)
ammoButton.MouseButton1Click:Connect(function()
for i = 1, 6 do
Choice:FireServer("Ammo")
end
end)
Comments (0)
Please login to comment
Login with Discord
Loading comments...