roblox-world-24/ninjas_talk_chat.cs

8 lines
269 B
C#
Raw Normal View History

2024-05-29 05:28:41 -04:00
local ChatService = game:GetService("Chat")
local head = script.Parent.Head
local prompt = head.ProximityPrompt
local chatList = {"Hello, I'm Sensei Matt!", "Hi-Yah!"}
prompt.Triggered:Connect(function()
ChatService:Chat(head, chatList[math.random(1, #chatList)])
end)