|
| 12 Jul 2016 05:40 PM |
| or on the server as well? like can you use .Stepped in a server script? |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:41 PM |
.Stepped work's on server.
not sure about .RenderStepped |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:42 PM |
according to the wiki .Heartbeat works on server too
should I use .Stepped or .Heartbeat? |
|
|
| Report Abuse |
|
|
Ptwisted
|
  |
| Joined: 13 Feb 2013 |
| Total Posts: 568 |
|
|
| 12 Jul 2016 05:42 PM |
bool IsClient ( ) Returns whether the script this method is invoked from runs on a client.
bool IsServer ( ) Returns whether the script this method is invoked from currently runs on a server.
|
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:43 PM |
ok wiki also says that RenderStepped only works on client
so should I use Heartbeat or Stepped? |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:48 PM |
forgot about heartbeat lol
stepped is around 1/30th of a second.
RenderStepped is around 1/60th of a second.
however heartbeat runs at FPS per second, so if your doing things frame by frame then heartbeat. |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:49 PM |
| Server has an FPS? What? Maybe it's the rate it replicates. |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:51 PM |
| server tend's to be 60 fps. |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2016 05:53 PM |
I'm stupidly thinking of fps as the screens updating when that's the refresh rate.
On server heartbeat will be around 60fps so it's basically the same as RenderStepped. |
|
|
| Report Abuse |
|
|