Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I was wondering, why can't I require this asset?

Asked by 8 years ago
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.

0
Is it your model? Please put the code in a code block (Lua icon) so it's easier to read. TheHospitalDev 1134 — 8y
0
Okay. Thanks for the tip! TheFlamingBlaster 5 — 8y
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... lightpower26 399 — 8y
0
It must be required as a function, as it needs to activate the function payload within the return. TheFlamingBlaster 5 — 8y

Answer this question