--new- Chainsaw Man- Devil-s Heart Script Gui ... Apr 2026

local function updateUI() heartCountLabel.Text = "❤️ Devil Hearts: " .. hearts.Value powerLabel.Text = "⚡ Power: " .. power.Value end

if nearest then local targetHumanoid = nearest.Character.Humanoid targetHumanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false) targetHumanoid:SetStateEnabled(Enum.HumanoidStateType.Moving, false) task.wait(3) targetHumanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true) targetHumanoid:SetStateEnabled(Enum.HumanoidStateType.Moving, true) end addPower(player, -15) end)

-- Remote Events (create these in ReplicatedStorage) local remotes = game:GetService("ReplicatedStorage"):WaitForChild("DevilRemotes") local transformRemote = remotes:WaitForChild("Transform") local bangRemote = remotes:WaitForChild("Bang") local controlRemote = remotes:WaitForChild("Control")

-- Stats labels local heartCountLabel = mainFrame.HeartCount local powerLabel = mainFrame.PowerLabel --NEW- Chainsaw Man- Devil-s Heart Script GUI ...

local transformRemote = Instance.new("RemoteEvent", remotes) transformRemote.Name = "Transform" local bangRemote = Instance.new("RemoteEvent", remotes) bangRemote.Name = "Bang" local controlRemote = Instance.new("RemoteEvent", remotes) controlRemote.Name = "Control"

controlBtn.MouseButton1Click:Connect(function() controlRemote:FireServer() end)

for _, other in pairs(game.Players:GetPlayers()) do if other ~= player and other.Character and other.Character:FindFirstChild("HumanoidRootPart") then local dist = (root.Position - other.Character.HumanoidRootPart.Position).Magnitude if dist < minDist then minDist = dist nearest = other end end end local function updateUI() heartCountLabel

-- Buttons local chainsawBtn = mainFrame.ChainsawButton local bangBtn = mainFrame.BangButton local controlBtn = mainFrame.ControlButton

-- Control ability (stun + temporary ally) controlRemote.OnServerEvent:Connect(function(player, targetPlayer) -- Simplified: find nearest enemy local char = player.Character if not char then return end local root = char.HumanoidRootPart local nearest = nil local minDist = 20

-- Button actions (send to server) chainsawBtn.MouseButton1Click:Connect(function() transformRemote:FireServer() end) true) end addPower(player

-- Update stats from server (via BindToEvent) local stats = player:WaitForChild("leaderstats") -- create IntValues here local hearts = stats:WaitForChild("DevilHearts") local power = stats:WaitForChild("Power")

-- Optional: toggle GUI visibility (press 'G') game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.G then mainFrame.Visible = not mainFrame.Visible end end) -- ServerScriptService.DevilAbilities local replicatedStorage = game:GetService("ReplicatedStorage") local remotes = Instance.new("Folder", replicatedStorage) remotes.Name = "DevilRemotes"