Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService")
- local holdingKey = false
- local toggleKey = Enum.KeyCode.F6
- local function HoldKey()
- end
- local function ReleaseKey()
- end
- uis.InputBegan:Connect(function(input)
- if input.KeyCode == toggleKey then
- holdingKey = not holdingKey
- if holdingKey then
- HoldKey()
- else
- ReleaseKey()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement