ADVERTISEMENTREMOVE ADS
Auto Energy and damage
47,064 views
Script Preview
Description
Auto gain energy and convert damage, yes this is it.
Tested with
ADVERTISEMENTREMOVE ADS
127 Lines • 4.26 KiB
--GAME ID: 104415381074001
--CREATED BY DriftHex
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = PlayerGui
ScreenGui.ResetOnSpawn = false
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 210, 0, 110)
Frame.Position = UDim2.new(0.5, -120, 0.5, -75)
Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Frame.BackgroundTransparency = 0.8
Frame.Parent = ScreenGui
local dragging = false
local dragStart, startPos
Frame.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.MouseButton1 and not gameProcessedEvent then
dragging = true
dragStart = input.Position
startPos = Frame.Position
end
end)
Frame.InputChanged:Connect(function(input)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
local delta = input.Position - dragStart
Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
Frame.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
local giveEnergyLoop = false
local convertDmgLoop = false
-- Give Energy Button
local giveEnergyButton = Instance.new("TextButton")
giveEnergyButton.Size = UDim2.new(0, 110, 0, 40)
giveEnergyButton.Position = UDim2.new(0, 10, 0, 10)
giveEnergyButton.Text = "Give Energy"
giveEnergyButton.BackgroundColor3 = Color3.fromRGB(255, 200, 0)
giveEnergyButton.TextColor3 = Color3.fromRGB(0, 0, 0)
giveEnergyButton.Parent = Frame
giveEnergyButton.MouseButton1Click:Connect(function()
game:GetService("ReplicatedStorage").RemoteEventsFolder.GiveEnergyEvent:FireServer()
end)
local giveEnergyLoopButton = Instance.new("TextButton")
giveEnergyLoopButton.Size = UDim2.new(0, 40, 0, 40)
giveEnergyLoopButton.Position = UDim2.new(0.525, 10, 0, 10)
giveEnergyLoopButton.Text = "Loop"
giveEnergyLoopButton.BackgroundColor3 = Color3.fromRGB(200, 100, 100)
giveEnergyLoopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
giveEnergyLoopButton.Parent = Frame
giveEnergyLoopButton.MouseButton1Click:Connect(function()
giveEnergyLoop = not giveEnergyLoop
giveEnergyLoopButton.Text = giveEnergyLoop and "Stop" or "Loop"
if giveEnergyLoop then
coroutine.wrap(function()
while giveEnergyLoop do
game:GetService("ReplicatedStorage").RemoteEventsFolder.GiveEnergyEvent:FireServer()
task.wait(0.01)
end
end)()
end
end)
-- Convert Dmg Button
local convertDmgButton = Instance.new("TextButton")
convertDmgButton.Size = UDim2.new(0, 110, 0, 40)
convertDmgButton.Position = UDim2.new(0, 10, 0, 60)
convertDmgButton.Text = "Convert Dmg"
convertDmgButton.BackgroundColor3 = Color3.fromRGB(100, 200, 255)
convertDmgButton.TextColor3 = Color3.fromRGB(0, 0, 0)
convertDmgButton.Parent = Frame
convertDmgButton.MouseButton1Click:Connect(function()
game:GetService("ReplicatedStorage").RemoteEventsFolder.DamageConversionEvent:FireServer()
end)
local convertDmgLoopButton = Instance.new("TextButton")
convertDmgLoopButton.Size = UDim2.new(0, 40, 0, 40)
convertDmgLoopButton.Position = UDim2.new(0.525, 10, 0, 60)
convertDmgLoopButton.Text = "Loop"
convertDmgLoopButton.BackgroundColor3 = Color3.fromRGB(100, 150, 255)
convertDmgLoopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
convertDmgLoopButton.Parent = Frame
convertDmgLoopButton.MouseButton1Click:Connect(function()
convertDmgLoop = not convertDmgLoop
convertDmgLoopButton.Text = convertDmgLoop and "Stop" or "Loop"
if convertDmgLoop then
coroutine.wrap(function()
while convertDmgLoop do
game:GetService("ReplicatedStorage").RemoteEventsFolder.DamageConversionEvent:FireServer()
task.wait(0.1)
end
end)()
end
end)
-- Close Button
local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 40, 0, 40)
closeButton.Position = UDim2.new(0.765, 0, 0, 10)
closeButton.Text = "X"
closeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.Parent = Frame
closeButton.MouseButton1Click:Connect(function()
giveEnergyLoop = false
convertDmgLoop = false
ScreenGui:Destroy()
end)
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS






Comments
stop this ai madness