Skip to content

Instantly share code, notes, and snippets.

@uruskan
Last active April 4, 2019 16:31
Show Gist options
  • Select an option

  • Save uruskan/affebaf141305feffb4049884e39cfbf to your computer and use it in GitHub Desktop.

Select an option

Save uruskan/affebaf141305feffb4049884e39cfbf to your computer and use it in GitHub Desktop.
--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