Is there any better way to make that player turn into a prop when the function is called. Right now the player turns into a prop but it just doesn't feel right cause the camera turns to 90 degrees which i don't want it to do. I want it to stay the same.

Modulescript:

function module:ChangeProp(player, prop)
	if player.Character then
		local char = player.Character
		local Origin = char.HumanoidRootPart.Position
		
		local prop = game.ReplicatedStorage.Assets.Props[prop]:Clone()
		prop.Parent = game.StarterPlayer
		prop.Name = "StarterCharacter"
		
		char = prop
		player:LoadCharacter()
		
		workspace[player.Name]:SetPrimaryPartCFrame(CFrame.new(Origin))
	end
end

1 comment

0

Roblox has an asset called CharacterFetch, if that is what you are looking for.