local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GeneralSender = ReplicatedStorage:WaitForChild("GCSInteractor")
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then
print("KeyPressRecieved")
GeneralSender:FireServer()
end
end)
It's supposed to go to this script.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GeneralSender = ReplicatedStorage:WaitForChild("GCSInteractor")
local function onGeneralSender()
print("Launched!")
end
GeneralSender.OnServerEvent:Connect(onGeneralSender)
It works fine in Solo, but in server it doesn't work at all.
The first script is in a LocalScript in StarterCharacterScripts. The second script is in a model (Not a part) in game.Workspace.
Filtering enabled is on

2 comments
Thanks for the notice.
No problem, have fun scripting!