Roblox Compliment Script (COMPLIMENT RANDOM PLAYERS)

Roblox Compliment Script (COMPLIMENT RANDOM PLAYERS)

Script By K4oS

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
%d bloggers like this: