Ad
Log in to vote
0

My script executer GUI wont execute?

Asked by 13 days ago

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!

0
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. Ziffixture 6863 — 13d
0
Look into "loadstring". Also, you'll want to secure your RemoteEvent to ensure that no exploiter can execute server-sided code too. Ziffixture 6863 — 13d
0
What are you gonna do with the executor? NotThatFamouss 576 — 13d
0
To make almost like a script builder @NotThatFamouss Black_Magic2533 43 — 12d

Answer this question