RemoteFunction not being invoked

Hey, so basically, I made a script that destroys the players character if they haven’t selected a fighter yet. It destroys the character correctly but the issue is, that for some reason, in the GUI a RemoteFunction that would spawn the player is not being invoked.
Here is my LocalScript, the weird thing is that there are no errors in the console whatsoever.

local TweenService = game:GetService("TweenService")
local fightbutton = script.Parent
local storebutton = script.Parent.Parent.Store
local settingsbutton = script.Parent.Parent.Settings
local characterbutton = script.Parent.Parent.Character

local divider1 = script.Parent.Parent.Divider1
local divider2 = script.Parent.Parent.Divider2

local credittext = script.Parent.Parent.Credit
local headtext = script.Parent.Parent.OverdriveText

local Remote = game:GetService("ReplicatedStorage"):WaitForChild("Remotes").RequestSpawn

local MainMenu = script.Parent.Parent.Parent
local bgm = script.Parent.Parent.BGM


fightbutton.MouseButton1Down:Connect(function()
	if fightbutton.TextColor3 == Color3.fromRGB(255, 255, 255) then
	fightbutton:TweenPosition(UDim2.new(0, 0, 0.272, 1), nil, nil, 0.5)
	wait(0.15)
	fightbutton.Visible = false
	characterbutton:TweenPosition(UDim2.new(0, 0, 0.322, 1), nil, nil, 0.5)
	wait(0.15)
	characterbutton.Visible = false
	storebutton:TweenPosition(UDim2.new(0, 0, 0.368, 1), nil, nil, 0.5)
	wait(0.15)
	storebutton.Visible = false
	settingsbutton:TweenPosition(UDim2.new(0, 0, 0.415, 1), nil, nil, 0.5)
	wait(0.5)
	settingsbutton.Visible = false
	divider1:TweenPosition(UDim2.new(0.5, 0 ,0.364, 0), nil, nil, 1.5)
	divider2:TweenPosition(UDim2.new(0.5, 0 ,0.364, 0), nil, nil, 1.5)
	wait(2)
	divider1:TweenPosition(UDim2.new(-0.350, 0, 0.364, 0), nil, nil, 1)
	divider2:TweenPosition(UDim2.new(-0.350, 0, 0.364, 0), nil, nil, 1)
	wait(1)
	headtext:TweenSize(UDim2.new(0, 0, 0, 0))
	wait(0.75)
	credittext:TweenSize(UDim2.new(0, 0, 0, 0))
	wait(0.75)
		Remote:InvokeServer()
		print("invoked")
		wait(0.25)
		bgm:Stop()
		local Players = game:GetService("Players")
		local Client = Players.LocalPlayer
		local PlayerUI = Client.PlayerGui
		local sound = PlayerUI:WaitForChild("CharBGM")
		sound:Play()
		MainMenu:Destroy()
	else end
	end)
1 Like

It worked before I implemented the thing that destroys the character