|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 04 Apr 2015 11:23 PM |
| gold bb still owes me an apporowgy ;c |
|
|
| Report Abuse |
|
|
GOLDC3PO
|
  |
| Joined: 31 May 2011 |
| Total Posts: 509 |
|
| |
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
| |
|