-- // credits: me -- // custom ui modded from walkspeed template to change classic sword values local p = game.Players.LocalPlayer local bp = p:WaitForChild("Backpack") local char = p.Character or p.CharacterAdded:Wait() local mult = 1000 -- default box value local on = true -- ui creation stuff (made it match the black/gray layout) local gui = Instance.new("ScreenGui") gui.Name = "cool_amp_gui" gui.ResetOnSpawn = false gui.Parent = p:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 220, 0, 160) frame.Position = UDim2.new(0.4, 0, 0.4, 0) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 0 frame.Active = true frame.Draggable = true frame.Parent = gui local title = Instance.new("TextLabel") title.Size = UDim2.new(0, 140, 0, 30) title.Position = UDim2.new(0, 10, 0, 0) title.BackgroundTransparency = 1 title.Text = "Damage Amplifier" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextSize = 14 title.Font = Enum.Font.SourceSansBold title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = frame local x_btn = Instance.new("TextButton") x_btn.Size = UDim2.new(0, 30, 0, 30) x_btn.Position = UDim2.new(1, -30, 0, 0) x_btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) x_btn.Text = "X" x_btn.TextColor3 = Color3.fromRGB(255, 255, 255) x_btn.Font = Enum.Font.SourceSansBold x_btn.Parent = frame local min_btn = Instance.new("TextButton") min_btn.Size = UDim2.new(0, 30, 0, 30) min_btn.Position = UDim2.new(1, -65, 0, 0) min_btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) min_btn.Text = "-" min_btn.TextColor3 = Color3.fromRGB(255, 255, 255) min_btn.Font = Enum.Font.SourceSansBold min_btn.Parent = frame local content = Instance.new("Frame") content.Size = UDim2.new(1, 0, 1, -30) content.Position = UDim2.new(0, 0, 0, 30) content.BackgroundTransparency = 1 content.Parent = frame local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(0, 200, 0, 35) toggleBtn.Position = UDim2.new(0, 10, 0, 10) toggleBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) toggleBtn.Text = "Disable" toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) toggleBtn.Font = Enum.Font.SourceSansBold toggleBtn.Parent = content local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(0, 200, 0, 20) lbl.Position = UDim2.new(0, 10, 0, 55) lbl.BackgroundTransparency = 1 lbl.Text = "Set Multiplier (1-10000):" lbl.TextColor3 = Color3.fromRGB(200, 200, 200) lbl.TextSize = 12 lbl.Parent = content local box = Instance.new("TextBox") box.Size = UDim2.new(0, 200, 0, 30) box.Position = UDim2.new(0, 10, 0, 80) box.BackgroundColor3 = Color3.fromRGB(40, 40, 40) box.Text = "1000" box.TextColor3 = Color3.fromRGB(255, 255, 255) box.Font = Enum.Font.Code box.Parent = content -- // clicks and stuff x_btn.MouseButton1Click:Connect(function() gui:Destroy() end) min_btn.MouseButton1Click:Connect(function() content.Visible = not content.Visible frame.Size = content.Visible and UDim2.new(0, 220, 0, 160) or UDim2.new(0, 220, 0, 30) end) toggleBtn.MouseButton1Click:Connect(function() on = not on toggleBtn.Text = on and "Disable" or "Enable" toggleBtn.BackgroundColor3 = on and Color3.fromRGB(40, 40, 40) or Color3.fromRGB(70, 35, 35) end) box.FocusLost:Connect(function() local n = tonumber(box.Text) if n then mult = math.clamp(n, 1, 10000) box.Text = tostring(mult) else box.Text = tostring(mult) -- put old value back if they typed letters end end) -- // continuous tool monitoring loop task.spawn(function() while true do task.wait(0.3) -- slightly faster check speed if on then -- loop through inventory for _, v in ipairs(bp:GetChildren()) do if v:IsA("Tool") and (v:FindFirstChild("SwordScript") or v:FindFirstChild("Slash")) then local d = v:FindFirstChild("Damage") or v:FindFirstChild("BaseDamage") if d then d.Value = mult end end end -- loop through held weapon local h = char:FindFirstChildOfClass("Tool") if h and (h:FindFirstChild("SwordScript") or h:FindFirstChild("Slash")) then local d = h:FindFirstChild("Damage") or h:FindFirstChild("BaseDamage") if d then d.Value = mult end end end end end) print("Gui successfully injected.")