Remote Functions code has a small syntax highlighting mistake

In Remote Functions and Events, the code for firing a RemoteEvent shows that the parenthesis is syntax-highlighted as blue even though it shouldn’t, a small detail but annoying at the same time:

-- Include additional data when firing the event
remoteEvent:FireServer(BrickColor.Red(), Vector3.new(0, 25, 0))

chrome_Z5sbJFC1So

2 Likes

That code is correct. You construct a red brick color using BrickColor.Red() function. Why it is a function is beyond me, since it always returns the same color, but that is correct.

3 Likes

The code is correct, but I believe it was about the first opening parenthesis’ syntax highlighting

1 Like