How to change a player's package using scripts

Hello! I have recently been trying to make a morph command for a new game I am working on. This game is based off an old game called Kavra’s Kingdom which applies the Knights of Redcliff package using a command. After looking around a bit I can’t seem to find any simple stat that controls what package the player is using. ReplaceBodyPart15 seems to be what I am looking for but I can’t get it to work and the example code on the only thread I could find returns an error which I could not figure out how to solve. Some sample code of a body part being replaced would help or any tips if I am going about doing this the wrong way.

I think you are looking for something like this:
changing body part

Here is the sample code:

local Players = game:GetService("Players")
local handFolder = workspace.R15ArtistIntent

Players.PlayerAdded:Connect(function(player)
	player.CharacterAppearanceLoaded:Connect(function(char)
		char.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LeftHand,handFolder.LeftHand)
		char.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LeftLowerArm,handFolder.LeftLowerArm)
		char.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LeftUpperArm,handFolder.LeftUpperArm)
	end)
end)
1 Like

Just tried it and it works great. Thanks for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.