None of my values are changing when I click the text button for my passcode. The script that I have for my passcode is below:

script.Parent.MouseButton1Click:Connect(function()
     if game.Players.LocalPlayer.ClickValues.clicksValue.Value > 0 then
          game.Players.LocalPlayer.ClickValues.clicksValue.Value = 0
          game.Players.LocalPlayer.ClickValues.wrongClicks.Value = 
game.Players.LocalPlayer.ClickValues.wrongClicks.Value + 
     elseif game.Players.LocalPlayer.ClickValues.clicksValue = game.Players.LocalPlayer.ClicksValues + 1
end)

I’m aware that I can use a variable but changed it thinking it was the error, I will revert it back

I already checked if the folders and values I was referencing were correct, thanks in advance for solving this. -Cmg

1 comment

0

At line 5, you're trying to add "clicksValue" to something, but you don't have another value after it. Also, at line 6,I think you meant "else" instead of "elseif".