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: Module script error, help please.

Previous Thread :: Next Thread 
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
28 Nov 2017 04:39 PM
local Drop = require(game.ReplicatedStorage.ModuleScript)

while MineDisabled == false do
Drop.Ore(5, "Dark stone grey", "Slate", 1, 0, false, false, true, script.Parent.Drop.Position, script.Parent.Parent.Parent.Name) < this is 1 line

wait(2)
end


"Requested module experienced an error while loading"

line 4


~Midnight || Robux: 184
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
28 Nov 2017 04:42 PM
Post contents of modulescript, as that's where the error is
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
28 Nov 2017 04:43 PM
bump



~Midnight || Robux: 184
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
28 Nov 2017 04:44 PM
it says the error is in that script tho, and I've tested the script multiple times by its self it works fine.

but as soon as I started with that piece of code it errored.


~Midnight || Robux: 184
Report Abuse
NodaDuck45 is online. NodaDuck45
Joined: 14 Sep 2017
Total Posts: 47
28 Nov 2017 04:48 PM
Well let's see...
The requested module script experience an error without loading...


That means the modulescript you are requesting has an error in it.

Now I'm not quite sure if what "line 4" means, but I think it means what line the error is inside the module script.
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
28 Nov 2017 04:50 PM
The line four thing was just stating in which line roblox said the error was at.


local Drop = {}

local Ty########### game.Players.LocalPlayer.Name
function Drop.Ore(OreValue, OreColor, OreMaterial, OreSize, OreTransparency, FireEffect, ExplosionResistant, RandomCashValue, Dr######################### print("success!")
local TextColor = OreColor

local newPart = Instance.new("Part")
newPart.BrickColor = BrickColor.new(TextColor)
newPart.Transparency = OreTransparency
newPart.Material = OreMaterial
newPart.CFrame = CFrame.new(DropLocation)
newPart.Size = Vector3.new(OreSize, OreSize, OreSize)

local moneyValue = Instance.new("IntValue", newPart)
moneyValue.Name = "Cash"
moneyValue.Value = OreValue

newPart.Parent = workspace.PartStorage[TycoonName]

if FireEffect == true then
local Flame = Instance.new("Fire", newPart)
else
if ExplosionResistant == true then
newPart.Density = 3
else
if RandomCashValue then
local Random = OreValue / 1.3
local UpdatedCash = math.random(Random, OreValue)

moneyValue.Value = UpdatedCash
end
end
end

return newPart
end

return Drop


~Midnight || Robux: 184
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
28 Nov 2017 04:53 PM
gggggggggggggg


~Midnight || Robux: 184
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
28 Nov 2017 05:18 PM
gg


~Midnight || Robux: 184
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
30 Nov 2017 03:06 PM
i still need help with this smh


~Midnight || Robux: 184
Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
30 Nov 2017 03:14 PM
Are you requiring the module in a local script or server script?

Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
30 Nov 2017 03:15 PM
Server script, I posted the module code in the replys


~Midnight || Robux: 184
Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
30 Nov 2017 03:30 PM
CAN SOMEONE PLEASE HELP


~Midnight || Robux: 184
Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
30 Nov 2017 03:35 PM
Well, the error you're getting means there's a problem with the module script, not the script you're requiring it in.

If the line in which you require it isn't line 4, then you'll need to post line 4 of the module script. Otherwise, I don't know what's wrong with your module.

Report Abuse
xMidnightHorror is online. xMidnightHorror
Joined: 07 Jan 2015
Total Posts: 2206
30 Nov 2017 03:59 PM
add me so I can talk with you


~Midnight || Robux: 184
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