Tittle says it all. Here's the script:
Script:
game.ReplicatedStorage.HLC_CTRLS.W_Began.OnServerInvoke = function(player) W_KeyDown = true print("Remote function was invoked") end if(W_KeyDown)then print("Variable was changed.") end
The first function prints, but the second doesn't. How can i make it be changed for the entire script?
put the if inside the first function, or define W_KeyDown outside the function