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

Twitter Code Script not its working and not have errors in the output!Why?

Asked by 6 years ago

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?

0
Imagine if someone had autoclicker on.... they would get so many items CUZ U DONT HAVE A DEBOUNCE hiimgoodpack 2009 — 6y
0
Can u say the error? Alec77733 2 — 6y
0
@Alec77733 not have error in output ScripterHalper -10 — 6y
0
What part of it isn't working? Is it not giving the items or is it something else? Viking359 161 — 6y
0
@Viking359 yea not its giving the items and the money ScripterHalper -10 — 6y

Answer this question