Dialogue not working

I’m having just a dialogue gui that triggers on its own and it don’t seem to work I have remote events in rep storage but it don’t work the output says nothing on this I’m confused

local SoundService = game:GetService(“SoundService”)

function typewrite(object,text)
for i = 1,#text,1 do
object.Text = string.sub(text,1,i)
wait(0.02)
end
end

game.ReplicatedStorage.PlayTutorial.OnClientEvent:Connect(function()
script.Parent.Parent.Parent.Enabled = true
typewrite(script.Parent,“Welcome to Mars Our mission Is to explore the marshian grounds,Explore Olympus Mons!”)
wait(5)
typewrite(script.Parent,“Olympus Mons is that massive mountain behind Base 1 Look Behind you! Isnt it Massive.”)
wait(5)
typewrite(script.Parent,“As well as pretty dangerous with its sand storms the more Higher up to you the more worse the storms get.”)
wait(5)
typewrite(script.Parent,“Olympus Mons Is way taller then mount everest Its infact the tallest mountain in our solar system.”)
wait(5)
typewrite(script.Parent,“Olympus Mons is easily 3 times bigger then mount everest,more danagerous then everest for ovbious reasons.”)
wait(5)
typewrite(script.Parent,“Olympus Mons last erupted 25 million years ago, Wow! And it still may be an active volcano…”)
wait(5)
typewrite(script.Parent,“Goodluck exploring the marshian surface and uncovering new stuff to see if your climbing Olympus Mons goodluck”)
wait(5)
script.Parent.Parent.Parent.Enabled = false
game.ReplicatedStorage.TutorialFinished:FireServer()
end)

(P.S. Couldn’t get the code in straight lines it would not let me.)

Do you want me to take a look?

Oh hi lol yes please I’m confused because it worked on a old game but this no

Check chat, I sent you a message there.

Ok, after looking at your codebase, it looks like the code would work fine. The only thing missing is triggering the remote event. If you add some code, like touching a part that fires the remote event, then your gui will run. Also, disable the gui enable property, so it only shows when the event fires.

1 Like