this is my code however when the remoteevent runs it makesthe whole player fall down to the void and the character is not connected with the custom r15 character thats supposed to be the starterskin
local remote = game.ReplicatedStorage:WaitForChild("SwitchSkin")
remote.OnServerEvent:Connect(function(player)
local cframe = game.Workspace:FindFirstChild(player.Name).HumanoidRootPart.CFrame
local oldcharacter = player.Character
local skin = game.ReplicatedStorage:FindFirstChild("StarterSkin")
local newSkin = skin:Clone()
newSkin.Name = player.Name
player.Character = newSkin
newSkin.Parent = workspace
newSkin.HumanoidRootPart.CFrame = CFrame.new(cframe)
end)