RemoteEvents do not like me today. Client prints, server doesnt print anything. There's a remote event in the ReplicatedStorage, player is in a vehicle seat during this. Server script is in ServerScriptService, client script is in StarterGUI.

-- Clientside
function keyDown(key, gameEvent) 
    if not gameEvent then
    print(key.KeyCode)
    game:GetService("ReplicatedStorage"):WaitForChild("Blinkers")
(continued):FireServer(key)
    end
end

game:GetService("UserInputService").InputBegan:Connect(keyDown)

-- Server side 
game:GetService("ReplicatedStorage"):WaitForChild("Blinkers").OnServerEvent
(continued):Connect(function(player, side)
    print("got it")
end)

What am I doing wrong? note, (continue) is just so it fits on the website, its not actually in the code

4 comments

0

ServerScriptStorage?

0

I meant serverscriptservice sorry.

0

It cut off important parts of the script. Can you fix it? Lines 12/13 & 5/6

0

Bump