All i want to do is a dev console. Here's the script and error:
Script:
script.Parent.TextButton.MouseButton1Click:Connect(function(player)
local CurrentScript = false
CurrentScript = script.Parent.TextBox.Text
CurrentScript()
end)
Error:
attempt to call local 'CurrentScript' (a string value)
Well every time i try to use the console, it gives me an error. How can i turn the code i put in the textbox into a script instead of string?

1 comment
I know that it's a string. The thing is that my friend is the owner of the game, and only the owner have acess to Developer Console.