I am making a coding game where you will be able to have a little GUI that lets you run code to try to fix a problem, but I need to then have that code run on the server with a remote event. This is where I have been stuck. So far I have this on the local side:
game:GetService("ReplicatedStorage"):WaitForChild("ScriptRunRemote"):Fireserver(function()
print("Ran Code!")
end)
But I don't know what I could put on the script to get that code and run it.Thanks in advance for any help.

2 comments
Don't, exploiters/ hackers will have the ability to execute server code (code that others can see)
but if you want to, use loadstring("code here")()