im pretty new to remote events so don’t criticize me
this is my local script code:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Remotes.ExecuteAdmin:FireServer(tostring(script.Parent.Parent.Code.Text) )
print(tostring(script.Parent.Parent.Code.Text))
end)
You can see i print the output. Let’s say i did Print("Test")
it works:
But this is my server script:
local function Exe(Code)
print(Code)
loadstring(Code)()
end
game.ReplicatedStorage.Remotes.ExecuteAdmin.OnServerEvent:Connect(Exe)
when it prints, it prints my name??
I’m also met with this error.
What is happening here? Could someone explain?