I need a little help with the dialog

yo, I wanted to find out what mistakes I made and how can I fix it?

script.Parent.Parent.DialogGui.Frame.Visible = false

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Map = workspace:WaitForChild("Map")
local Arrows = Map:WaitForChild("Arrows")
local Sounds = Map:WaitForChild("Sounds")
local Configuration = Map:WaitForChild("Configuration")

local dialog = script.Parent.Parent.DialogGui.Frame.Dialog

if workspace.Map.Configuration.Wave == 1 then
	script.Parent.Parent.DialogGui.Frame.Visible = true
	dialog.Text = 'sup, here zombie lol'
	wait(10)
	script.Parent.Parent.DialogGui.Frame.Visible = false
end

What exactly is the issue here? You didn’t mention what it’s supposed to do or what is wrong with it, so we can’t help you much unless you give us some more information.