#Attempted to call require with invalid argument (s)

23 messages · Page 1 of 1 (latest)

gentle nebula
#

local moduleScript = require(module)
👆
This text highlighted is what the error is saying

#

Also, would this be able to work? everything on the module from the local function down works, but am I able to stick it into a module function like this? / How should this be done?

function module:ShrinkIce()
local function Shrink(otherPart)

coral blaze
gentle nebula
#

lol

#

i mean it "worked"

#

probably red linned cause the stuff its refrencings in the script

shadow locust
#

genious lines

gentle nebula
#

youtube sucks

#

it just doesnt work lol

coral blaze
grizzled flintBOT
#

studio** You are now Level 2! **studio

shadow locust
#

u can copy and read each line and google what it means

gentle nebula
#

I mean theres only a couple ways to call a module script, I'm definitely trying hard to understand it all

#

been falling down the rabbit hole of how to "Improve" and "Optimize" though

#

which is making learning this way harder

coral blaze
#

You can't improve and optimize when you dont even know to script...

gentle nebula
#

i mean should I learn the 5 year old way, or the way it should be done?

coral blaze
#

huh?

gentle nebula
#

idk I made a script work how I'd like it to, but in the actual game I'd like it to not have unnecessary amounts of code

#

appreciate the lack of help in the "Scripting Help" channel