loadstring(game:HttpGet("https://darahub.pages.dev/Module/Library/GUI/NotifyToast.lua"))() local HttpService = game:GetService("HttpService") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local function getUserAvatarThumbnail(userId, size) size = size or 150 local thumbnailUrl = string.format( "https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=%d&size=%dx%d&format=Png&isCircular=false", userId, size, size ) local request = http_request or (syn and syn.request) or (http and http.request) or request local response = request({ Url = thumbnailUrl, Method = "GET" }) if response and response.StatusCode == 200 then local data = HttpService:JSONDecode(response.Body) if data and data.data and #data.data > 0 then return data.data[1].imageUrl end end return "rbxasset://textures/ui/ui_logo.png" end local function isFriend(userId) local success, response = pcall(function() local request = http_request or (syn and syn.request) or (http and http.request) or request local result = request({ Url = "https://friends.roblox.com/v1/users/" .. LocalPlayer.UserId .. "/friends", Method = "GET" }) if result and result.StatusCode == 200 then local data = HttpService:JSONDecode(result.Body) for _, friend in pairs(data.data) do if friend.id == userId then return true end end end return false end) return success and response or false end Players.PlayerRemoving:Connect(function(player) local displayName = player.DisplayName local userId = player.UserId if isFriend(userId) then task.spawn(function() local avatarIconUrl = getUserAvatarThumbnail(userId, 150) NotifyToast({ title = displayName .. " Left this server", content = "", icon = avatarIconUrl, iconCornerRadius = true, duration = 5 }) end) end end)