I have this script:
if game:GetService("UserInputService").GamepadEnabled then print("gamepad enabled") local instructions = player:WaitForChild("PlayerGui").Instructions.text print("found instructions") instructions.Visible = true wait(30) instructions.Visible = false end
Everything before the script works perfectly fine. I have the exact same if game:GetService("UserInputService").GamepadEnabled then
in another script in my game thats works fine. It is in a server script in the ServerScriptService. The script itself has to do with gamepass's.
Thank you in advance for any help.
It should be in a local script and be placed in StarterGui, StarterPack or CharacterScripts. There is no need for it to be in a server script but if you want you can use a remoteevent to communicate to the server script.