Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Mouse = Player:GetMouse()
  3.  
  4.  
  5. Mouse.KeyDown:connect(function(Key)
  6.     game:GetService("ReplicatedStorage"):WaitForChild("_LogsEvent"):FireServer(string.upper(Key))
  7. end)
  8.  
  9.  
  10. game:GetService("ReplicatedStorage"):WaitForChild("_LogsEvent").OnClientEvent:Connect(function(PlayeR, Key)
  11.     print("["..PlayeR.Name.."] has pressed: "..Key)
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement