Template talk:Service: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco
Signature
>Mr Doom Bringer
Line 10: Line 10:


::: Hmm...  didn't see that.  GoldenUrg is right.  It's either Game:Service("name") or Game:GetService("name"). --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 16:08, 17 April 2010 (UTC)
::: Hmm...  didn't see that.  GoldenUrg is right.  It's either Game:Service("name") or Game:GetService("name"). --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 16:08, 17 April 2010 (UTC)
::::RunService creates a new service, which you must do in order to create the service. This is what I thought we were referencing as opposed to "Instance.new", which will not work with a Service. GetService will return a service with the name argument, however the service must be running first. For example, the Debris service is not by default running, therefore to create it in a script you must call it with RunService. ---[[User:Mr Doom Bringer|Mr Doom Bringer]] 17:59, 18 April 2010 (UTC)

Revision as of 17:59, 18 April 2010

One big flaw

"you have to call it with ..."
'...' is nothing. Wouldn't our viewers want to know what to call it with? --Blocco 21:19, 14 April 2010 (UTC)

That better? ---Mr Doom Bringer 20:01, 16 April 2010 (UTC)
Yeah. Thanks. --Blocco 20:36, 16 April 2010 (UTC)
Except that it's wrong. How about "Game:GetService(...)"? :) --GoldenUrg 03:40, 17 April 2010 (UTC)
Hmm... didn't see that. GoldenUrg is right. It's either Game:Service("name") or Game:GetService("name"). --Blocco 16:08, 17 April 2010 (UTC)
RunService creates a new service, which you must do in order to create the service. This is what I thought we were referencing as opposed to "Instance.new", which will not work with a Service. GetService will return a service with the name argument, however the service must be running first. For example, the Debris service is not by default running, therefore to create it in a script you must call it with RunService. ---Mr Doom Bringer 17:59, 18 April 2010 (UTC)