Frameee
Frameee
--[[ Don't Uncomment unless you are framing from your own POV
local DHC = "$91,984,786" -- keep it as nil if u dont want it changed
--]]
function Morph(UserId,Name)
local appearance = game.Players:GetCharacterAppearanceAsync(UserId)
local player = game.Players:FindFirstChild(Name)
for i,v in pairs(player.Character:GetChildren()) do
if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") or
v:IsA("CharacterMesh") or v:IsA("BodyColors") then
v:Destroy()
end
end
for i, v in pairs(appearance:GetDescendants()) do
if v:IsA("Animation") and CopyAnimations then
local animationParent =
game.Players[framing].Character:FindFirstChild("Animate")
if animationParent and animationParent:FindFirstChild(v.Parent.Name)
then
local animationObject =
animationParent[v.Parent.Name]:FindFirstChild(v.Name)
if animationObject and animationObject:IsA("Animation") then
animationObject.AnimationId = v.AnimationId
end
end
end
end
if player.Character.Head:FindFirstChild("face") then
player.Character.Head.face:Destroy()
end
for i,v in pairs(appearance:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
v.Parent = player.Character
elseif v:IsA("Accessory") then
player.Character.Humanoid:AddAccessory(v)
elseif v.Name == "R15" then
if player.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
v:FindFirstChildOfClass("CharacterMesh").Parent = player.Character
end
end
end
if appearance:FindFirstChild("face") then
appearance.face.Parent = player.Character.Head
else
local face = Instance.new("Decal")
face.Face = "Front"
face.Name = "face"
face.Texture = "rbxasset://textures/face.png"
face.Transparency = 0
face.Parent = player.Character.Head
end
local parent = player.Character.Parent
player.Character.Parent = nil
player.Character.Parent = parent
end
--[[ Don't Uncomment unless you are framing from your own POV
game.Players.LocalPlayer.PlayerGui.MainScreenGui.MoneyText.Text = DHC
game.Players.LocalPlayer.PlayerGui.MainScreenGui.Leaderboard.PlayerScroll.TextLabel
.Text = framedUser
--]]
game.Players[framing].Name = framedUser