Arbitrary code block discriminator in RunService bool type function samples causes 100% failure on runtime

The bool type functions located on the RunService page all contain code samples which will error on runtime due to an arbitrary code block discriminator located on the first and last line of each sample.

Image


For example, navigate to the RunService:IsServer() function and paste the code sample into a script. On runtime, you will get a warning and the script will fail to execute due to the arbitrary discriminators located on the first line.

Error

image

The same issue is present on the following pages: RunService:IsClient(), RunService:IsRunMode(), RunService:IsRunning(), RunService:IsStudio() and RunService:IsServer().


Solution: Remove the code discriminators from the code samples.

Additionally the last code sample on the RunService:BindToRenderStep page is also affected by this.

Thanks for the report!

We’ve identified the pages that were affected by this issue and they have all been updated.

2 Likes

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