Hello, I am trying to make it so when a player touches the part with their character the dialogue begins
I've tried making it work but I am so unschooled in learning I have NO clue how to even figure it out
local say = {"You are now breathing manually"}
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
local f = true
if plr.PlayerGui.ScreenGui.Enabled == true or plr.PlayerGui.ScreenGui2.Enabled == true then
f = false
end
if f == true then
f = false
plr.PlayerGui.ScreenGui.Enabled = true
for i, v in pairs(say) do
for i = 1, string.len(v) do wait(0.045)
plr.PlayerGui.ScreenGui.TextLabel.Text = string.sub(v, 1, i)
script.Dia:Play()
end
wait(string.len(v) / 10)
end
plr.PlayerGui.ScreenGui.Enabled = false
plr.PlayerGui.ScreenGui.TextLabel.Text = (" ")
f = true
end
end)
(foregive me i have no idea what tags to use in this situation)
** You are now Level 2! **