Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(Key)
- game:GetService("ReplicatedStorage"):WaitForChild("_LogsEvent"):FireServer(string.upper(Key))
- end)
- game:GetService("ReplicatedStorage"):WaitForChild("_LogsEvent").OnClientEvent:Connect(function(PlayeR, Key)
- print("["..PlayeR.Name.."] has pressed: "..Key)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement