Code example for RequestStreamAroundAsync (StreamingEnabled) is incorrect

Link: Instance Streaming | Documentation - Roblox Creator Hub

The provided code uses the ( . ) operator and passes a CFrame to RequestStreamAroundAsync(). I ran some quick tests in studio and discovered the following:

Player.RequestStreamAroundAsync(CFrame) – Infinite Yield, ( . ) operator, CFrame passed
Player.RequestStreamAroundAsync(Vector3) – Infinite Yield, ( . ) operator, Vector3 passed
Player:RequestStreamAroundAsync(CFrame) – Infinite Yield, ( : ) operator, CFrame passed
Player:RequestStreamAroundAsync(Vector3) – Works, ( : ) operator, Vector3 passed

The example should be updated to reflect the correct syntax. Furthermore, the example should be added to the RequestStreamAroundAsync page itself for convenience.

cc: @Rototally

2 Likes

I’ve fixed the code sample on the page, should be visible soon. Thanks for catching this :slight_smile:

1 Like

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