Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I was trying to use a module script , i got an error but i dont see what i did wrong?

Server Script

--//Varibles\\--
wait(1)
local InstallRegionModule = script.InstalizeRegionScript

InstallRegionModule.Install()

Module script

local WorkspaceRegions = workspace.Regions
local module = {
 	Install = function()
	for i,v in pairs(WorkspaceRegions:GetChildren()) do
		v.RegionPart.Transparancy = 1
		v.CanCollide = false
	end
end
}
return module

2 answers

✓ Accepted answer

You have to call require on ModuleScripts.

local InstallRegionModule = require(script.InitializeRegionScript)

1 comment

0

Ifeel stupid now i forgot i had to use require

to call a module you have to

local InstallRegionModule = require(script.InstalizeRegionScript)

This discussion is preserved as it was. New answers, comments, and votes are closed.