Hi so I used this twitter code script on my click for coins game (Cube Simulator Beta) But after I put the code in and get the coins when I go to click the cube it brings me back down to the price before I got the cash for the code how do I fix this?
local player = game.Players.LocalPlayer local Codes = script.Parent:WaitForChild("holder"):WaitForChild("Codes"):GetChildren() local CodeText = script.Parent.holder:WaitForChild("EnterCode")
local Cash = player:WaitForChild("leaderstats"):WaitForChild("Cash")
script.Parent.holder:WaitForChild("Confirm").MouseButton1Click:connect(function() for i, v in pairs(Codes) do if CodeText.Text == v.Name then if v.Redeemed.Value == false then Cash.Value = Cash.Value + v.CashToGive.Value v.Redeemed.Value = true end end end end)

1 comment
FORMAT YOUR CODE, reeeee! then we will help