Points To Leaderstats

I am making a game, but I just got like a massive shutdown a bit and can’t remember much scripting right now. LOL.


I’m trying to make a script that on kill, +1 added to kill, +2 added to Points, and TopPoints changing to whatever Points is, and the person that dies gets points removen, but when he died if the points he had were the most points he ever had, it will save in TopPoints.

Regards,
Endless

Could you tell me what weapon you’re using to add kills?

Why did you define Currency 3 times,

you defined local Currency 3 times, I’m sure it still works but surely you could make it better

Swords, because its gonna be a sword fight game.

I was too lazy whilst writing the script so I copy pasted…

Would this work?

never mind it did not work… RIP for me, also I’m just a beginner scripter.

You’re using the deprecated “:connect” instead of the non deprecated “:Connect” i still kinda make that mistake nowadays but you should know that no capitalization can break it

also try putting the “function(player)” inside the first “:Connect()”

sorry if i did bad at explaining this but this is the best way i can explain it

Yes that worked thank you, for the help, your explanation was perfectly fine, haha

no problem, by the way its just basic knowledge to learn how to avoid the deprecated connect

I will keep that in mind next time, thank you!

1 Like