facts
now, move the functions from the local script into the module, this will be a client only module
facts
now, move the functions from the local script into the module, this will be a client only module
The Variables or the functions folder?
move the local functions into the modulescript like this:
local module = {}
module.AddPlaceholderTower = function(name)
end
return module
OH, those functions.
adding more chars and once again, roblox moderation sucks
What about the variables?
asasdasdasd
leave them in the local script
Do I delete the code inside of all of the functions once I put them inside of the module?
we will update that script, for now move all the functions (not events)
no
use my example
remove30charrule bruh
No, module’s function is not like normal functions, it needs the name.the function name; thinks modules as a table that stores everything you want.
You need to return this functions. you know?
This good?
module.MouseRaycast = function(exclude)
end
module.AddPlaceholderTower = function(name)
end
module.RemovePlaceholderTower = function()
end
I did that though.
asdasdasdasd
good, now let’s sort these functions, I’ve changed my mind on client only for these.
k
asjdokjasdlkasjdlasjdlkjdlkaslkdaslkdjlkasjdlaksjdaslkjdaskdjskaljdlkaskdplas
You can make him a Client Module and then Server Module