Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. local webHook={}
  2. webHook.__index=webHook
  3. local Http=game:GetService("HttpService")
  4. function webHook:post(config)
  5. local success=pcall(function()
  6. data=Http:JSONEncode(config)
  7. data=Http:JSONEncode(config)
  8. end)
  9. if not success then warn("Cannot convert Webhook URL to JSON!") return end
  10. local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271191308435980288/2Ovqv3oqKYWtEt1mDRRUJ_-2Eh37EU7EpoxBoySbSe_-dpXWC_DCKqr9nD4MYf4Kc9fn",data)
  11. end
  12. oldMouseState=nil
  13. game.ReplicatedStorage.Interaction.MouseState.OnServerEvent:connect(function(player,state)
  14. mouseState=state
  15. end)
  16. game.ReplicatedStorage.Interaction.ClientIsDragging.OnServerEvent:connect(function(player,Second,Third,Fourth,Fifth)
  17. if Second.Name=="Ball" then
  18. if mouseState==true then
  19. if oldMouseState==nil then
  20. if Fourth:FindFirstChild("Ball") then
  21. webHook:post{username="Logger",content=(player.Name.." grabbed item: "..tostring(Fourth.Parent.Name))}
  22. end
  23. end
  24. end
  25. oldMouseState="Not nil!"
  26. if mouseState==false then
  27. webHook:post{username="Logger",content=(player.Name.." stopped grabbing item: "..tostring(Fourth.Parent))}
  28. end
  29. end
  30. end)
  31. -----------------------------------------Join Logger----------------------------------------------------------------------
  32. local webHook={}
  33. webHook.__index=webHook
  34. local Http=game:GetService("HttpService")
  35. function webHook:post(config)
  36. local success=pcall(function()
  37. data=Http:JSONEncode(config)
  38. data=Http:JSONEncode(config)
  39. end)
  40. if not success then warn("Cannot convert Webhook URL to JSON!") return end
  41. local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271223941803147266/2FUjW91mQ4Vp_rkrs-Yy0GzeGmp0IsC-PMZBFqrQpLMRcxb4JThbvix3ZttvtOn1v99b",data)
  42. end
  43. game.Players.PlayerAdded:connect(function(player)
  44. webHook:post{username="Join Logger",content=(player.Name.." (UserId "..player.UserId..") joined "..game.Name)}
  45. end)
  46. -----------------------------------------Banned----------------------------------------------------------------------
  47. local webHook={}
  48. webHook.__index=webHook
  49. local Http=game:GetService("HttpService")
  50. function webHook:post(config)
  51. local success=pcall(function()
  52. data=Http:JSONEncode(config)
  53. data=Http:JSONEncode(config)
  54. end)
  55. if not success then warn("Cannot convert Webhook URL to JSON!") return end
  56. local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271228535379722240/4OMtFQzeaqX4HcdLlfMCkPr_FL1t6YY1uWfTwissU8YZKAqx8dXEj_poTgktim0h8Wsc",data)
  57. end
  58. function game.ReplicatedStorage.Transactions.AddLog.OnServerInvoke(player,Second,Third)
  59. if Second=="Ban" then
  60. webHook:post{username="Ban Logger",content=(player.Name.." has been banned for "..Third)}
  61. end
  62. end
  63. -----------------------------------------Kicked----------------------------------------------------------------------
  64. local webHook={}
  65. webHook.__index=webHook
  66. local Http=game:GetService("HttpService")
  67. function webHook:post(config)
  68. local success=pcall(function()
  69. data=Http:JSONEncode(config)
  70. data=Http:JSONEncode(config)
  71. end)
  72. if not success then warn("Cannot convert Webhook URL to JSON!") return end
  73. local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271228697971785729/J9p34dyrIya95fQVOpDRkr6S8NFRqL5WkZuz8CMTwZqfs9eZqoax19FHk6Mi5oZzNXeu",data)
  74. end
  75. function game.ReplicatedStorage.Transactions.AddLog.OnServerInvoke(player,Second,Third)
  76. if Second=="Kick" then
  77. webHook:post{username="Ban Logger",content=(player.Name.." has been kicked for "..Third)}
  78. end
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement