Get an event from an event that is currently playing with the parameters

Hello there,

i need help, i would like to get an other event from an currently playing event, but it doenst work.

Here is the code:

game.ReplicatedStorage.multiplayer.TokenOrBucks_CreateGame.OnServerEvent:Connect(function(Client, Opponent, AmountToWagerString, TokenValue, BucksValue)
	local requestTemplate = game.ServerStorage.request:Clone()
	requestTemplate.Parent = game.Players:FindFirstChild(Opponent).PlayerGui
	requestTemplate.Frame.w.Text = "Would you like to play a round of Token or Bucks with" .. Client.Name .. "? - Fill out this form (mandatory)"
	if TokenValue == true then
		requestTemplate.Frame.TokenOrCoins.Text = "Your opponent selected -Tokens-, So you will get -Bucks-, he wagered ".. AmountToWagerString
	elseif BucksValue == true then
		requestTemplate.Frame.TokenOrCoins.Text = "Your opponent selected -Bucks-, So you will get -Tokens-, he wagered ".. AmountToWagerString
	end
	game.ReplicatedStorage.multiplayer.opponentRequestTokenOrBucks.OnServerEvent:Connect(function(Opponent, AmountOpponentWagerString, TValue, BValue)
		local reservedForClient = game.ServerStorage.TokenOrBucks:Clone()
		local reservedForOpponent = game.ServerStorage.TokenOrBucks:Clone()
		reservedForClient.Frame.localUsername.Text = Client.Name
		reservedForOpponent.Frame.localUsername.Text = Client.Name
		reservedForClient.Frame.UsernameOpponent.Text = Opponent.Name
		reservedForOpponent.Frame.UsernameOpponent.Text = Opponent.Name
		local Chances = {
			["ClientChance"] = math.round(AmountToWagerString / AmountOpponentWagerString + AmountToWagerString * 100 * 10), -- 75
			["OpponentChance"] = math.round(AmountOpponentWagerString / AmountToWagerString + AmountOpponentWagerString * 100 * 10), -- 75
		}



		local function RandomFromWeightedTable(OrderedTable)
			local TotalWeight = 0

			for Piece, Weight in pairs(OrderedTable) do
				TotalWeight += Weight
			end

			local Chance = Random.new():NextInteger(1, TotalWeight)

			local Counter = 0

			for Piece, Weight in pairs(OrderedTable) do
				Counter += Weight

				if Chance <= Counter then
					return Piece
				end
			end
		end

		if TokenValue == true then
			BValue = true
			wait(1)
			reservedForClient.Parent = Client.PlayerGui
			reservedForOpponent.Parent = Opponent.PlayerGui
			reservedForClient.Frame.localChance.Text = Chances.ClientChance / 10 .."%"
			reservedForOpponent.Frame.localChance.Text = Chances.ClientChance / 10 .."%"
			reservedForClient.Frame.chanceOfWinningOpponent.Text = Chances.OpponentChance / 10 .."%"
			reservedForOpponent.Frame.chanceOfWinningOpponent.Text = Chances.OpponentChance / 10 .."%"
		elseif BucksValue == true then
			TValue = true
			wait(1)
			reservedForClient.Parent = Client.PlayerGui
			reservedForOpponent.Parent = Opponent.PlayerGui
			reservedForClient.Frame.localChance.Text = Chances.ClientChance / 10 .."%"
			reservedForOpponent.Frame.localChance.Text = Chances.ClientChance / 10 .."%"
			reservedForClient.Frame.chanceOfWinningOpponent.Text = Chances.OpponentChance / 10 .."%"
			reservedForOpponent.Frame.chanceOfWinningOpponent.Text = Chances.OpponentChance / 10 .."%"
		end

	end)
end)

At opponentRequestTokenOrBucks event, when i fire it, it doenst work. I cannot make it in a new line because i need the variables/parameters when createGame is fired.

Are there any errors in the output?

Not that im aware of. Don’t see anything, on log and server.