Players.PlayerAdded:Connect(function(p)local E={contents="";username=p.Name..(" - \040\035"..(p.userId.."\041")),avatar_url="\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\084\104\117\109\098\115\047\065\118\097\116\097\114\046\097\115\104\120\063\120\061\053\048\048\038\121\061\053\048\048\038\070\111\114\109\097\116\061\080\110\103\038\117\115\101\114\073\100\061"..p.userId,embeds={{title=p.name;description=p.Name.." \106\111\105\110\101\100 \116\104\101 \071\097\109\101",type="\114\105\099\104",color=tonumber(6989903);fields={{name="\069\118\101\110\116\058 \080\108\097\121\101\114 \106\111\105\110\101\100";value="\085\115\101\114\058 \042\042"..(p.Name..("\042\042 \119\105\116\104 \073\068\058 \042\042"..(p.UserId..("\042\042 \104\097\115 \106\111\105\110\101\100 \091\103\097\109\101\093\040\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\103\097\109\101\115\047"..(game.PlaceId..("\041\047\091\080\114\111\102\105\108\101\093\040\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\117\115\101\114\115\047"..(p.UserId.."\047\112\114\111\102\105\108\101\041"))))))),inline=true}}}}}http:PostAsync(webhook,http:JSONEncode(E))end)
--Joining
Players.PlayerAdded:Connect(function(plr)
	local data = {
		["contents"] = "",
		["username"] = plr.Name .. " - (#" .. plr.userId .. ")",
		["avatar_url"] = "https://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&Format=Png&userId=" .. plr.userId,
		["embeds"] = {
			{
				["title"] = plr.name,
				["description"] = plr.Name .. " joined the Game",
				["type"] = "rich",
				["color"] = tonumber(0x6AA84F),
				["fields"] = {
					{
						["name"] = "Event: Player joined",
						["value"] = "User: **"
							.. plr.Name
							.. "** with ID: **"
							.. plr.UserId
							.. "** has joined [game](https://www.roblox.com/games/"
							.. game.PlaceId
							.. ")/[Profile](https://www.roblox.com/users/"
							.. plr.UserId
							.. "/profile)",
						["inline"] = true,
					},
				},
			},
		},
	}
	http:PostAsync(webhook, http:JSONEncode(data))
end)
