Hello im trying to make a Twitter Code Script but the script not its working, this its the script:
repeat wait() until game.Players.LocalPlayer.Character --// Variables local TextBox = script.Parent.Parent.TextBox local TextButton = script.Parent local Items = {script.Parent.Parent.ItemsThatGive["Speed Coil"], script.Parent.Parent.ItemsThatGive["Gravity Coil"]} local player = game.Players.LocalPlayer local char = player.Character local codes = script.Parent.Parent.Codes:GetChildren() --// Functions TextButton.MouseButton1Click:connect(function() local SpeedCoil = Items[1]:Clone() local GravityCoil = Items[2]:Clone() for i, CODES in pairs(codes) do if CODES.redeemed.Value == false then if TextBox.Text == (CODES.Value == ("OneMillionCash")) then player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + CODES.CashToGive.Value CODES.redeemed.Value = true wait(1) TextBox.Text = ("Insert The Code Here") elseif TextBox.Text == (CODES.Value == ("FastMan")) then SpeedCoil.Parent = player:WaitForChild("Backpack") CODES.redeemed.Value = true wait(1) TextBox.Text = ("Insert The Code Here") elseif TextBox.Text == (CODES.Value == ("Gravity")) then GravityCoil.Parent = player:WaitForChild("Backpack") CODES.redeemed.Value = true wait(1) TextBox.Text = ("Insert The Code Here") else TextBox.Text = ("Incorrect") wait(1) TextBox.Text = ("Insert The Code Here") end end end end)
Can you pls help me?