I am trying to make a sort of "RPG" type game, I finished rigging a dragon rig that would guide you through the begining but when using a script to change the text if the text said something else (on click) It told me "Expected identifier when parsing expression, got ')'" I will show my script below. (normal script responding to click detector inside model)
script.Parent.ClickDetector.MouseClick:Connect(function(player)
player:WaitForChild("PlayerGui").ScreenGui.TextLabel.Text = "Greetings young traveler."
end)
script.Parent.ClickDetector.MouseClick:Connect(function(player)
if
player:WaitForChild("PlayerGui").ScreenGui.TextLabel.Text == "Greetings young traveler."
then player:WaitForChild("PlayerGui").ScreenGui.TextLabel.Text = "Fetch me a water bucket."
end)

2 comments
you forgot an end in the if
Do you mean something like "If end?" ( I dont really use "If" that much so I dont know much about it)