I am trying to make an executor that can fire events to the server. This is the local script in the executor:
script.Parent.Parent.executor.input.ClearTextOnFocus = false
script.Parent.Parent.executor.input.MultiLine = true
local i = script.Parent.input.Text
local remote = game.ReplicatedStorage.emerald
script.Parent.execute.MouseButton1Down:connect(function()
remote:FireServer([[i]])
end)
And this is the server script:
-- server
local event = Instance.new("RemoteEvent", game.ReplicatedStorage)
event.Name = "emerald"
event.OnServerEvent:connect(function(plr, serverExecution)
loadstring(serverExecution)()
end)
I get the error:
21:55:25.539 - ServerScriptService.Script:6: attempt to call a nil value
21:55:25.540 - Stack Begin
21:55:25.540 - Script 'ServerScriptService.Script', Line 6
21:55:25.540 - Stack End
Any help?

2 comments
well, you arent updating the text variable when the player changes the text or clicks the button
how do i do that?