Advertisement
SheeityArtist

mswitchl

Sep 28th, 2018
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local Player = game:service'Players'.localPlayer
  2. local Mouse = Player:GetMouse()
  3. local mainscr = workspace:WaitForChild("mswitchg")
  4. local mdeve = mainscr:WaitForChild("MouseDownEvent")
  5. local mueve = mainscr:WaitForChild("MouseUpEvent")
  6. local kdeve = mainscr:WaitForChild("KeyDownEvent")
  7. local kueve = mainscr:WaitForChild("KeyUpEvent")
  8.  
  9. Mouse.Button1Down:connect(function()
  10. mdeve:FireServer()
  11. end)
  12.  
  13. Mouse.Button1Up:connect(function()
  14. mueve:FireServer()
  15. end)
  16.  
  17. Mouse.KeyDown:connect(function(k)
  18. kdeve:FireServer(k)
  19. end)
  20.  
  21. Mouse.KeyUp:connect(function(k)
  22. kueve:FireServer(k)
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement