Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local webHook={}
- webHook.__index=webHook
- local Http=game:GetService("HttpService")
- function webHook:post(config)
- local success=pcall(function()
- data=Http:JSONEncode(config)
- data=Http:JSONEncode(config)
- end)
- if not success then warn("Cannot convert Webhook URL to JSON!") return end
- local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271191308435980288/2Ovqv3oqKYWtEt1mDRRUJ_-2Eh37EU7EpoxBoySbSe_-dpXWC_DCKqr9nD4MYf4Kc9fn",data)
- end
- oldMouseState=nil
- game.ReplicatedStorage.Interaction.MouseState.OnServerEvent:connect(function(player,state)
- mouseState=state
- end)
- game.ReplicatedStorage.Interaction.ClientIsDragging.OnServerEvent:connect(function(player,Second,Third,Fourth,Fifth)
- if Second.Name=="Ball" then
- if mouseState==true then
- if oldMouseState==nil then
- if Fourth:FindFirstChild("Ball") then
- webHook:post{username="Logger",content=(player.Name.." grabbed item: "..tostring(Fourth.Parent.Name))}
- end
- end
- end
- oldMouseState="Not nil!"
- if mouseState==false then
- webHook:post{username="Logger",content=(player.Name.." stopped grabbing item: "..tostring(Fourth.Parent))}
- end
- end
- end)
- -----------------------------------------Join Logger----------------------------------------------------------------------
- local webHook={}
- webHook.__index=webHook
- local Http=game:GetService("HttpService")
- function webHook:post(config)
- local success=pcall(function()
- data=Http:JSONEncode(config)
- data=Http:JSONEncode(config)
- end)
- if not success then warn("Cannot convert Webhook URL to JSON!") return end
- local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271223941803147266/2FUjW91mQ4Vp_rkrs-Yy0GzeGmp0IsC-PMZBFqrQpLMRcxb4JThbvix3ZttvtOn1v99b",data)
- end
- game.Players.PlayerAdded:connect(function(player)
- webHook:post{username="Join Logger",content=(player.Name.." (UserId "..player.UserId..") joined "..game.Name)}
- end)
- -----------------------------------------Banned----------------------------------------------------------------------
- local webHook={}
- webHook.__index=webHook
- local Http=game:GetService("HttpService")
- function webHook:post(config)
- local success=pcall(function()
- data=Http:JSONEncode(config)
- data=Http:JSONEncode(config)
- end)
- if not success then warn("Cannot convert Webhook URL to JSON!") return end
- local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271228535379722240/4OMtFQzeaqX4HcdLlfMCkPr_FL1t6YY1uWfTwissU8YZKAqx8dXEj_poTgktim0h8Wsc",data)
- end
- function game.ReplicatedStorage.Transactions.AddLog.OnServerInvoke(player,Second,Third)
- if Second=="Ban" then
- webHook:post{username="Ban Logger",content=(player.Name.." has been banned for "..Third)}
- end
- end
- -----------------------------------------Kicked----------------------------------------------------------------------
- local webHook={}
- webHook.__index=webHook
- local Http=game:GetService("HttpService")
- function webHook:post(config)
- local success=pcall(function()
- data=Http:JSONEncode(config)
- data=Http:JSONEncode(config)
- end)
- if not success then warn("Cannot convert Webhook URL to JSON!") return end
- local webhook=Http:PostAsync("https://discordapp.com/api/webhooks/271228697971785729/J9p34dyrIya95fQVOpDRkr6S8NFRqL5WkZuz8CMTwZqfs9eZqoax19FHk6Mi5oZzNXeu",data)
- end
- function game.ReplicatedStorage.Transactions.AddLog.OnServerInvoke(player,Second,Third)
- if Second=="Kick" then
- webHook:post{username="Ban Logger",content=(player.Name.." has been kicked for "..Third)}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement