Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do I use userinputservice?

1 answer

✓ Accepted answer
local uis = game:GetService("UserInputService")

uis.InputBegan:Connect(function(input,GPE) --GPE refers to gameProcessedEvent
        if uis.KeyCode == Enum.KeyCode.ButtonName then -- Change to the preferred button
          game.Lighting.ClockTime = 0 
      end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.