mirror of
https://github.com/codeninjasuk/roblox-world-24.git
synced 2024-11-25 17:08:00 -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)
|