Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

script.Parent = game.ReplicatedStorage

or

local ReplicatedStorage = game.ReplicatedStorage

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.

1 comment

0

Well, I needed to move the script that the loader puts into the game into ReplicatedStorage

This discussion is preserved as it was. New answers, comments, and votes are closed.