I'm trying to rework my chat a bit, and it's giving me a strange error. It tells me that Value is not a valid member, but it is and it is defined by that earlier
InputService.InputBegan:connect(function(Input, gameProcessed) if Input.UserInputType == Enum.UserInputType.Keyboard then if Input.KeyCode == Enum.KeyCode.Slash and Focused.Value == false then --this line Button.BackgroundTransparency = 0.5 Button:CaptureFocus() Focused.Value = true
If you need extra help I can provide
There was an issue I had where I couldn't reference a value via a local script. Here's what I did to fix it, I made sure that when I'm defining the variable, I used :WaitForChild(). In this case, you'd use :WaitForChild(), like so:
Focused = script.Parent:WaitForChild("Focused")
I hope this helps.
Ocula