generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: RenderStepped:wait()

Previous Thread :: Next Thread 
XlAscensionlX is not online. XlAscensionlX
Joined: 17 Apr 2014
Total Posts: 872
04 Apr 2015 10:51 PM
How would would I use? Its saying RenderStepped is undefined...


~Even a Broken Clock is Right Twice a Day~
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
04 Apr 2015 10:52 PM
I wouldn't know why you are slapping a :wait() on there, but this is how it would w0rk

>local script

Game:GetService('RunService').RenderStepped:connect(function()

end)
Report Abuse
GOLDC3PO is not online. GOLDC3PO
Joined: 31 May 2011
Total Posts: 509
04 Apr 2015 10:54 PM
while true do game:service'RunService'.RenderStepped:wait()

end

It runs at a 60th of a second, localscripts only. Its basically ran whenever a frame is rendered hence the name. Above is dumb.
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
04 Apr 2015 11:00 PM
Gold bb, y must u b insulting, and better yet, y u nu while 69 do
Report Abuse
Froast is not online. Froast
Joined: 12 Mar 2009
Total Posts: 3134
04 Apr 2015 11:01 PM
Also be aware that RenderStepped can only be used by LocalScripts.
Report Abuse
XlAscensionlX is not online. XlAscensionlX
Joined: 17 Apr 2014
Total Posts: 872
04 Apr 2015 11:19 PM
RenderStepped just worked fine for me inside of a tool in a regular script, thanks anyways. Cheers.


~Even a Broken Clock is Right Twice a Day~
Report Abuse
DrMathematica is not online. DrMathematica
Joined: 29 Aug 2008
Total Posts: 27268
04 Apr 2015 11:21 PM
"RenderStepped just worked fine for me inside of a tool in a regular script, thanks anyways. Cheers."

That's because it's replicated and is originally local. Many people have an issue where Equipped will fire twice, or their output will see "maximum event depth re-entrancy exceeded" upon equipping tools.

That is because you are _incorrectly_ using a Script instance for a local object. It works because it is replicated to the server due to being a part of a local instance - not because it's right.
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
04 Apr 2015 11:23 PM
gold bb still owes me an apporowgy ;c
Report Abuse
GOLDC3PO is not online. GOLDC3PO
Joined: 31 May 2011
Total Posts: 509
04 Apr 2015 11:26 PM
sowwy cri cri ;.;
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
04 Apr 2015 11:28 PM
<3 luv u again
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image