Hey all!
I’ve been working on a WWE-styled clean game, where if you get a kill, it adds to the leaderboard using leaderstats. It’s been doing well, everyone gets their kills if they kill someone and vise versa.
Now since I’ve been getting back into coding, it’s a little difficult for me to actually figure out stuff on my own, so I’ve came to the DevForum for help.
Is there a way to implement the killstreak of The Strongest Battlegrounds into mine? I’m not saying as in steal all assets and move it over, I’m saying if there is a similar method to do it so I don’t have to use the Toolbox.
Now I’m thinking to do this, you could set an attribute for every player that joins. The attribute changes by 1 when you kill someone and turns to 0 when you die. Just have a LocalScript that keeps track of who you kill, and every time you kill someone it sends a message to the server to update your attribute by 1 and the leaderboard is then set to your attribute number. Every time the server receives a message it checks everyone in the server, and the highest attribute gets the streak. Now the server should be checking for if a player dies, and reset that players attribute number when they do die.
Now the reason I’m doing attributes is because I don’t think LocalScripts handle changing the leaderboard well locally. If they do then change everything to just leaderboard stats. But I’m not sure.
I wasn’t making it towards a leaderboard, but I wanna add an IntValue into every player that joined the server with “KBD” (Kills Before Death) and set the value to automatically be set at 0.
Also, I do like the suggestion about an Attribute into something, I think it’s necessary for the kill streak.
Edit 1: I do have an idea about the Killstreak. I could add it locally to the player, and when that value reaches a certain value or higher, it would fire the server to add a highlight & number on the player. Do you think it would work?