roblox-world-24/ninjas_talk_chat.cs
2024-05-29 10:28:41 +01:00

7 lines
269 B
C#

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)