mirror of
https://github.com/codeninjasuk/roblox-world-24.git
synced 2024-11-22 07:28:08 -05:00
8 lines
269 B
C#
8 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)
|