Error:
Code:
Correction line 29 is actually Enum.KeyCode.BoundKey
Please note that the value of bound key must be able to be updated on the fly.
Error:
Code:
Correction line 29 is actually Enum.KeyCode.BoundKey
Please note that the value of bound key must be able to be updated on the fly.
What’s the stringvalue’s value? Is it actually “BoundKey”?
BoundKey is the strvalue within the player the value of the string (boundkey) is set by another script.
In this case its C
Would you post the script that changes the value?
How would that script be relevant?
The script that changes the value is just a script that checks inputs and changes a text value in a folder parented to the player.
Try moving your :BindAction() call on line 29 to right before the end of the UpdateKey() function.
In the current script, since :BindAction() is called immediately at initialization, it reads directly from Crouch.Value before you can actually make changes to that value at runtime.
So you’re saying to move line 29 to line 4?
Line 29 to right after line 7, that’s what I meant.
So if im reading this correct I should add it to the UpdateKey function?
Well, yes.
You should have no problem testing it anyways.
It worked thanks for the help!