function die() if game.Players.LocalPlayer.leadstats.Money.Value = 10 then print ("keem") end script.Parent.MouseButton1Down:connect(die)
Output: Players.Player1.PlayerGui.ScreenGui.TextButton.LocalScript:2: 'then' expected near '='
You forgot the end. Also, you have to use "==" on if statements. Using a "=" will make the code think that it's supposed to set a value.
Also, learn how to organize your code, it makes it easy to read, and harder to get lost. See this article:
http://wiki.roblox.com/index.php?title=Writing_Clean_Code
function die() if game.Players.LocalPlayer.leadstats.Money.Value == 10 then print ("keem") end end script.Parent.MouseButton1Down:connect(die)