So, the require script is a script that inserts a model into you're game. This is what I am doing now.
require(1081187923)
Am I doing something wrong? It isn't inserting the model, do I have to add something, delete, edit anything?
So, the require script is a script that inserts a model into you're game. This is what I am doing now.
require(1081187923)
Am I doing something wrong? It isn't inserting the model, do I have to add something, delete, edit anything?
The reason is that you are not doing anything with the require. For example, a module could be this
local module = {}
function module:MakeModel()
return Instance.new('Part')
end
return module
and you'd have to do in a server script
require(1234567--[[module name here]]):MakeModel()
Remember, requiring an asset cannot be used in studio, nor a local script.
Hope this helps!
Require isn't it ment to be used in a module script not in a normal script? Its not really an answer but just try it.
I'll try, thank you!
No, require is meant to be used outside of a module to call a module. You can still use it in a module to use recursion, however.
This discussion is preserved as it was. New answers, comments, and votes are closed.
45 comments
How do I make that a full script, and put both lines together?
Wdym?
So the lines of code you just made, how do I put them together in one script?
You mean like, recursion? These arent supposed to go in one script.
Oh, okay
It's not working
Did you apply the edits?
Can you make a model of it, then send me the link? Friend request me: j5707r
but roblox is mean and they dont allow you to delete models and it will be stuck in my inventory forever D:
Please?
Hard, and, I am fast at refreshing the page
so like 8 left clicks and 2 right clicks and pressing 6 keys is hard?
ummmmmmmmm?
??
I mean, I know how to refresh the page and post.........But I'm talking about the require script..
Yeah it takes 8 left clicks, 2 right clicks, and 6 keys to get the scripts ready.
Please? Can I just have the model?
____________________________________________explodes
plz?
You there? Please, accept my friend request and send me the model (:
i am here and i dont want to make another thing i cant delete
...I need this badly, before people get mad at me for not making it.
Why would other people get mad at you?
I promised I would give them this today
Who is "them"? Why don't you just not use a module if you dont know how they work?
Please? Can't you spare 1 more model in you're inventory? I am really busy and don't have time right now
You there?
Why not just use a regular script if you don't know how modules work?
IDK HOW TO DO THIS, I PUT IT IN A REGULAR SCRIPT AND IT DIDN'T WORK, IDK WHAT TO DO. Srry caps.
DONT STYLE IT AS A MODULE, JUST INSERT A MODEL USING A REGULAR SCRIPT HOW HARD IS THIS
i'm new to scripting! I tried the script. It didn't work, I put in the code1
DONT STYLE IT AS A MODULE SCRIPT IF YOU SCRIPTED IT WHY CAN'T YOU CONVERT IT TO A REGULAR SCRIPT
You don't understand! I didn't use a module script! I USED A REGULAR SCRIPT
THEN WHY ARE YOU USING REQUIRE????
I NEED TO! JUST PLEASE MAKE A MODEL OF IT
HOW DO YOU NEED TO?? ITS A REGULAR SCRIPT ORIGINALLY!!
why is it so hard to make a model????????
U there?
http://wiki.roblox.com/index.php?title=Global_namespace/Roblox_namespace#require
Okay, what do I do with that stuff
Are you there? What am I supposed to do with that stuff. I am new to scripting, Idk about it. Post a new answer below with the full script and what I have to do in it.
You have eyes, you can read the page.
I'm not a scripter! I don't know anything about it!
You there? I don't understand what it says, please, explain it clearly