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

How do I get certain things from a module script to a regular script?

Asked by 6 years ago

I'm trying to make a GUI admin for my friend's group, but I'm not 100% sure how to get something from a module script to a regular script. For example; Kohl's admin. I have part of my script to start it off, but I can't do much without getting the settings.

print("Admin loaded.")
repeat wait() until game.Players.LocalPlayer.Character
repeat wait() until game.Players.LocalPlayer.Character:IsDescendantOf(game.Workspace)
wait(1 / 20)

local GUI = script.Parent
--Not sure what to do next

I'm kind of a noob, so please go easy on me! :) Thanks if you can help.

0
Hello! If you need to use a ModuleScript inside of a regular Script, you can use the function "require." For example, if the ModuleScript is called Admin in game.Workspace, in your regular script, you may write: local adminModule = require(game.Workspace.Admin) IPsec 35 — 6y

Answer this question