Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local remote = script.Parent:WaitForChild("RemoteEvent")
- local userinputservice = game:GetService("UserInputService")
- userinputservice.InputBegan:Connect(function(Input,Typing)
- if not Typing then
- if Input.KeyCode == Enum.KeyCode.R then
- remote:FireServer()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement