121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 03:38 PM |
tells me i cant require assestid from client? :/
trying to require from a localscript.
yudodis |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2015 03:39 PM |
| I don't think you can call modules using a localscript, not 100% certain due to the fact I've never tried it before. |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 03:41 PM |
pretty sure they take the properties of what ever requires them, rite?
yudodis |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2015 03:41 PM |
| If I am correct, you can make modular LocalScript's. |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2015 03:43 PM |
From what the wiki says:
"Private modules cannot be loaded from studio. This makes it difficult to test games which rely on private modules."
~Cutting someone down at the knees doesn't make you any taller~ |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 03:44 PM |
-i am trying from online, in game.
yudodis |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2015 03:47 PM |
"Private modules cannot be loaded [in] studio."
Then why does it work for me? Was I using one of my 'SetPlaceId()' places that are connected to a real game? |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 17 Dec 2015 03:49 PM |
| *Assuming* if you own the module you'd be able to load it. |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 03:49 PM |
i do and its a mainmodule.
yudodis |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 03:53 PM |
ls; require(332342058).Start() -- module; Functions = {} function Functions.Start() print("HI") end return Functions -- error; prntscrn/9fg921
yudodis |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 17 Dec 2015 03:53 PM |
| Did you fix it? I required it in my game with no errors. |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
| |
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 17 Dec 2015 03:57 PM |
| It says the error in plain English. You can't require it from the client. |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 03:59 PM |
ik.. but no ones clarified that you cant require from a localscript
so imma have to make it work w/ a reg? :c
yudodis |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 05:42 PM |
anyone gotta idea how to get a local player using a modulescript?
yudodis |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2015 05:47 PM |
| Yeah, you can easily require ModuleScripts from the client, just not using the AssetId. |
|
|
| Report Abuse |
|
|
121bytes
|
  |
| Joined: 20 Aug 2014 |
| Total Posts: 250 |
|
|
| 17 Dec 2015 05:53 PM |
need2tho :c
thinking of using a remoteevent maybe
yudodis |
|
|
| Report Abuse |
|
|