How Would I Make So When A Player Enters The Code,They Will Reiceve A Certain Amount Of Money?
Make a ScreenGui. Insert a TextBox and TextButton. In the button put this script in a local script:
code = "Fahmi is Awesome" --Case sensitive cash = "Cash" --Change to Cash, money, gold (i.e currency name. CASE SENSITIVE) amount = 69 script.Parent.MouseButton1Click:connect(function() if script.Parent.Parent.TextBox.Text == code then game.Players.LocalPlayer.leaderstats[cash].Value = game.Players.LocalPlayer.leaderstats[cash].Value +amount else script.Parent.Parent.TextBox.Text = "Oops, wrong code" wait(1) script.Parent.Parent.TextBox.Text = "" end end)