I am having trouble with this leaderboard script. When a npc is killed with a linkedsword, you gain experience.
game.Players[tool.Parent.Name].leaderstats.Experience.Value = game.Players[tool.Parent.Name].leaderstats.Experience.Value + 100
Error in output: Players.Player1.Backpack.LinkedSword.experience:1: attempt to index global 'tool' (a nil value)

6 comments
Thank you for the answer, I will learn more before I ask again. I don't, however appreciate the way to were talking to me in the chat.
I don't appreciate the blatant lack of understanding. It's lazy.
I don't think calling a member of your site "Inbred" is an appropriate response to anything. You are also showing a blatant lack of understanding my family.
C'est la vie.
C'est la vie.
à toi aussi