Not placing tower but there is no errors

facts

now, move the functions from the local script into the module, this will be a client only module

1 Like

The Variables or the functions folder?

Yes anything I am here, chat with the @remcodesremcodes, he helped me a lot with stuff.

1 Like

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)

This right?

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?

image_2023-08-08_203543413

This good?

1 Like

module.MouseRaycast = function(exclude)

end

module.AddPlaceholderTower = function(name)

end

module.RemovePlaceholderTower = function()

end

I did that though.

asdasdasdasd

How can I work with Module Scripts? - #3 by remcodesremcodes See this post I made.

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