Advertisement
EmeraldIT

Untitled

Jul 31st, 2020
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. local Player = owner
  2. local Mouse = nil
  3. local Ev = Player:FindFirstChild("MouseEvent_Phoe") or Instance.new("RemoteEvent", Player)
  4. Ev.Name = "MouseEvent_Phoe"
  5. local MouseStuff = [==[
  6. local player = game.Players.LocalPlayer
  7. local ev = player:WaitForChild("MouseEvent_Phoe")
  8. local mo = player:GetMouse
  9. local up = false
  10. local down = false
  11. local up2 = false
  12. local down2 = false
  13. local key = nil
  14. local hold = false
  15.  
  16. mo.Move:Connect(function()
  17. ev:FireServer({Pos = mouse.Hit.p, Hit = mouse.Hit, Mdown = down, Mup = up, Mdown2 = down2, Mup2 = up2, orientation = mouse.Origin, X = mouse.X, Y = mouse.Y, Key = key, Hold = hold})
  18. mo.Idle:Connect(function()
  19. ev:FireServer({Pos = mouse.Hit.p, Hit = mouse.Hit, Mdown = down, Mup = up, Mdown2 = down2, Mup2 = up2, orientation = mouse.Origin, X = mouse.X, Y = mouse.Y, Key = key, Hold = hold})
  20. mo.Button1Down:Connect(function()
  21. up = false
  22. down = true
  23. end)
  24. mo.Button2Down:Connect(function()
  25. up2 = false
  26. down2 = true
  27. end)
  28. mo.Button1Up:Connect(function()
  29. up = true
  30. down = false
  31. end)
  32. mo.Button2Up:Connect(function()
  33. up2 = true
  34. down2 = false
  35. end)
  36. mo.KeyDown:Connect(function(k)
  37. key = k
  38. hold = true
  39. end)
  40. mo.KeyUp:Connect(function()
  41. key = nil
  42. hold = false
  43. end)
  44. ]==]
  45.  
  46. NLS(MouseStuff, Player.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement