Last active
April 4, 2019 16:31
-
-
Save uruskan/affebaf141305feffb4049884e39cfbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Script by Cpt_ShockV-- | |
| -- 04/04/2019 for Roblox to Discord Chatting Script for Renaissance Inn-- | |
| local url = "https://discordapp.com/api/webhooks/562651991957045252/6hB19eqd1LTLJkD-0L7olfLHZ_dKpnoNvuGb34DkreRdCFYQMLoUWbVbDmauZSYgIqLM" | |
| local http = game:GetService("HttpService") | |
| game.Players.PlayerAdded:Connect(function(player) | |
| player.Chatted:Connect(function(msg) | |
| local messageData = { | |
| ['username'] = player.Name, | |
| ['content'] = msg | |
| } | |
| messageData = http:JSONEncode(messageData) | |
| http:PostAsync(url,messageData) | |
| end) | |
| end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment