TL:DR How do I get it to run code when the player presses a key?
What I'm trying to do right now is figure out how key detection works. I'm trying to figure out how to make it so when I press a key it runs a part of code/an entire script. Example:
if (game:GetServices('UserInputService:IsKeyDown') == true) then print("boi") end
This bit of code gives me an error that says "GetServices is not a valid member of DataModel."

1 comment
because iyou need to remove the s it is game:GetService