The problem is at line 97
local Nothing = " "
local Text1 = "Welcome user."
local Text2 = "Now, you must be wondering how you got here."
local Text3 = "I will cover that later."
local Text4 = "But right now."
local Text5 = "You need to do this task."
local Text6 = "Get readdy."
local Text7 = "Alright."
local Text8 = "Do this parkour and get to the other side."
local Text9 = "Good."
local Dialog = script.Parent
local T8B = game.Workspace.T8B
local TransitionEvent = game.ReplicatedStorage.TransitionEvent
local player = game.Players.LocalPlayer
local tp1 = game.Workspace.TP1
function teleportPlayers(partCFrame)
local players = game.Players:getPlayers()
for _,player in pairs(players) do
if player.Character then
if player.Character.HumanoidRootPart.Anchored == false then
player.Character.Humanoid.Jump = true
end
end
end
wait(.5)
for _,player in pairs(players) do
if player.Character then
if player.Character.HumanoidRootPart.Anchored == false then
player.Character:SetPrimaryPartCFrame(partCFrame)
end
end
end
end
wait(2)
for i = 1,#Text1 do
Dialog.Text = string.sub(Text1,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(1)
for i = 1,#Text2 do
Dialog.Text = string.sub(Text2,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(2)
for i = 1,#Text3 do
Dialog.Text = string.sub(Text3,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(1)
for i = 1,#Text4 do
Dialog.Text = string.sub(Text4,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(1)
for i = 1,#Text5 do
Dialog.Text = string.sub(Text5,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(1)
for i = 1,#Text6 do
Dialog.Text = string.sub(Text6,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(1)
for i = 1,#Nothing do
Dialog.Text = string.sub(Nothing,1,i)
wait(0.09)
end
wait(5)
TransitionEvent:FireAllClients()
teleportPlayers(game.Workspace.TP1.CFrame)
for i = 1,#Text7 do
Dialog.Text = string.sub(Text7,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(1)
for i = 1,#Text8 do
Dialog.Text = string.sub(Text8,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
wait(2)
for i = 1,#Nothing do
Dialog.Text = string.sub(Nothing,1,i)
wait(0.09)
end
wait(1)
if not game.Workspace:FindFirstChild("NextLvl1") then
for i = 1,#Text9 do
Dialog.Text = string.sub(Text9,1,i)
game.Workspace.T8B:Play()
wait(0.09)
end
end
wait(1)
It says no errors but the script does not work.

5 comments
u gave two ends.
It says an error if i remove one of the end
is that the full script?
give the full thing because i can understand what you are trying to do
Ok its the full script