generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do you require module scripts by Id?

Previous Thread :: Next Thread 
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
25 Dec 2014 09:59 PM
I get this error:

21:55:56.497 - Unable to find module for asset id
21:55:56.524 - Script 'Workspace.Script', Line 1
21:55:56.524 - Stack End

line 1:
local math = require(196716097)

I saved the module script as a model in roblox, but it isn't working correctly.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
25 Dec 2014 10:07 PM
That looks correct, unless it was changed.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
25 Dec 2014 10:08 PM
:[
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
25 Dec 2014 11:15 PM
Try it from not the command bar
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
26 Dec 2014 12:35 PM
I tried it from not the command bar and it still doesn't work

I can't figure it out, I personally wouldn't require it by ID though but I still wonder why its not working

Does it maybe not work anymore? Someone should try it with scripth's admin or some other script that does it that we know used to work
(Scripth's does it so you can't see or change the part of the script that admins him)
Report Abuse
joelsdarkside22 is not online. joelsdarkside22
Joined: 18 Mar 2009
Total Posts: 1131
26 Dec 2014 12:37 PM
Yeah, it doesn't work anymore. I've run into this problem before.
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
26 Dec 2014 01:50 PM
Make sure the modulescript you upload is named MainModule

logic is logical
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
26 Dec 2014 04:43 PM
Thanks
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
26 Dec 2014 05:52 PM
It bothers me a lot that you did this

math.round = function(n, place) -- rounds n to the 'place' place.
return math.floor(n * 1/place + 0.5)/(1/place)
end

Instead of

function round(x, y)
return (math.floor((x / (y or 1)) + 0.5) * (y or 1))
end

So that it does less math since it doesn't need to, and y is a option


Also, how did you know it had to be named MainModule? The wiki didn't say >.<
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
26 Dec 2014 06:34 PM
'function round(x, y)'

I meant to say

function math.round(x, y)
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
27 Dec 2014 04:49 PM
@128GB, I updated it now (and the others).
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image