Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SendChat(message)
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
- end
- local Players = game.Players:GetPlayers() -- Gets all the Players
- if #Players > 1 then -- if there is more than one player in the game then
- table.remove(Players,1) -- Removes the first one from the table (you)
- end
- local RandomPlayer = Players[math.random(1, #Players)] -- Picks a random Player
- local Compliments = loadstring(game:HttpGet("https://pastebin.com/raw/8yiWALzN",true))() -- Gets the table from the pastebin
- local RandomCompliment = Compliments[math.random(1,#Compliments)] -- Picks a random Compliment
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(RandomPlayer.Name..", "..RandomCompliment,"All") -- Chats it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement