zCrxtix
(zavier)
September 15, 2021, 9:03pm
#1
I’m trying to make a syntax highlighter/text editor that runs code, and I’m using this module for loadstring, which apparently is supposed to be able to run loadstring on both the server and client. But that isn’t working. No outputs.
script.Parent.Execute.MouseButton1Click:Connect(function()
require(script.Loadstring)(editor.Text)
end)
Sonostrano20
(InceptionStrange)
September 15, 2021, 9:24pm
#2
If you’re trying to require a module, First You need to give a name to the module that you require
For example
local myModule = require(game.ReplicatedStorage.Modules)
Then, Re-call The Module Name
myModule And Run The Function that are inside it.
Also… You’re Hipertext link is not valid, can you try to give me a valid link?
zCrxtix
(zavier)
September 15, 2021, 10:04pm
#3
I edited it, the link works now.
This is actually wrong. I can just require the path, and pass in the argument, which in this case in the source, with ().
1 Like