Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Decal4 = Instance.new("Decal")
- Decal5 = Instance.new("Decal")
- Decal6 = Instance.new("Decal")
- Decal7 = Instance.new("Decal")
- Decal8 = Instance.new("Decal")
- Decal9 = Instance.new("Decal")
- Model10 = Instance.new("Model")
- Part11 = Instance.new("Part")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Decal13 = Instance.new("Decal")
- Decal14 = Instance.new("Decal")
- Decal15 = Instance.new("Decal")
- Decal16 = Instance.new("Decal")
- Decal17 = Instance.new("Decal")
- Decal18 = Instance.new("Decal")
- Model19 = Instance.new("Model")
- Part20 = Instance.new("Part")
- SpecialMesh21 = Instance.new("SpecialMesh")
- Decal22 = Instance.new("Decal")
- Decal23 = Instance.new("Decal")
- Decal24 = Instance.new("Decal")
- Decal25 = Instance.new("Decal")
- Decal26 = Instance.new("Decal")
- Decal27 = Instance.new("Decal")
- Model28 = Instance.new("Model")
- Part29 = Instance.new("Part")
- SpecialMesh30 = Instance.new("SpecialMesh")
- Decal31 = Instance.new("Decal")
- Decal32 = Instance.new("Decal")
- Decal33 = Instance.new("Decal")
- Decal34 = Instance.new("Decal")
- Decal35 = Instance.new("Decal")
- Decal36 = Instance.new("Decal")
- Part37 = Instance.new("Part")
- Script38 = Instance.new("Script")
- Script39 = Instance.new("Script")
- Script40 = Instance.new("Script")
- Script41 = Instance.new("Script")
- LocalScript42 = Instance.new("LocalScript")
- Script43 = Instance.new("Script")
- Sound44 = Instance.new("Sound")
- Sound45 = Instance.new("Sound")
- CylinderMesh46 = Instance.new("CylinderMesh")
- Model47 = Instance.new("Model")
- Part48 = Instance.new("Part")
- SpecialMesh49 = Instance.new("SpecialMesh")
- Decal50 = Instance.new("Decal")
- Decal51 = Instance.new("Decal")
- Decal52 = Instance.new("Decal")
- Decal53 = Instance.new("Decal")
- Decal54 = Instance.new("Decal")
- Decal55 = Instance.new("Decal")
- Script56 = Instance.new("Script")
- Model57 = Instance.new("Model")
- Part58 = Instance.new("Part")
- SpecialMesh59 = Instance.new("SpecialMesh")
- Decal60 = Instance.new("Decal")
- Decal61 = Instance.new("Decal")
- Decal62 = Instance.new("Decal")
- Decal63 = Instance.new("Decal")
- Decal64 = Instance.new("Decal")
- Decal65 = Instance.new("Decal")
- Part66 = Instance.new("Part")
- SpecialMesh67 = Instance.new("SpecialMesh")
- Decal68 = Instance.new("Decal")
- Decal69 = Instance.new("Decal")
- Decal70 = Instance.new("Decal")
- Decal71 = Instance.new("Decal")
- Decal72 = Instance.new("Decal")
- Model0.Name = "Sonic Morph"
- Model0.Parent = mas
- Model1.Name = "Leg2"
- Model1.Parent = Model0
- Part2.Name = "Middle"
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(68.6252899, 1.02136803, 4.37042189, 0.99984169, 0.000312189572, -0.0176074207, -1.33543961e-06, 0.999839067, 0.0176535156, 0.0176102817, -0.0176524259, 0.999686956)
- Part2.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part2.Position = Vector3.new(68.6252899, 1.02136803, 4.37042189)
- Part2.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part2.Size = Vector3.new(1, 2, 1)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Institutional white")
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Institutional white")
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh3.Parent = Part2
- SpecialMesh3.Offset = Vector3.new(-0.125, 0, 0)
- SpecialMesh3.Scale = Vector3.new(0.75, 1, 0.75)
- SpecialMesh3.MeshType = Enum.MeshType.Brick
- Decal4.Parent = Part2
- Decal4.Texture = "http://www.roblox.com/asset/?id=336045592"
- Decal5.Parent = Part2
- Decal5.Texture = "http://www.roblox.com/asset/?id=336045607"
- Decal5.Face = Enum.NormalId.Left
- Decal6.Parent = Part2
- Decal6.Texture = "http://www.roblox.com/asset/?id=336045747"
- Decal6.Face = Enum.NormalId.Back
- Decal7.Parent = Part2
- Decal7.Texture = "http://www.roblox.com/asset/?id=336045766"
- Decal7.Face = Enum.NormalId.Right
- Decal8.Parent = Part2
- Decal8.Texture = "http://www.roblox.com/asset/?id=336045783"
- Decal8.Face = Enum.NormalId.Top
- Decal9.Parent = Part2
- Decal9.Texture = "http://www.roblox.com/asset/?id=336045801"
- Decal9.Face = Enum.NormalId.Bottom
- Model10.Name = "Leg1"
- Model10.Parent = Model0
- Part11.Name = "Middle"
- Part11.Parent = Model10
- Part11.CFrame = CFrame.new(67.625618, 1.02136803, 4.35284424, 0.99984169, 0.000312189572, -0.0176074207, -1.33543961e-06, 0.999839067, 0.0176535156, 0.0176102817, -0.0176524259, 0.999686956)
- Part11.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part11.Position = Vector3.new(67.625618, 1.02136803, 4.35284424)
- Part11.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part11.Size = Vector3.new(1, 2, 1)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Institutional white")
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Institutional white")
- Part11.FormFactor = Enum.FormFactor.Symmetric
- Part11.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh12.Parent = Part11
- SpecialMesh12.Offset = Vector3.new(0.125, 0, 0)
- SpecialMesh12.Scale = Vector3.new(0.75, 1, 0.75)
- SpecialMesh12.MeshType = Enum.MeshType.Brick
- Decal13.Parent = Part11
- Decal13.Texture = "http://www.roblox.com/asset/?id=336045592"
- Decal14.Parent = Part11
- Decal14.Texture = "http://www.roblox.com/asset/?id=336045607"
- Decal14.Face = Enum.NormalId.Left
- Decal15.Parent = Part11
- Decal15.Texture = "http://www.roblox.com/asset/?id=336045747"
- Decal15.Face = Enum.NormalId.Back
- Decal16.Parent = Part11
- Decal16.Texture = "http://www.roblox.com/asset/?id=336045766"
- Decal16.Face = Enum.NormalId.Right
- Decal17.Parent = Part11
- Decal17.Texture = "http://www.roblox.com/asset/?id=336045783"
- Decal17.Face = Enum.NormalId.Top
- Decal18.Parent = Part11
- Decal18.Texture = "http://www.roblox.com/asset/?id=336045801"
- Decal18.Face = Enum.NormalId.Bottom
- Model19.Name = "Chest"
- Model19.Parent = Model0
- Part20.Name = "Middle"
- Part20.Parent = Model19
- Part20.CFrame = CFrame.new(68.1260147, 3.02045012, 4.32592678, 0.99984169, 0.000312189572, -0.0176074207, -1.33543961e-06, 0.999839067, 0.0176535156, 0.0176102817, -0.0176524259, 0.999686956)
- Part20.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part20.Position = Vector3.new(68.1260147, 3.02045012, 4.32592678)
- Part20.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part20.Size = Vector3.new(2, 2, 1)
- Part20.Anchored = true
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Institutional white")
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Institutional white")
- Part20.FormFactor = Enum.FormFactor.Symmetric
- Part20.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh21.Parent = Part20
- SpecialMesh21.Scale = Vector3.new(0.75, 1, 0.75)
- SpecialMesh21.MeshType = Enum.MeshType.Brick
- Decal22.Parent = Part20
- Decal22.Texture = "http://www.roblox.com/asset/?id=336045888"
- Decal23.Parent = Part20
- Decal23.Texture = "http://www.roblox.com/asset/?id=336045912"
- Decal23.Face = Enum.NormalId.Left
- Decal24.Parent = Part20
- Decal24.Texture = "http://www.roblox.com/asset/?id=336045922"
- Decal24.Face = Enum.NormalId.Back
- Decal25.Parent = Part20
- Decal25.Texture = "http://www.roblox.com/asset/?id=336045940"
- Decal25.Face = Enum.NormalId.Right
- Decal26.Parent = Part20
- Decal26.Texture = "http://www.roblox.com/asset/?id=336045977"
- Decal26.Face = Enum.NormalId.Top
- Decal27.Parent = Part20
- Decal27.Texture = "http://www.roblox.com/asset/?id=336046001"
- Decal27.Face = Enum.NormalId.Bottom
- Model28.Name = "Arm1"
- Model28.Parent = Model0
- Part29.Name = "Middle"
- Part29.Parent = Model28
- Part29.CFrame = CFrame.new(66.6265717, 3.02053094, 4.29962111, 0.999844909, 0.000312232412, -0.0176075995, -1.32663979e-06, 0.999844134, 0.0176547691, 0.0176102817, -0.0176520068, 0.999689102)
- Part29.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part29.Position = Vector3.new(66.6265717, 3.02053094, 4.29962111)
- Part29.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part29.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part29.Size = Vector3.new(1, 2, 1)
- Part29.Anchored = true
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.BrickColor = BrickColor.new("Institutional white")
- Part29.Material = Enum.Material.SmoothPlastic
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.brickColor = BrickColor.new("Institutional white")
- Part29.FormFactor = Enum.FormFactor.Symmetric
- Part29.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh30.Parent = Part29
- SpecialMesh30.Offset = Vector3.new(0.375, 0, 0)
- SpecialMesh30.Scale = Vector3.new(0.75, 1, 0.75)
- SpecialMesh30.MeshType = Enum.MeshType.Brick
- Decal31.Parent = Part29
- Decal31.Texture = "http://www.roblox.com/asset/?id=336045358"
- Decal32.Parent = Part29
- Decal32.Texture = "http://www.roblox.com/asset/?id=336045368"
- Decal32.Face = Enum.NormalId.Left
- Decal33.Parent = Part29
- Decal33.Texture = "http://www.roblox.com/asset/?id=336045376"
- Decal33.Face = Enum.NormalId.Back
- Decal34.Parent = Part29
- Decal34.Texture = "http://www.roblox.com/asset/?id=336045385"
- Decal34.Face = Enum.NormalId.Right
- Decal35.Parent = Part29
- Decal35.Texture = "http://www.roblox.com/asset/?id=336045394"
- Decal35.Face = Enum.NormalId.Top
- Decal36.Parent = Part29
- Decal36.Texture = "http://www.roblox.com/asset/?id=336045403"
- Decal36.Face = Enum.NormalId.Bottom
- Part37.Name = "Head"
- Part37.Parent = Model0
- Part37.CFrame = CFrame.new(68.2756805, 0.100084998, 0.85769701, 0.999996841, -1.64996891e-07, 3.60608101e-06, 1.36153233e-07, 0.999994814, -3.82900325e-05, -3.51667404e-06, 3.66732493e-05, 0.999997854)
- Part37.Position = Vector3.new(68.2756805, 0.100084998, 0.85769701)
- Part37.Color = Color3.new(1, 0.8, 0.6)
- Part37.Size = Vector3.new(4, 0.200000003, 4)
- Part37.Anchored = true
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.BrickColor = BrickColor.new("Pastel brown")
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.brickColor = BrickColor.new("Pastel brown")
- Part37.FormFactor = Enum.FormFactor.Custom
- Part37.formFactor = Enum.FormFactor.Custom
- Script38.Name = "HatRemover"
- Script38.Parent = Part37
- table.insert(cors,sandbox(Script38,function()
- function onTouched(hit)
- local d = hit.Parent:GetChildren()
- for i=1, #d do
- if (d[i].className == "Hat") then
- d[i]:remove()
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script39.Parent = Part37
- table.insert(cors,sandbox(Script39,function()
- -- declarations
- local head = script.Parent
- local sound = head:findFirstChild("Victory")
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- sound:play()
- if part.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end
- part.Parent:findFirstChild("Head"):findFirstChild("face").Texture="717dea9c5a1659640155f77c84892c " end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script40.Parent = Part37
- table.insert(cors,sandbox(Script40,function()
- -- declarations
- local head = script.Parent
- local sound = head:findFirstChild("Victory")
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- sound:play()
- if part.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end
- part.Parent:findFirstChild("Head"):findFirstChild("face").Texture="717dea9c5a1659640155f77c84892c " end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script41.Name = "Stepped"
- Script41.Parent = Part37
- table.insert(cors,sandbox(Script41,function()
- local Button = script.Parent
- local Sound = Button:WaitForChild("Sound") -- change if you change the name of the sound
- local SoundPlayer = script:WaitForChild("SoundPlayer")
- function GiveSound(Character)
- local Player = game.Players:GetPlayerFromCharacter(Character)
- if Player ~= nil then
- local PlayerGui = Player:FindFirstChild("PlayerGui")
- if PlayerGui ~= nil then
- local SoundScript = SoundPlayer:clone()
- local SoundCopy = Sound:clone()
- SoundCopy.Name = "Sound"
- SoundCopy.Parent = SoundScript
- SoundScript.Parent = PlayerGui
- SoundScript.Disabled = false
- end
- end
- end
- function Stepped(Part)
- if Part.Parent == nil then return end
- GiveSound(Part.Parent)
- end
- Button.Touched:connect(Stepped)
- end))
- LocalScript42.Name = "SoundPlayer"
- LocalScript42.Parent = Script41
- table.insert(cors,sandbox(LocalScript42,function()
- local Camera = game.Workspace.CurrentCamera
- local Sound = script:WaitForChild("Sound")
- local RobloxHasWorkingIsPlaying = false -- change me to true when roblox updates IsPlaying
- local SoundDeleteTimeForNonLooped = 1 -- set me while roblox still has non working IsPlaying
- function PlaySound()
- Sound.Name = "SteppedSound"
- Sound.Parent = Camera
- if RobloxHasWorkingIsPlaying then
- Sound.Changed:connect(function(Property) if Property == "IsPlaying" and Sound.IsPlaying == false then Sound:Destroy(); script:Destroy() end end)
- Sound:Play()
- elseif not Sound.Looped then
- game.Debris:AddItem(Sound,SoundDeleteTimeForNonLooped)
- Sound:Play()
- script:Destroy()
- else
- Sound:Play()
- script:Destroy()
- end
- end
- function Soundify()
- local OldSound = Camera:FindFirstChild("SteppedSound")
- if OldSound ~= nil then
- if OldSound.SoundId ~= Sound.SoundId then
- OldSound:Destroy()
- PlaySound()
- else
- script:Destroy()
- end
- else
- PlaySound()
- end
- end
- Soundify()
- end))
- LocalScript42.Disabled = true
- Script43.Name = "Morph Script"
- Script43.Parent = Part37
- table.insert(cors,sandbox(Script43,function()
- function onTouched(hit)
- if hit.Parent:findFirstChild("Arm1") ~= nil then
- hit.Parent:findFirstChild("Arm1"):Destroy()
- end
- if hit.Parent:findFirstChild("Arm2") ~= nil then
- hit.Parent:findFirstChild("Arm2"):Destroy()
- end
- if hit.Parent:findFirstChild("Leg1") ~= nil then
- hit.Parent:findFirstChild("Leg1"):Destroy()
- end
- if hit.Parent:findFirstChild("Leg2") ~= nil then
- hit.Parent:findFirstChild("Leg2"):Destroy()
- end
- if hit.Parent:findFirstChild("Chest") ~= nil then
- hit.Parent:findFirstChild("Chest"):Destroy()
- end
- if hit.Parent:findFirstChild("xHead") ~= nil then
- hit.Parent:findFirstChild("xHead"):Destroy()
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Arm1") == nil then
- local g = script.Parent.Parent.Arm1:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" or C[i].className == "UnionOperation" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent["Left Arm"]
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- if h[i].className == "Part" or C[i].className == "UnionOperation" then
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Arm2") == nil then
- local g = script.Parent.Parent.Arm2:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" or C[i].className == "UnionOperation" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent["Right Arm"]
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- if h[i].className == "Part" or C[i].className == "UnionOperation" then
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Leg1") == nil then
- local g = script.Parent.Parent.Leg1:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" or C[i].className == "UnionOperation" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent["Left Leg"]
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- if h[i].className == "Part" or C[i].className == "UnionOperation" then
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Leg2") == nil then
- local g = script.Parent.Parent.Leg2:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" or C[i].className == "UnionOperation" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent["Right Leg"]
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- if h[i].className == "Part" or C[i].className == "UnionOperation" then
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("xHead") == nil then
- local g = script.Parent.Parent.xHead:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" or C[i].className == "UnionOperation" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent["Head"]
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- if h[i].className == "Part" or C[i].className == "UnionOperation" then
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Chest") == nil then
- local g = script.Parent.Parent.Chest:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" or C[i].className == "UnionOperation" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent.Torso
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- if h[i].className == "Part" or C[i].className == "UnionOperation" then
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- hit.Parent:findFirstChild("Head").BrickColor = BrickColor.new(125)
- hit.Parent:findFirstChild("Head").Transparency = 0.98
- hit.Parent:findFirstChild("Torso").BrickColor = BrickColor.new(23)
- hit.Parent:findFirstChild("Torso").Transparency = 1
- hit.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(23)
- hit.Parent:findFirstChild("Left Arm").Transparency = 1
- hit.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(23)
- hit.Parent:findFirstChild("Right Arm").Transparency = 1
- hit.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(23)
- hit.Parent:findFirstChild("Left Leg").CanCollide = true
- hit.Parent:findFirstChild("Left Leg").Transparency = 1
- hit.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(23)
- hit.Parent:findFirstChild("Right Leg").CanCollide = true
- hit.Parent:findFirstChild("Right Leg").Transparency = 1
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound44.Name = "Victory"
- Sound44.Parent = Part37
- Sound44.EmitterSize = 0
- Sound44.MinDistance = 0
- Sound44.Pitch = 0
- Sound44.PlaybackSpeed = 0
- Sound44.SoundId = "rbxassetid://144093272"
- Sound44.Volume = 1
- Sound45.Parent = Part37
- Sound45.EmitterSize = 0
- Sound45.MinDistance = 0
- Sound45.SoundId = "http://www.roblox.com/asset/?id=229460162"
- Sound45.Volume = 1
- CylinderMesh46.Parent = Part37
- Model47.Name = "Arm2"
- Model47.Parent = Model0
- Part48.Name = "Middle"
- Part48.Parent = Model47
- Part48.CFrame = CFrame.new(69.6255722, 3.02052593, 4.35232496, 0.999844909, 0.000312232412, -0.0176075995, -1.32663979e-06, 0.999844134, 0.0176547691, 0.0176102817, -0.0176520068, 0.999689102)
- Part48.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part48.Position = Vector3.new(69.6255722, 3.02052593, 4.35232496)
- Part48.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part48.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part48.Size = Vector3.new(1, 2, 1)
- Part48.Anchored = true
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.BrickColor = BrickColor.new("Institutional white")
- Part48.Material = Enum.Material.SmoothPlastic
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part48.brickColor = BrickColor.new("Institutional white")
- Part48.FormFactor = Enum.FormFactor.Symmetric
- Part48.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh49.Parent = Part48
- SpecialMesh49.Offset = Vector3.new(-0.375, 0, 0)
- SpecialMesh49.Scale = Vector3.new(0.75, 1, 0.75)
- SpecialMesh49.MeshType = Enum.MeshType.Brick
- Decal50.Parent = Part48
- Decal50.Texture = "http://www.roblox.com/asset/?id=336045358"
- Decal51.Parent = Part48
- Decal51.Texture = "http://www.roblox.com/asset/?id=336045368"
- Decal51.Face = Enum.NormalId.Left
- Decal52.Parent = Part48
- Decal52.Texture = "http://www.roblox.com/asset/?id=336045376"
- Decal52.Face = Enum.NormalId.Back
- Decal53.Parent = Part48
- Decal53.Texture = "http://www.roblox.com/asset/?id=336045385"
- Decal53.Face = Enum.NormalId.Right
- Decal54.Parent = Part48
- Decal54.Texture = "http://www.roblox.com/asset/?id=336045394"
- Decal54.Face = Enum.NormalId.Top
- Decal55.Parent = Part48
- Decal55.Texture = "http://www.roblox.com/asset/?id=336045403"
- Decal55.Face = Enum.NormalId.Bottom
- Script56.Name = "Instructions"
- Script56.Parent = Model0
- table.insert(cors,sandbox(Script56,function()
- --[[how to make a morph that works with meshes and unions!
- take a regular brick, make it look like whatever you want,
- put it on the person where you want it to be,
- and put it in the model inside the morph that the brick is on
- its that easy!
- Credit to blockgun
- ~hiimcool34]]
- end))
- Model57.Name = "xHead"
- Model57.Parent = Model0
- Part58.Name = "Middle"
- Part58.Parent = Model57
- Part58.CFrame = CFrame.new(68.1269226, 4.51982021, 4.29913282, 0.99984169, 0.000312189572, -0.0176074207, -1.33543961e-06, 0.999839067, 0.0176535156, 0.0176102817, -0.0176524259, 0.999686956)
- Part58.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part58.Position = Vector3.new(68.1269226, 4.51982021, 4.29913282)
- Part58.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part58.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part58.Size = Vector3.new(2, 1, 1)
- Part58.Anchored = true
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.BrickColor = BrickColor.new("Institutional white")
- Part58.Material = Enum.Material.SmoothPlastic
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part58.brickColor = BrickColor.new("Institutional white")
- Part58.FormFactor = Enum.FormFactor.Symmetric
- Part58.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh59.Parent = Part58
- SpecialMesh59.Offset = Vector3.new(0, 0.25, 0)
- SpecialMesh59.Scale = Vector3.new(0.75, 1.5, 1.5)
- SpecialMesh59.MeshType = Enum.MeshType.Brick
- Decal60.Parent = Part58
- Decal60.Texture = "http://www.roblox.com/asset/?id=336045417"
- Decal61.Parent = Part58
- Decal61.Texture = "http://www.roblox.com/asset/?id=336045436"
- Decal61.Face = Enum.NormalId.Left
- Decal62.Parent = Part58
- Decal62.Texture = "http://www.roblox.com/asset/?id=336045466"
- Decal62.Face = Enum.NormalId.Back
- Decal63.Parent = Part58
- Decal63.Texture = "http://www.roblox.com/asset/?id=336045476"
- Decal63.Face = Enum.NormalId.Right
- Decal64.Parent = Part58
- Decal64.Texture = "http://www.roblox.com/asset/?id=336045490"
- Decal64.Face = Enum.NormalId.Top
- Decal65.Parent = Part58
- Decal65.Texture = "http://www.roblox.com/asset/?id=336045517"
- Decal65.Face = Enum.NormalId.Bottom
- Part66.Parent = Model57
- Part66.CFrame = CFrame.new(68.1269226, 4.51982021, 4.29913282, 0.99984169, 0.000312189572, -0.0176074207, -1.33543961e-06, 0.999839067, 0.0176535156, 0.0176102817, -0.0176524259, 0.999686956)
- Part66.Orientation = Vector3.new(-1.00999999, -1.00999999, 0)
- Part66.Position = Vector3.new(68.1269226, 4.51982021, 4.29913282)
- Part66.Rotation = Vector3.new(-1.00999999, -1.00999999, -0.0199999996)
- Part66.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part66.Transparency = 1
- Part66.Size = Vector3.new(2, 1, 1)
- Part66.Anchored = true
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.BrickColor = BrickColor.new("Institutional white")
- Part66.Material = Enum.Material.SmoothPlastic
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.brickColor = BrickColor.new("Institutional white")
- Part66.FormFactor = Enum.FormFactor.Symmetric
- Part66.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh67.Parent = Part66
- SpecialMesh67.Offset = Vector3.new(0, 0.25, 0)
- SpecialMesh67.Scale = Vector3.new(0.875, 1.75, 1.75)
- SpecialMesh67.MeshType = Enum.MeshType.Brick
- Decal68.Parent = Part66
- Decal68.Texture = "http://www.roblox.com/asset/?id=336045814"
- Decal69.Parent = Part66
- Decal69.Texture = "http://www.roblox.com/asset/?id=336045831"
- Decal69.Face = Enum.NormalId.Left
- Decal70.Parent = Part66
- Decal70.Texture = "http://www.roblox.com/asset/?id=336045842"
- Decal70.Face = Enum.NormalId.Back
- Decal71.Parent = Part66
- Decal71.Texture = "http://www.roblox.com/asset/?id=336045861"
- Decal71.Face = Enum.NormalId.Right
- Decal72.Parent = Part66
- Decal72.Texture = "http://www.roblox.com/asset/?id=336045872"
- Decal72.Face = Enum.NormalId.Top
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement