local FireManager = require(script.FireManager)
while task.wait() do
FireManager.test()
end
----------------------------------------
local FireManager = {}
function FireManager.test()
print("Hello world!")
end
return FireManager
print can accept an Instance, a number, a boolean, etc.
For an Instance it’d print it’s name, the number would get converted in a string (same for a boolean) & printed
First off, never use a while true to create a while wait. What will occur is extensive death to your client/server.
as for the actual code
--GameScript.Lua
local FireManager = require(script:WaitForChild("FireManager"))
while task.wait() do -- while true do isn't the best method anymore
FireManager.Test()
end