my Script Line Here Cant Turn The BoolValue To True Also Cant Change Cant Specify The box's text
button.MouseButton1Click:Connect(function(plr) if box.Text == code and redeedmed == false then redeedmed = true button.Text = "Success" game.Players.LocalPlayer.XP.Value = game.Players.LocalPlayer.XP.Value + 100 game.Players.LocalPlayer.Gold.Value = game.Players.LocalPlayer.Gold.Value + 100 plr.Weapons.AlphaStick = true plr.Armors.AlphaBandage = true
Full Script:
local button = script.Parent.Parent.Parent.MainFrame.RedeemButton local box = button.Parent.Parent.MainFrame.CodeBox local code = "alpha" local redeedmed = false
button.MouseButton1Click:Connect(function(plr) if box.Text == code and redeedmed == false then redeedmed = true button.Text = "Success" game.Players.LocalPlayer.XP.Value = game.Players.LocalPlayer.XP.Value + 100 game.Players.LocalPlayer.Gold.Value = game.Players.LocalPlayer.Gold.Value + 100 plr.Weapons.AlphaStick = true plr.Armors.AlphaBandage = true wait(2) button.Text = "Submit" return true else button.Text = "Invalid" wait(2) button.Text = "Submit" return false end end)