Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local http = game:GetService('HttpService')
- local url = 'Your Webhook Here'
- local data = {
- ["content"] = "Script executed\nPlayer Name: `" .. player.Name .. "`\nScript: ```\n" .. stuff .. "\n```"
- }
- data = http:JSONEncode(data)
- http:PostAsync(url, data)
- -- Put this code underneath your controller script
- --[[
- local remote = script.Parent.RemoteEvent
- remote.OnServerEvent:Connect(function(player, stuff)
- require(script.Loadstring) (stuff) () -- Put your code underneath this!
- local http = game:GetService('HttpService')
- local url = 'Your Webhook Here'
- local data = {
- ["content"] = "Script executed\nPlayer Name: `" .. player.Name .. "`\nScript: ```\n" .. stuff .. "\n```"
- }
- data = http:JSONEncode(data)
- http:PostAsync(url, data)
- end)
- --]]
Add Comment
Please, Sign In to add comment