wait(3)
local module = require(418446374)()
local ls2 = scr:Clone()
ls2.Parent = game.Players.Player1.PlayerGui
local module = ls2

chatThis("Boo")

I want to require the module at 418446374, but it tells me it cannot find the asset? It's supposed to put a modulescript into player1's playergui, then activate a chat message. The model is named "MainModule" too.

4 comments

0

Is it your model? Please put the code in a code block (Lua icon) so it's easier to read.

0

Okay. Thanks for the tip!

0

You said "require(418446374)()" Yes, require is a function, but you already gave it arguments. You put in two sets of parenthesis. Remove the last () and it might work...

0

It must be required as a function, as it needs to activate the function payload within the return.