-- Get services local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Player = Players.LocalPlayer -- Remote reference local DamageRemote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Damage") -- Create GUI local screenGui = Instance.new("ScreenGui") screenGui.Name = "DamageGui" screenGui.ResetOnSpawn = false -- WON'T disappear on death screenGui.Parent = Player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 300, 0, 250) frame.Position = UDim2.new(0.5, -150, 0.5, -125) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 0 frame.Parent = screenGui -- Make frame draggable frame.Active = true frame.Draggable = true -- Title label local titleLabel = Instance.new("TextLabel") titleLabel.Text = "Electron Central" titleLabel.Size = UDim2.new(1, 0, 0, 40) titleLabel.Position = UDim2.new(0, 0, 0, 0) titleLabel.BackgroundColor3 = Color3.fromRGB(45, 45, 45) titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.Font = Enum.Font.SourceSansBold titleLabel.TextSize = 22 titleLabel.Parent = frame -- Input for class local classBox = Instance.new("TextBox") classBox.PlaceholderText = "Enter Class (e.g., Vortex)" classBox.Size = UDim2.new(1, -20, 0, 35) classBox.Position = UDim2.new(0, 10, 0, 50) classBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40) classBox.TextColor3 = Color3.fromRGB(255, 255, 255) classBox.TextSize = 18 classBox.ClearTextOnFocus = false classBox.Parent = frame -- Input for boss name local bossBox = Instance.new("TextBox") bossBox.PlaceholderText = "Enter Boss Name (e.g., Percolalpha)" bossBox.Size = UDim2.new(1, -20, 0, 35) bossBox.Position = UDim2.new(0, 10, 0, 95) bossBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40) bossBox.TextColor3 = Color3.fromRGB(255, 255, 255) bossBox.TextSize = 18 bossBox.ClearTextOnFocus = false bossBox.Parent = frame -- Start button local startButton = Instance.new("TextButton") startButton.Text = "Start" startButton.Size = UDim2.new(1, -20, 0, 35) startButton.Position = UDim2.new(0, 10, 0, 140) startButton.BackgroundColor3 = Color3.fromRGB(60, 180, 75) startButton.TextColor3 = Color3.fromRGB(255, 255, 255) startButton.TextSize = 18 startButton.Parent = frame -- Stop button local stopButton = Instance.new("TextButton") stopButton.Text = "Stop" stopButton.Size = UDim2.new(1, -20, 0, 35) stopButton.Position = UDim2.new(0, 10, 0, 185) stopButton.BackgroundColor3 = Color3.fromRGB(220, 50, 50) stopButton.TextColor3 = Color3.fromRGB(255, 255, 255) stopButton.TextSize = 18 stopButton.Parent = frame -- Control variable local running = false -- Start button logic startButton.MouseButton1Click:Connect(function() if running then return end running = true local className = classBox.Text local bossName = bossBox.Text if className == "" or bossName == "" then warn("Please enter both class and boss names.") running = false return end -- Get boss from workspace and damage local boss local humanoid local success, err = pcall(function() boss = workspace:WaitForChild("Characters"):WaitForChild("Enemies"):WaitForChild(bossName, 5) humanoid = boss:WaitForChild("Humanoid", 5) end) if not success or not boss or not humanoid then warn("Could not find boss or humanoid: " .. (err or "unknown error")) running = false return end local args = { humanoid, className, {} } -- Damage loop task.spawn(function() while running and humanoid and humanoid.Health > 0 do DamageRemote:FireServer(unpack(args)) task.wait(0.01) end end) end) -- Stop button logic stopButton.MouseButton1Click:Connect(function() running = false end)