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: does runservice only run on the client?

Previous Thread :: Next Thread 
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
12 Jul 2016 05:40 PM
or on the server as well? like can you use .Stepped in a server script?
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
12 Jul 2016 05:41 PM
.Stepped work's on server.

not sure about .RenderStepped
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
12 Jul 2016 05:42 PM
according to the wiki .Heartbeat works on server too

should I use .Stepped or .Heartbeat?
Report Abuse
Ptwisted is not online. 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
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
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
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
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
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
12 Jul 2016 05:49 PM
Server has an FPS? What? Maybe it's the rate it replicates.
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
12 Jul 2016 05:51 PM
server tend's to be 60 fps.
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
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
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