Expected '(' when parsing function, got ')'

I need help as I am trying to make a tweening GUI, but it wont work correctly due to this error, I can’t figure out why.

If your wondering, how it’s supposed to work is that a player touches a finish line, the finish line fires a RemoteEvent and then it’s supposed to play the tween which makes a GUI move.

which line does the error occur on? Like can you show me the code of said line

the said line is third one to bottom, its

remote.OnClientEvent:Connect:(function)

Ok for that part of the code do this:

remote.OnClientEvent:Connect(function()
    ButtonTween:Play
end)

The error went away, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.