Universal Script 📌
4.5k Views
106 Executions

Fe death counter

Universal Script 📌
Jinxx0g
Jinxx0gPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

It gives you a tool N then you have to press or click the player to death counter, that's all!

Updates

  1. Script edited: Create script

View Raw
local Tool = Instance.new("Tool")
Tool.Name = "Death Counter"
Tool.RequiresHandle = false
Tool.Parent = game.Players.LocalPlayer.Backpack

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://204062532"

Tool.Activated:Connect(function()
    local player = game.Players.LocalPlayer
    local character = player.Character
    if not character then return end
    
    local mouse = player:GetMouse()
    local target = mouse.Target
    
    if target and target.Parent then
        local targetPlayer = game.Players:GetPlayerFromCharacter(target.Parent)
        if targetPlayer and targetPlayer.Character then
            local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
            local targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
            
            if humanoidRootPart and targetHRP then
                local humanoid = character:FindFirstChildOfClass("Humanoid")
                if humanoid then
                    local animator = humanoid:FindFirstChildOfClass("Animator")
                    if not animator then
                        animator = Instance.new("Animator")
                        animator.Parent = humanoid
                    end
                    
                    local track = humanoid:LoadAnimation(animation)
                    
                    local runService = game:GetService("RunService")
                    local followConnection
                    followConnection = runService.Heartbeat:Connect(function()
                        if targetHRP and humanoidRootPart then
                            humanoidRootPart.CFrame = targetHRP.CFrame * CFrame.new(0, 0, 3)
                        end
                    end)


Comments

2
Log in to join the conversation. Login
romaegriscin's profile picture
romaegriscin2 years ago(edited)

Good;)

2
Jinxx0g's profile picture
Jinxx0gUploader2 years ago(edited)

:(

1