Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(game.Players:GetPlayers()) do
- v.Chatted:Connect(function(msg)
- if string.sub(msg, 1, 3) == "!q " then
- print(string.sub(msg, 4))
- local number = math.random(0,10)
- if number == 0 then
- msg1 = "Probably."
- wait(0.5)
- elseif number == 1 then
- msg1 = "Most probably not."
- wait(0.5)
- elseif number == 2 then
- msg1 = "You will know in the future."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 3 then
- msg1 = "Interesting question."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 4 then
- msg1 = "Maybe not."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 5 then
- msg1 = "You decide."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 6 then
- msg1 = "Yes."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 6 then
- msg1 = "No."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 7 then
- msg1 = "It may be true."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 8 then
- msg1 = "You can doubt on it."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 9 then
- msg1 = "Maybe."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- elseif number == 10 then
- msg1 = "I can't answer that."
- wait(0.5) game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string.sub(msg, 4) .. " | " .. msg1, "All")
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement