Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function chat(message)
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message,"All")
- end
- game.Players.PlayerAdded:connect(function(player)
- print("A player has entered: " .. player.Name)
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Hello, ".. player.Name .."!","All")
- end)
- game.Players.PlayerRemoving:connect(function(player)
- print("A player has exited: " .. player.Name)
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Goodbye, ".. player.Name .."!","All")
- end)
- wt = 5
- while wait(wt) do
- local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
- chat("Hello!")
- wait(wt)
- chat("I am currently afk.")
- wait(wt)
- chat("Send Me Trades!")
- wait(wt)
- chat("Follow my account!")
- wait(wt)
- chat("Have a nice day!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement