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

Having trouble making a script that places a script in RelicatedStorage?

Asked by
Vexxied 10
8 years ago

So, I am trying to make a "loader" for my anti exploit program, and I have the script that I need published as private, and the loader is

require(386272996)

but, the script needs to be in ReplicatedStorage to function, and when I boot up the game, and click on my GUI, it wont work since the script is loaded into Workspace. Someone help me!

2 answers

Log in to vote
0
Answered by 8 years ago

Uh, just place the script in ReplicatedStorage, or access ReplicatedStorage statically?

script.Parent = game.ReplicatedStorage

or

local ReplicatedStorage = game.ReplicatedStorage
Ad
Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

At the beginning of your ModuleScript, put script.Parent = game.ReplicatedStorage. Be aware, that with your Module being out in the open, people will be able to steal it.

0
Well, I needed to move the script that the loader puts into the game into ReplicatedStorage Vexxied 10 — 8y

Answer this question