Template talk:Service

From Legacy Roblox Wiki
Revision as of 02:42, 19 April 2010 by >GoldenUrg (→‎One big flaw: I tried before posting the first time.)
Jump to navigationJump to search

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)
On the production servers, I get an error "RunService is not a valid member of DataModel", if this is something on test servers I don't think we should put it on the wiki yet. GetService already creates the service if it didn't exist or returns it otherwise (that's why you don't just index Game).