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

Values not changing for a passcode script?

Asked by 6 years ago

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

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". Gey4Jesus69 2705 — 6y

Answer this question