so the title might not make sense but bare with me, im making a GUI that can run scripts on the Server, im having an issue with the script saying "The current identity (2) cannot ExecuteScript (5)" these are the scripts
i first put a RemoteEvent in repStorage then i put a local script in my execute button
local RepService = game:GetService("ReplicatedStorage")
local Event = RepService.RemoteEvent
script.Parent.MouseButton1Click:Connect(function()
Event:FireServer(script.Parent.Parent.ScriptBox.Text)
end)
I then make a script inside of ServerScriptService
local LogService = game:GetService("LogService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage.RemoteEvent
Event.OnServerEvent:Connect(function(player, text)
LogService:ExecuteScript(text)
end)
if you can help me, that would be greatly appreciated!

4 comments
If you visit LogService:ExecuteScript's API reference, you'll notice a "RobloxScriptSecurity" tag. This tag states that the method is only available to CoreScripts.
Look into "loadstring". Also, you'll want to secure your RemoteEvent to ensure that no exploiter can execute server-sided code too.
What are you gonna do with the executor?
To make almost like a script builder @NotThatFamouss