I'm making the dialog for a camping game and for some parts a random player needs to talk, please help! Here is the code
--All scripts here are by Sabrna563
-- All Dialog Values
local DialogValues = game.ReplicatedStorage.DialogValues
local DiologText = DialogValues.Text.Value
local Name = DialogValues.PlayerName.Value
local UserID = DialogValues.PlayerUserID.Value
-- Game Values
local Players = game.Players
-- Funcions
--Typing Effect
local function TypeEffect(Text)
print("Printing Dialog Text")
for i = 1,#Text,1 do
DiologText = string.sub(Text,1,i)
wait(0.05)
end
print("Printed Text")
print(DiologText)
end
-- Random Player text
local function RandomPlayerText(Text)
-- Name --The Player Name
-- UserID --The User id
print(text)
end

1 comment
Thanks!