SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
|
| 23 Jun 2016 03:31 PM |
I'm trying to get a module script to work, but all I get is this error in the output. Here's the entire module:
local module = {} Tool = script.Parent
--Timer function function module.timerStart() local timer = Tool.TimerActive.Timer.Value timer = 2 while timer ~= 0 and Tool.TimerActive.Value == true do timer = timer - 1 wait(1) print(timer) end end
return module
-------------------------------------------------------------------
I use this in the regular script to call the module:
local myModule = require(Tool:WaitForChild("TimerScript"))
|
|
|
| Report Abuse |
|
|
SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
| |
|
SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
| |
|
SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
| |
|
|
| 23 Jun 2016 03:45 PM |
| Are you certain that TimerScript is a ModuleScript? |
|
|
| Report Abuse |
|
|
SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
|
| 23 Jun 2016 03:54 PM |
I named the script above the module the timerScript...
Thank you!
|
|
|
| Report Abuse |
|
|