- What do I want to achieve? Currently, I am attempting to create a game where you can change the color of your character’s highlight to colors of the rainbow with keybinds (currently set as Z, X, C, V, B, and N for testing) to live only on the colored parts that are the same as your highlight.
I have successfully created a script that changes your highlight when you touch one of the color pads and allows you to live on the color that your highlight is when touched.
- What is the issue? Although I have successfully allowed this idea to execute on touch, for whatever reason when I’m using keybinds, the same color as your highlight also kills you. When I change colors with keybinds, it doesn’t seem to ACTUALLY count as changing the color, because the color I was previously on with color from the pad I touched doesn’t kill me when I change to a color other than what it is. My highlight is in ReplicatedStorage.
Example of Keybind Killing but Touchpad Not:
https://streamable.com/dpdbq7
Example of Color Not Changing Back After I Configure it With a Keybind
https://streamable.com/kai13o
Keybind LocalScript inside of StarterGUI
Pad that Changes the Color of Your Highlight (In this image it’s yellow)
The Pad That Kills You if Your Highlight Isn’t the Same Color
There is Only One Highlight
- What solutions have I tried so far? I haven’t really messed too much with the scripts because I simply can’t figure out the reason for it not working with keybinds. The colors are the same, but still end up killing me.
And to summarize the entire issue in short:
The Keybind Changing the Color is being Entirely Ignored Despite Affecting the Same Highlight