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
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.