mirror of
https://github.com/codeninjasuk/roblox-world-24.git
synced 2024-11-25 17:08:00 -05:00
Create ninjas_talk_chat.cs
This commit is contained in:
parent
125d8a9aa2
commit
f9cd5a83e0
1 changed files with 7 additions and 0 deletions
7
ninjas_talk_chat.cs
Normal file
7
ninjas_talk_chat.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
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)
|
Loading…
Reference in a new issue