Answered by
5 years ago Edited 5 years ago
Well it can be this lines
1 | Players.leaderstats.Kills.Value = Players.leaderstats.Kills.Value |
because the value of your kills is equal to your number of kills
so let's edit it
02 | local This = script.Parent |
03 | This.Touched:Connect( function (Characters) |
04 | local Players = game.Players:GetPlayerFromCharacter(Characters.Parent) |
05 | local Aye = Characters.Parent:FindFirstChild( "Humanoid" ) |
08 | Players.leaderstats.Kills.Value = Players.leaderstats.Kills.Value + 1 |
This is the problem.
So the kills of the player is equal to the kills of the player so if you want to add the kills for the player just add
1 | Players.leaderstats.Kills.Value = Players.leaderstats.Kills.Value + 1 |
So if the kills of the one player is 25 and the function call, the kills of that player will be added by 1. So if you want the player touched once the part use debounce. And you can replace 1 to any number of kills that you want to add in the player's kills.
WARNING:Use only the script above