Group = 32823059 local HTTPService = game:GetService('HttpService') local WebhookURL = "https://hooks.hyra.io/api/webhooks/1054188862743785573/DEAZhD9dxM2JTu6qix9JQy3pk7cmff-NCrGncj2XxCPFIfjTQcTWVJ6gmvRpypRq4lPS" game.Players.PlayerAdded:Connect(function( plr ) if plr:IsInGroup( Group ) then plr:Kick( "Reason: YPL-Youth Premier League has been blacklisted for attempting to steal our tools." ) wait(3) local gameid = game.ReplicatedStorage.ServerID.Value local data = { ["embeds"] = {{ ["author"] = { ["name"] = plr.Name, ["icon_url"] = "https://www.roblox.com/headshot-thumbnail/image?userId="..tostring(plr.UserId).."&width=150&height=150&format=png", }, ["description"] = "Player Kicked from Game - Not In Group", ["color"] = tonumber(0x880808), ["fields"] = { { ["name"]= "Player Profile:", ["value"]= "https://roblox.com/users/"..tostring(plr.UserId).."/profile" }, { ["name"]= "Display Name:", ["value"]= plr.DisplayName }, { ["name"]= "Account Age:", ["value"]= plr.AccountAge .."days" }, { ["name"]= "Player Region:", ["value"]= tostring(game:GetService('LocalizationService'):GetCountryRegionForPlayerAsync(plr)) .. " ( :flag_" .. string.lower(tostring(game:GetService('LocalizationService'):GetCountryRegionForPlayerAsync(plr))) .. ": )" }, { ["name"]= "Game Name:", ["value"]= game:GetService('MarketplaceService'):GetProductInfo(game.PlaceId).Name }, { ["name"]= "Server ID:", ["value"]= gameid }, } }}, } local finaldata = HTTPService:JSONEncode(data) HTTPService:PostAsync(WebhookURL, finaldata) end end)