Hi,
I apologize if this question breaks the rules, tell me if it does. So, I wrote this script, but when I click on the part, nothing happens and no errors show up. What is wrong?
EDIT: when the player clicks, the leaderstat "Value" is supposed to increase.
teapot=script.Parent
function onClicked()
teapot.Transparency=1
teapot.CanCollide=false
onClicked.leaderstats["Value"].Value = onClicked.leaderstats["Value"].Value + 125
end
Thank you!

3 comments
Please provide more information on what the script is doing, and try to provide us with any error's that might help.
Ok, I did
Is this the full script, and is this in a ClickDetector?