Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My script executer GUI wont execute?

Asked by 2 years 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 6913 — 2y
0
Look into "loadstring". Also, you'll want to secure your RemoteEvent to ensure that no exploiter can execute server-sided code too. Ziffixture 6913 — 2y
0
What are you gonna do with the executor? NotThatFamouss 605 — 2y
0
To make almost like a script builder @NotThatFamouss Black_Magic2533 104 — 2y

Answer this question