RemoteEvent Call Not Working

When I Call The Event It Prints But This Script Isn’t Getting The Call For Some Reason.

This Is The One That Doesn’t Work

local RepS = game:GetService("ReplicatedStorage")
local Event = RepS:WaitForChild("EventFolder").StartSelect

Event.OnClientEvent:Connect(function()
    print("Workspace Has The Call")
end)

This Calls The Event.

local RepS = game:GetService("ReplicatedStorage")
local Event = RepS:WaitForChild("EventFolder").StartSelect

script.Parent.MouseButton1Click:Connect(function()
    Event:FireServer()
    print("Fired Map Select")
end)

try this

local RepS = game:GetService("ReplicatedStorage")
local Event = RepS:WaitForChild("EventFolder").StartSelect -- just use "RepS" it's already defined

Event.OnClientEvent:Connect(function()
    print("Workspace Has The Call")
end)

Edit: Also, in case this doesn’t work, what script class is this?

1 Like

Try changing Event.OnClientEvent to Event.OnServerEvent? RemoteEvents can only pass through from the server to the client/client to the server

2 Likes

You need to change the .OnClientEvent to .OnServerEvent.

Event.OnServerEvent:Connect(function()
    print("Workspace Has The Call")
end)
2 Likes