hey, so im using the ROBLOX FE gun model kit and i’m just wondering how i can make a kill and leaderboard system with it. ive already tried to do it myself and ive failed so im going here for help
1 Like
BadDad2004
(BadDad2004)
August 20, 2023, 10:14am
#2
Hi, it’s been covered before:
An easy way to do this is to add a tag to the player when a weapon hits them and then to read the tag when they die and award points. Obviously if a player is hit by multiple other players the last tag found will be applied.
To do this, in ServerScriptService add a script with the following:
local Players = game:GetService("Players")
Players.PlayerAdded:connect(function(player)
-- SETUP PLAYER STATS
local folder = Instance.new("Folder", player)
folder.Name = "leaderstats"
local PlayerKills …
1 Like