What is wrong with the following:
script.Parent.preGame.Unlocks.InputBegan:connect(function(input, processed) if input.UserInputType == Enum.UserInputType.Gamepad1 then if input.KeyCode == Enum.KeyCode.ButtonA then script.Parent.preGame.Unlocks.Selectable = false script.Parent.preGame.startcover.Selectable = false script.Parent.Unlocks.Appearance.Selectable = true script.Parent.Unlocks.Back.Selectable = true script.Parent.Unlocks.Blasters.Selectable = true script.Parent.Unlocks.StarCards.Selectable = true end end end)
I want something to happen when a certain "button" is pressed by the "A" button on a Xbox Controller.