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

Remote Events are not firing at all, what am I doing wrong?

Asked by 7 years ago
Edited 7 years ago

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

0
ServerScriptStorage? User#5423 17 — 7y
0
I meant serverscriptservice sorry. Coasterteam 4 — 7y
0
It cut off important parts of the script. Can you fix it? Lines 12/13 & 5/6 personal_ly 151 — 7y
0
Bump Coasterteam 4 — 7y

Answer this question