So I am making a simple starter fighting game where you can buy new weapons and level up, that isn't the problem. I just can't seem to think up a script that would connect to my leaderstats within my game that actually works???
The script for my leaderstats is below:
- game.Players.PlayerAdded:Connect(function(player)
- local leaderstats = Instance.new("Folder", player)
- leaderstats.Name = "leaderstats"
- local kills = Instance.new("NumberValue", leaderstats)
- kills.Name = "Kills"
- kills.Value = 0
- local deaths = Instance.new("NumberValue", leaderstats)
- deaths.Name = "Deaths"
- deaths.Value = 0
- player.CharacterAdded:Connect(function(character)
local humanoid = character:FindFirstChild("Humanoid")humanoid.Died:Connect(function(died)deaths.Value = deaths.Value + 1local tag = humanoid:FindFirstChild("creator")local killer = tag.Valueif tag and killer thenkiller.leaderstats:FindFirstChild("Kills").Value = killer.leaderstats:FindFirstChild("Kills").Value + 1endend)- end)
- end)
Anyway, thanks for reading this.

4 comments
The intermission time is 20 seconds and the game time is 240 (4 minutes).
I would say, though I can't say as a sure answer, make a NumberValue that counts up every second, and if the kills are a certain amount, and the time is equal to or under the max time you want, that should do it.
Hm, I will try it, thanks for your help.
I still wouldnt mind more ideas. I was thinking more of an, "Get as many kills as you can," i dont really want a certain amount to get to then the whole thing finishes. If i dont get anymore suggestions, i will use yours. Thanks again.