Hey guys! So I have another question is that I have a IntValue LevelingSystem. I have made a rectangular part and putted this script inside of it:
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
plr.LevelingSystem.XP.Value = plr.LevelingSystem.XP.Value + 5
wait(0.1)
end)
This script gives you XP when you click on it. This is a very easy question, but I am not that good at lua so, my question is how to make it so that if you TOUCH it, you will get points.
(BONUS: If you know how can you tell me how I can make a leaderstat that shows my IntValue?
