Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How I can make a morph script change packages?

How I can make this script change my character packages?, It changes the morph character but when I press the button, just change clothes body colors, etc, except the package

Is a script from a free model, Oof

script.Parent.BrickColor = BrickColor.new("Bright yellow")

function onTouch(hit)
	if (Lock == nil) then
		Lock = true
		script.Parent.BrickColor = BrickColor.new("Medium stone grey")

		CanMorph = nil
		BodyParts = hit.Parent:GetChildren()
		for i,b in pairs(BodyParts) do
			if (b.className == "Humanoid") then
				CanMorph = true
			end
			wait(0.1)
		end
		if (CanMorph == nil) then
			script.Parent.BrickColor = BrickColor.new("Bright yellow")
			Lock = nil
			return
		end

		script.Parent.BrickColor = BrickColor.new("Black")
		g.Parent = game.Players:findFirstChild(hit.Parent.Name).PlayerGui

		BodyParts = hit.Parent:GetChildren()
		for i,b in pairs(BodyParts) do
			if (b.className == "Hat") or (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then
				b:Remove()
			end
			if (b.className == "Part") then
				if (b.Name == "Torso") then
					if (b:findFirstChild("roblox") ~= nil) then
						b.roblox:Remove()
					elseif (b:findFirstChild("Decal") ~= nil) then
						b.Decal:Remove()
					end
				end
				if (b.Name == "Head") then
					if (b:findFirstChild("Mesh") ~= nil) then
						b.Mesh:Remove()
					end
				end
			end
			wait(0.1)
		end

		BodyParts = script.Parent.Parent:GetChildren()
		for i,b in pairs(BodyParts) do
			if (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then
				b:Clone().Parent = hit.Parent
			end
			if (b.className == "BodyColors") and (hit.Parent:findFirstChild("Body Colors") ~= nil) then
				hit.Parent:findFirstChild("Body Colors").HeadColor= b.HeadColor
				hit.Parent:findFirstChild("Body Colors").LeftArmColor= b.LeftArmColor
				hit.Parent:findFirstChild("Body Colors").LeftLegColor= b.LeftLegColor
				hit.Parent:findFirstChild("Body Colors").RightArmColor= b.RightArmColor
				hit.Parent:findFirstChild("Body Colors").RightLegColor= b.RightLegColor
				hit.Parent:findFirstChild("Body Colors").TorsoColor= b.TorsoColor
			end
			if (b.className == "Part") then
				if (b.Name == "Torso") then
					if (b:findFirstChild("roblox") ~= nil) then
						b.roblox:Clone().Parent = hit.Parent.Torso
					elseif (script.Parent.Parent.Torso:findFirstChild("Decal") ~= nil) then
						b.Decal:Clone().Parent = hit.Parent.Torso
					end
				end
				if (b.Name == "Head") then
					if (b:findFirstChild("face") ~= nil) then
						hit.Parent.Head.face.Texture = b.face.Texture
					elseif (script.Parent.Parent.Head:findFirstChild("Decal") ~= nil) then
						hit.Parent.Head.face.Texture = b.Decal.Texture
					end
					if (b:findFirstChild("Mesh") ~= nil) then
						b.Mesh:Clone().Parent = hit.Parent.Head
					end
				end
			end
			if (b.className == "Accessory") then
				local h = Instance.new("Accessory")
				h.Name = b.Name
				h.AttachmentPos = b.AttachmentPos
				b.Handle:Clone().Parent = h
				h.Parent = hit.Parent
			end
			wait(0.1)
		end

		g.Parent = nil
		script.Parent.BrickColor = BrickColor.new("Bright yellow")
		Lock = nil
	end
end

script.Parent.Touched:connect(onTouch)


7 comments

0

Either it's me or I can't quite understand your question, could you rephrase?

0

Sure

0

Is there any errors that get printed in output when you run the script? If so, provide them, this script looks very messy.

0

Because this morph script is meant for R6, so if you have a R15 and interacting with it, it will error.

0

There no problem, but even with that Package "Video animations", it not works

0

How I can make it R15?

0

You'd have to reprogram a lot of it -- even stuff I don't know, if you wanna make it R15. There is people who have made such, but I don't know where.

1 answer

✓ Accepted answer

I found a package giver that is compatible for R6 & R15, supposedly.

I haven't used it, so you can attempt to try it.

https://www.roblox.com/library/544389456/R6-R15-Compatible-Package-Giver

All I can say is good luck.

4 comments

0

Thanks pal

0

No problemo, I actually discovered I had used it before.

0

Another question, it haves aphelion package, but how I make with another packages?, the PackageID seems work weird

0

If you read it again, ¡It works!, but the ID was weird, the ID shows less a second but when pages loads, change again, thanks again anyways

This discussion is preserved as it was. New answers, comments, and votes are closed.