Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Change The BoolValue with True Or False?

Asked by 3 years ago
Edited 3 years ago

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)

0
also JoSuperMasterKiller 0 — 3y
0
Use TextBox.FocusLost (Use code block next time, its not the hard come on) acediamondn123 147 — 3y
0
tell me if you need the actual code or not acediamondn123 147 — 3y

Answer this question