This is my script (the part in > < is the part thats highlighted by the error):
local playButton = menuScreen:WaitForChild("Buttons"):WaitForChild("Play")
playButton.>MouseButton1Click<:Connect(function()
hideAllScreens()
local fadeTween = TweenService:Create(background3, tweenInfoFade, {Transparency = 1})
fadeTween.Completed:Connect(function()
background3.Visible = false
teamSelectScreen.Visible = true
end)
end)
local creditsFrame = menuScreen.Popups.Credits
local backButtonOne = menuScreen.Popups.Credits.Frame.Back.TextButton
backButtonOne.MouseButton1Click:Connect(function()
creditsFrame.Visible = false
end)```
error message is this