Game:GetService() not working as intended

For some unknow reason the game:GetService()
does not work here is a screenshot of the code in a local script and in a normal script

LocalScript :

NormalScript :

1 Like

You have to put the service name in quotation marks like so:

local UserInputService = game:GetService("UserInputService")
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.