Attempting to pass a variable through a local script to a server script via remote not working

Greetings, I’m wondering if I’m doing this right, so I have a variable that can only really be found in the local script without using a backwards method, however when I do it, it says attempt to index nil with 'Name'

Parts of the code:

Server:

ReplicatedStorage.Remotes.Moves.Cloaker.Taunt.OnServerEvent:Connect(function(Player, Model)
	print("Target located: "..Model.Name)

Local:

		local Model = Mouse.Target:FindFirstAncestorOfClass("Model")

		if Model then
			local ClickedPlayer = game.Players:GetPlayerFromCharacter(Model)

			if not ClickedPlayer then
				Player.Character.HumanoidRootPart.CFrame = CFrame.new(Player.Character.HumanoidRootPart.Position, Vector3.new(Model.HumanoidRootPart.Position.X, Player.Character.HumanoidRootPart.Position.Y, Model.HumanoidRootPart.Position.Z)) -- < This recognizes the model as another player/npc, however the server script does not.

Looking forward to some help with this, been stuck here for a while.

Where do you actually FireServer() ?

Sorry, It’s in there, but as I said it’s only parts of the code such as just the important parts. The FireServer() is underneath the CFrame rotating.

No I mean can you show the part of the code that actually fires the server. The code you provided doesn’t show that anywhere. I’m asking because you might be passing arguments incorrectly

	if Input.KeyCode == Enum.KeyCode.T then

		local Model = Mouse.Target:FindFirstAncestorOfClass("Model")

		if Model then
			local ClickedPlayer = game.Players:GetPlayerFromCharacter(Model)

			if not ClickedPlayer then

				Player.Character.HumanoidRootPart.CFrame = CFrame.new(Player.Character.HumanoidRootPart.Position, Vector3.new(Model.HumanoidRootPart.Position.X, Player.Character.HumanoidRootPart.Position.Y, Model.HumanoidRootPart.Position.Z))
				
				Remote:FireServer()

Yeah, you need to pass the model along to the server. Try Remote:FireServer(Model)

Ah. Yeah that was it, I apologize as I’m not really experienced in remotes all that much. Thank you!