I’m trying to make an admin console where you can execute client scripts, and it keeps giving me this error:
“loadstring() is not available”. script.Parent.MouseButton1Click:Connect(function() loadstring(script.Parent.Parent["script entry"].executor.Text) end)
I made sure LoadstringEnabled was enabled, but it still gives me the error.
Any help would be appreciated!
Although, I do feel like I need to just say that, you need to be very carful to make sure that no exploiter will be able to exploit your admin console to allow them to run their own server-sided scripts. Make sure any remote events/functions are checked to make sure that the player that fires them is actually an admin.
A lot of times loadstring may not be a very good way to execute scripts. I suggest using a lua VM module. Heres one of the first results I found: www.roblox.com/library/5041463280/Lua-VM