im trying to make a game where you fight squidward like a boss (im quite new to scripting) and i cant figure out how to get the text to change

This is my script:

while true do script.Parent.Text = "Objective: Find The Fish" game.workspace.Fish.ClickDetector.MouseClick:Connect(function() script.Parent.Text = "Objective: Survive Squidward" end) end

Can anyone help me out?

1 comment

0

is this a server script or a local script?