Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Remote = Instance.new("RemoteEvent",owner.Character)
- Remote.Name = "REMOTENAME"
- Remote.OnServerEvent:connect(function(player,key)
- if key == Enum.KeyCode.H then
- end
- end)
- NLS([[
- local Remote = owner.Character:WaitForChild("REMOTENAME")
- local UserInput = game:GetService("UserInputService")
- UserInput.InputBegan:connect(function(key,isTyping)
- if not isTyping then
- Remote:FireServer(key.KeyCode)
- end
- end)
- ]],owner.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement