Advertisement
RandomNewbieScripter

Untitled

Jun 24th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. function chat(message)
  2.     game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message,"All")
  3. end
  4. game.Players.PlayerAdded:connect(function(player)
  5.     print("A player has entered: " .. player.Name)
  6.     game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Hello, ".. player.Name .."!","All")
  7. end)
  8.  
  9. game.Players.PlayerRemoving:connect(function(player)
  10.     print("A player has exited: " .. player.Name)
  11.         game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Goodbye, ".. player.Name .."!","All")
  12. end)
  13.  
  14.  
  15.  
  16. wt = 5
  17. while wait(wt) do
  18.     local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
  19.     chat("Hello!")
  20.     wait(wt)
  21.     chat("I am currently afk.")
  22.     wait(wt)
  23.     chat("Send Me Trades!")
  24.     wait(wt)
  25.     chat("Follow my account!")
  26.     wait(wt)
  27.     chat("Have a nice day!")
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement