Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a local Kill/Death gui?

Asked by 5 years ago

I'm trying to figure out how to make a gui that locally gives the player information about their kills and death. I'm making it for a war group so I want to incorporate an overall kills for the team they're on as well.

I'm trying not to use the leaderboard (Linked leaderboard) as I want to maintain the realism.
Any help starting off and even anyone able to teach me would be perfect.

0
You will probably need some knowledge on Remote Events and DataStore Fad99 286 — 5y
0
You could use leaderboards. It will make it easier. But you could just Disable it on the Client Using game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) Enomphia 39 — 5y
0
stipo being reatreted mc User#24403 69 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

You mean a separate GUI that just records the kills and deaths a player gets? The easiest way is to set a leaderboard regardless, however have the playerlist invisible in-game then record the kills and deaths on a GUI;

Something along the lines of a local script in a textlabel would work, just rough code but nontheless should work;

Local script in a textlabel:

 repeat wait() until game.Players.LocalPlayer.Character ~= nil
   player = game.Players.LocalPlayer
    kills = player.leaderstats.KOs
    deaths = player.leaderstats.Deaths --change KOs and Deaths to leaderboard values

while true do wait() --very easy and ineffecient loop, but something better could be used
script.Parent.Text = player.leaderstats.STAT.Value --change stat to the leaderboard stat you wanted displayed
end --and that's it.

EDIT: If you want kills and deaths to save you will need to look up datastores. All this GUI will do is display the current leaderboard stats, nothing more.

0
I see that this helps, but it's not exactly what I'm looking for. DatBroDo -6 — 5y
Ad

Answer this question