I have this block of code, however my onTouched doesn't function.
local Finish = MapWin.Finish
Finish.onTouched:connect(function(player)
player.leaderstats.Score.Value = player.leaderstats.Score.Value +1
Finish:Destroy()
As you can see I want the player that first touched Finish to get +1 score. Afterwards I want the Finish destroyed. (In order to keep the player from scoring repeatedly)
The error log I receive is: - leaderstats is not a valid member of Model
