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

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)

-- 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) --NEW- Chainsaw Man- Devil-s Heart Script GUI ...

-- 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" local result = workspace:Raycast(root

hearts:GetPropertyChangedSignal("Value"):Connect(updateUI) power:GetPropertyChangedSignal("Value"):Connect(updateUI) updateUI() local result = workspace:Raycast(root.Position

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

-- Bang! ability (high damage) bangRemote.OnServerEvent:Connect(function(player) -- Raycast forward, deal damage local char = player.Character if not char then return end local root = char:FindFirstChild("HumanoidRootPart") if not root then return end