jaipack17 / Nature2D

A 2D physics engine for Roblox. Create versatile physics simulations and mechanics with GUIs!
https://jaipack17.github.io/Nature2D/
MIT License
147 stars 8 forks source link

Getting the error "RenderStepped event can only be used from local scripts" when using engine:Start() #42

Closed mincraft0990 closed 1 year ago

mincraft0990 commented 1 year ago

Excuse me if I make any silly mistakes or misunderstand something since I am fairly new to this engine, but I am trying to follow the "Creating RigidBodies" guide on the documentation, and I get the error "RenderStepped event can only be used from local scripts" when I use engine:Start()

Screen Shot 2022-12-24 at 11 05 37 AM

Toastaspiring commented 1 year ago

it's because RenderStepped event is a client side event... since the rendering of the UI is local on roblox. just switch your script to a local script.