Server script (where the error is coming from) inside of ServerScriptService:
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function()
local text = tostring(game.ReplicatedStorage.Value.Value)
game.ReplicatedStorage.Value2.Value = loadstring(text)
end)
Local script inside of StarterGui (no errors):
while true do
wait()
local tocompile = script.Parent.Text
game.ReplicatedStorage.RemoteEvent:FireServer()
game.ReplicatedStorage.Value.Value = script.Parent.Text
wait()
script.Parent.Parent.TextLabel.Text = game.ReplicatedStorage.Value.Value
end
Anyone know why this is happening?
P.S. When using a print(text) in the serverscript it prints print("Hello world"), which is the value but that would mean that loadstring() isn't working.
EDIT:
Server script (where the error is coming from) inside of ServerScriptService:
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr, text)
loadstring(text)()
end)
Local script inside of StarterGui (no errors):
while true do
wait()
game.ReplicatedStorage.RemoteEvent:FireServer(script.Parent.Text)
end
How do you change the textlabels text to the loadstring instead of just printing it?

7 comments
Ok, I just need to know how I would set a textlabels text to the loadstring?
Why would that be necessary?
@Ziffixture , this: https://scriptinghelpers.org/questions/113651/how-do-gui-lua-compilers-work-how-are-they-made
Still lost.
Like making a completely gui based compiler, so the output is a textlabel.
That's the best I can do for you, the rest I believe will be orientated around LogService.
Sorted it myself with logservice and messageout.