I Am Currently Making A Clicker Game. (I feel embarrassed saying that) But, the script im using to click works perfectly in studio, but malfunctions in the actual roblox player? Here's the script :
plr = script.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
plr.leaderstats.Cash.Value = plr.leaderstats.Cash.Value + 1
wait()
end)
I'm really bad at scripting right now, im a beginner soo... Hoping somebody could help me out?

1 comment
Why do you have a wait at the end? Does absolutely nothing to have a wait there.