Template talk:Service: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer |
>Blocco No edit summary |
||
Line 11: | Line 11: | ||
::: 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) | ::::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) | ||
:::::RunService is, by itself, a service. RunService deals with running, pausing and stopping the game. Game::RunService is not valid, according to the Object Browser. I would use Game::service. --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 22:20, 18 April 2010 (UTC) |
Revision as of 22:20, 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)
- RunService is, by itself, a service. RunService deals with running, pausing and stopping the game. Game::RunService is not valid, according to the Object Browser. I would use Game::service. --Blocco 22:20, 18 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)
- 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)