Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why can't my script read that i have called a remote event?

this is my receiving script:

local TeleportService = game:GetService("TeleportService")

local onevone = 2042766539

game.ReplicatedStorage.SendToGame.OnServerEvent:connect(function(mode,player1,player2)
    if mode == "onevone" then
    TeleportService:TeleportPartyAsync(onevone, {player1, player2})
    end
end)

when i do game.ReplicatedStorage.SendToGame:FireAllClients() it doesn't receive it

1 answer

✓ Accepted answer

The OnServerEvent event is triggered by calling the FireServer method of the same RemoteEvent.

The snippet of your clientside code which does this should be similar to the following:

game.ReplicatedStorage.SendToGame:FireServer(player1, player2)

Let me know on here or discord if you have questions.

amanda

This discussion is preserved as it was. New answers, comments, and votes are closed.