SHARE
    TWEET
    Hasli4

    RBLX. LeaderBord

    May 12th, 2025
    103
    0
    Never
    Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
    Lua 0.85 KB | None | 0 0
    1. local function onPlayerJoin(player)
    2. local leaderstats = Instance.new("Folder")
    3. leaderstats.Name = 'leaderstats'
    4. leaderstats.Parent = player
    5. local frag = Instance.new("IntValue")
    6. frag.Name = 'Frag'
    7. frag.Value = 0
    8. frag.Parent = leaderstats
    9. local deaths = Instance.new('IntValue')
    10. deaths.Name = 'Deaths'
    11. deaths.Value = 0
    12. deaths.Parent = leaderstats
    13. local killer = Instance.new('StringValue')
    14. killer.Name = 'Killer'
    15. killer.Parent = player
    16. player.CharacterAdded:Connect(function(character)
    17. character:WaitForChild("Humanoid").Died:Connect(function()
    18. player.leaderstats.Deaths.Value = player.leaderstats.Deaths.Value + 1
    19. local killerTag = game.Players:FindFirstChild(player.Killer.Value)
    20. if killerTag then
    21. killerTag.leaderstats.Frag.Value=killerTag.leaderstats.Frag.Value + 1
    22. end
    23. end)
    24. end)
    25. end
    26. game.Players.PlayerAdded:Connect(onPlayerJoin)
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /