|
| 03 Jun 2015 04:48 PM |
| I forgot how to use run service and stepped i want it to check when they walked to print Hello World |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 04:57 PM |
local RunService = game:GetService('RunService')
at least I think that's how it goes. |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 05:01 PM |
game:GetService("RunService").RenderStepped:connect(function() print"This runs every frame but only works in a localscript" end)
game:GetService("RunService").Stepped:connect(function() print"This runs slower but can be called by either." end) |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 03 Jun 2015 05:04 PM |
| He wants it to print something when a character walks. He thinks that RunService is literally for running |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 05:07 PM |
^ It's not?
Then what is Heartbeat() for?
MY LIFE IS A LIE |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 03 Jun 2015 05:09 PM |
| Heartbeat is another event that fires pretty rapidly (1/30 second wait) |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 03 Jun 2015 05:14 PM |
| ^ ya it was a joke and you ruined it >:( |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|