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!