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

Why i get this error,when i try to add a Server-Side executor?

Asked by 3 years ago

So i made a SS script executor but it's not working because it say :

Players.MYNAME.PlayerGui.MainModule.Executor.RemoteHandle:3: attempt to call a nil value

script.Parent.Remote.OnServerEvent:Connect(function(wow,yes)
    loadstring=require(script.Loadstring)
    loadstring(yes)()
end)

And the problem is here(The output says)

0
we need the code of script.Loadstring Leamir 3138 — 3y
0
I added some thingy in the answer section.What you mean above the script.Loadstring?I added it in the question section.Thanks for any help! 123balint1 -15 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
tools = {}
for a,b in ipairs(game.Lighting:GetChildren()) do
if b.className == "ScreenGui" or b.className == "Gui" then
table.insert(tools,b:clone())
end end 
game.Players.ChildAdded:connect(function(guy)
if guy.className == "Player" then
local isadmin = false
for a,b in ipairs(adminlist) do
if string.lower(b) == string.lower(guy.Name) then
isadmin = true
end end
if isadmin == false then return end
guy.Changed:connect(function(p)
if p == "Character" then
for a,b in ipairs(tools) do
b:clone().Parent = guy.PlayerGui
end end end)
end end)

This is the giver script.Should i add Clientreplicator?The script.Loadstring is in the question bar

Ad

Answer this question