Hello there! I'm currently working on a script builder. The script builder works in studio, but not online. Whenever I test it online and look at the Roblox Developer Console, it says "loadstring is not available". Here is the script:
source = script.Parent.ScreenGui.Frame.ScrollingFrame.TextBox local val = source.Value.Value if source then val = source.Text local code = loadstring(val) code() print("Success!") else print("Error while trying to load script") end
It says the error is on line 5. Please help.
Try this
source = script.Parent.ScreenGui.Frame.ScrollingFrame.TextBox local val = source.IntValue.Value -- You cant name a Value "Value" that will give errors if source then val = source.Text local code = loadstring(val) code() print("Success!") else print("Error while trying to load script") end