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 6 years ago
Edited 6 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 — 6y
0
I meant serverscriptservice sorry. Coasterteam 4 — 6y
0
It cut off important parts of the script. Can you fix it? Lines 12/13 & 5/6 personal_ly 151 — 6y
0
Bump Coasterteam 4 — 6y

Answer this question