I would like to know how to save player's KO's and WO's in the leaderboards so that it appears the next time they come?
Thank you!
Do you know how to make the leaderboard? Do you know how your leaderboard works? If so then this should work.
I will give you a simple .Touched script that you can play around and soon put it into a Gui or maybe even a .Chatted format. Whatever you'd like.
function OnTouchSave(plr) -- Plr is the part that hit the brick. I named it plr (short for player) knowing it is for players only. if plr.Parent:findFirstChild("Humanoid") ~= nil then Player = game.Players:GetPlayerFromCharacter(plr.Parent) Player:WaitForDataReady() if Player.leaderstats.KOs ~= 0 then -- So you don't save a nil number. That would be stupid. Player:SaveNumber("KOs", Player.leaderstats.KOs.Value) end end end script.Parent.Touched:connect(OnTouchSave)