--new- | Chainsaw Man- Devil-s Heart Script Gui ...

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

-- Transform ability (Chainsaw Man form) transformRemote.OnServerEvent:Connect(function(player) local char = player.Character or player.CharacterAdded:Wait() local humanoid = char:FindFirstChild("Humanoid") if humanoid then -- Apply Chainsaw Man visuals + speed boost humanoid.WalkSpeed = 24 -- Add chainsaw arms (model swap example) task.wait(10) humanoid.WalkSpeed = 16 -- revert after 10 sec end addPower(player, -5) -- cost power end)

bangBtn.MouseButton1Click:Connect(function() bangRemote:FireServer() end) --NEW- Chainsaw Man- Devil-s Heart Script GUI ...

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)

controlBtn.MouseButton1Click:Connect(function() controlRemote:FireServer() end) local function updateUI() heartCountLabel

local direction = root.CFrame.LookVector * 50 local raycastParams = RaycastParams.new() raycastParams.FilterDescendantsInstances = {char} raycastParams.FilterType = Enum.RaycastFilterType.Blacklist

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" true) end addPower(player

local result = workspace:Raycast(root.Position, direction, raycastParams) if result and result.Instance.Parent:FindFirstChild("Humanoid") then result.Instance.Parent.Humanoid:TakeDamage(40) end addPower(player, -10) end)

-- 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"

-- 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")

hearts:GetPropertyChangedSignal("Value"):Connect(updateUI) power:GetPropertyChangedSignal("Value"):Connect(updateUI) updateUI()