Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you have a dialog open without being clicked like Guest Defense?

Asked by 10 years ago

I need to know how to make a dialog play without it being clicked, but I have no idea what that function/event is. can someone explain/tell me?

0
Btw this is not a get a free script website, Its a try it out first or look it up in the wiki and then ask questions! xImmortalChaos 565 — 10y
0
I did, I couldn't find anything. also, I wasn't asking for the script. zachhg03 35 — 10y

2 answers

Log in to vote
1
Answered by 10 years ago

Look here or do the following, http://wiki.roblox.com/index.php?title=RBX.lua.Chat_(Object).

game:GetService("Chat"):Chat(Part, Text, math.random(0, 2)) -- Used for chatting.
--I'll break it down.

game:GetService("Chat"):Chat() --Starts to create your wanted message.
game:GetService("Chat"):Chat(Part) --Any part or item for the first variable.
game:GetService("Chat"):Chat(Part, Text) --Second Variable is going to be your text. Like "Hello, World!"
game:GetService("Chat'):Chat(Part, Text, math.random(0, 2)) -- Third variable is going to be your chat color. It's used with numbers, 0 -Blue, 1 - Green, 2 -  Red.
Ad
Log in to vote
1
Answered by 10 years ago

So You Want It Like This Random Saying Person Put This One A Script Inside A NPC

local msgs = {"ATTACK", -- Change The Words To Change The Chat Of Npc
"LOOOL",
"THIS IS MY TEXT",
"They Die",
"DEFEND MY HOUSE",
"fishyness"}
local colors = {"Red","Green","Blue"}

while wait(3) do
    game:GetService("Chat"):Chat(script.Parent.Torso,msgs[math.random(1,#msgs)],colors[math.random(1,3)])
end

Answer this question