Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game.Players
- local LocalPlayer = Players.LocalPlayer
- local Frame = script.Parent
- game.Chat.BubbleChatEnabled = false -- Disable the NEW chat bubbles
- local function updateLogs(Player, String)
- task.spawn(function()
- if (Player ~= LocalPlayer) then
- game.StarterGui:SetCore("SendNotification", {
- Title = Player.Name,
- Text = String,
- Icon = Players:GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.AvatarThumbnail, Enum.ThumbnailSize.Size420x420),
- Duration = 7
- })
- game.Chat:Chat(Player.Character.HumanoidRootPart, "["..Player.DisplayName.."]: "..String, Enum.ChatColor.White)
- end
- end)
- end
- for _, Player in pairs(Players:GetPlayers()) do
- Player.Chatted:Connect(function(String)
- updateLogs(Player, String)
- end)
- end
- Players.PlayerAdded:Connect(function(Player)
- Player.Chatted:Connect(function(String)
- updateLogs(Player, String)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement