Advertisement
jailbreakscrip

Player join script sends discord message

Dec 1st, 2021 (edited)
837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local httpservice = game:GetService(“HttpsService”)
  2. local url =
  3.  
  4. game.Players.PlayerAdded:Connect(function(player)
  5.   local data = (
  6.        [‘embeds’] = {(
  7.                [‘title’] = player.Name,
  8.                [‘description’] = player.Name..”Has joined the game: ”—-Put the game name after the colone so no confusion—-
  9.  })
  10.  }
  11.  local data_completed = httpservice:JSONEncode(data)
  12.  httpservice:PostAcync(url, data_completed)
  13. (end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement