New Character Model not adding

What has to be achieved?

  • A simple script that allows a person to press a ScreenGUI button a change character using a Remote Event.

Whats the Issue?

  • Players character model being deleted

ServerScriptService Code:

game.ReplicatedStorage.Character.OnServerEvent:Connect(function(player, Class)
	local ClassCloned = game:GetService('ReplicatedStorage'):FindFirstChild(Class):Clone()
	
	player.Character = ClassCloned
	
end)

ScreenGUI Code:

local Rep = game:GetService('ReplicatedStorage')
local Event = Rep:FindFirstChild("Character")
local player = game.Players.LocalPlayer

script.Parent.TestFunction.MouseButton1Click:Connect(function()
	
	Event:FireServer(player, "Less")
	
end)

I noticed this issue:

When firing the server from client, the player is automatically the first argument there, no need to provide it.