Advertisement
lafur

Untitled

Oct 22nd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.00 KB | None | 0 0
  1. --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
  2. --What's Added To M2S with Dittoide's Edit?
  3. --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
  4. --/ Removed Gui In Bottom-Left for when you are making guis.
  5. --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
  6. --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
  7. --Errors: Camera,Terrain
  8. local runDummyScript = function(f,scri)
  9. if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
  10. local Dummy_CoRoutine = coroutine.create(function()
  11. getfenv().script = scri
  12. ypcall(function() f() end)
  13. end)
  14. table.insert(cors,Dummy_CoRoutine);
  15. coroutine.resume(Dummy_CoRoutine);
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. mas.Name = "M2S_Model"
  20. o3 = Instance.new("Model")
  21. o4 = Instance.new("Model")
  22. o5 = Instance.new("Part")
  23. o6 = Instance.new("Model")
  24. o7 = Instance.new("Part")
  25. o8 = Instance.new("Model")
  26. o9 = Instance.new("Part")
  27. o10 = Instance.new("Part")
  28. o11 = Instance.new("SpecialMesh")
  29. o12 = Instance.new("Part")
  30. o13 = Instance.new("SpecialMesh")
  31. o14 = Instance.new("Part")
  32. o15 = Instance.new("SpecialMesh")
  33. o16 = Instance.new("Part")
  34. o17 = Instance.new("SpecialMesh")
  35. o18 = Instance.new("Model")
  36. o19 = Instance.new("Part")
  37. o20 = Instance.new("Humanoid")
  38. o21 = Instance.new("Part")
  39. o22 = Instance.new("Script")
  40. o23 = Instance.new("Script")
  41. o24 = Instance.new("Script")
  42. o25 = Instance.new("Script")
  43. o26 = Instance.new("LocalScript")
  44. o27 = Instance.new("Script")
  45. o28 = Instance.new("Script")
  46. o29 = Instance.new("Model")
  47. o30 = Instance.new("Part")
  48. o31 = Instance.new("SpecialMesh")
  49. o32 = Instance.new("Model")
  50. o33 = Instance.new("Part")
  51. o3.Name = "Despacito Spider"
  52. o3.Parent = mas
  53. o4.Name = "Leg2"
  54. o4.Parent = o3
  55. o5.Name = "Middle"
  56. o5.Parent = o4
  57. o5.Material = Enum.Material.SmoothPlastic
  58. o5.BrickColor = BrickColor.new("Toothpaste")
  59. o5.Transparency = 1
  60. o5.Position = Vector3.new(-4.84442091, 3.55425906, -13.0755157)
  61. o5.Rotation = Vector3.new(-21.5599995, 87.2399979, 21.539999)
  62. o5.Anchored = true
  63. o5.FormFactor = Enum.FormFactor.Symmetric
  64. o5.Size = Vector3.new(1, 2, 1)
  65. o5.CFrame = CFrame.new(-4.84442091, 3.55425906, -13.0755157, 0.0448689945, -0.017707983, 0.998835981, 0, 0.999842882, 0.0177258365, -0.99899286, -0.000795340398, 0.04486195)
  66. o5.BottomSurface = Enum.SurfaceType.Smooth
  67. o5.TopSurface = Enum.SurfaceType.Smooth
  68. o5.Color = Color3.new(0, 1, 1)
  69. o5.Position = Vector3.new(-4.84442091, 3.55425906, -13.0755157)
  70. o6.Name = "Leg1"
  71. o6.Parent = o3
  72. o7.Name = "Middle"
  73. o7.Parent = o6
  74. o7.Material = Enum.Material.SmoothPlastic
  75. o7.BrickColor = BrickColor.new("Toothpaste")
  76. o7.Transparency = 1
  77. o7.Position = Vector3.new(-4.88909912, 3.55425191, -12.0771484)
  78. o7.Rotation = Vector3.new(-21.5599995, 87.2399979, 21.539999)
  79. o7.Anchored = true
  80. o7.FormFactor = Enum.FormFactor.Symmetric
  81. o7.Size = Vector3.new(1, 2, 1)
  82. o7.CFrame = CFrame.new(-4.88909912, 3.55425191, -12.0771484, 0.0448689945, -0.017707983, 0.998835981, 0, 0.999842882, 0.0177258365, -0.99899286, -0.000795340398, 0.04486195)
  83. o7.BottomSurface = Enum.SurfaceType.Smooth
  84. o7.TopSurface = Enum.SurfaceType.Smooth
  85. o7.Color = Color3.new(0, 1, 1)
  86. o7.Position = Vector3.new(-4.88909912, 3.55425191, -12.0771484)
  87. o8.Name = "Chest"
  88. o8.Parent = o3
  89. o9.Name = "Middle"
  90. o9.Parent = o8
  91. o9.Material = Enum.Material.SmoothPlastic
  92. o9.BrickColor = BrickColor.new("Toothpaste")
  93. o9.Reflectance = 0.5
  94. o9.Transparency = 1
  95. o9.Position = Vector3.new(-4.9022522, 5.55323982, -12.5778961)
  96. o9.Rotation = Vector3.new(-21.5599995, 87.2399979, 21.539999)
  97. o9.Anchored = true
  98. o9.FormFactor = Enum.FormFactor.Symmetric
  99. o9.Size = Vector3.new(2, 2, 1)
  100. o9.CFrame = CFrame.new(-4.9022522, 5.55323982, -12.5778961, 0.0448689945, -0.017707983, 0.998835981, 0, 0.999842882, 0.0177258365, -0.99899286, -0.000795340398, 0.04486195)
  101. o9.BottomSurface = Enum.SurfaceType.Smooth
  102. o9.TopSurface = Enum.SurfaceType.Smooth
  103. o9.Color = Color3.new(0, 1, 1)
  104. o9.Position = Vector3.new(-4.9022522, 5.55323982, -12.5778961)
  105. o10.Name = "Biggerhead"
  106. o10.Parent = o8
  107. o10.Position = Vector3.new(-4.94131422, 4.43987703, -12.6244345)
  108. o10.Rotation = Vector3.new(-180, -88.8299942, 0)
  109. o10.Anchored = true
  110. o10.FormFactor = Enum.FormFactor.Plate
  111. o10.Size = Vector3.new(3, 3, 3)
  112. o10.CFrame = CFrame.new(-4.94131422, 4.43987703, -12.6244345, 0.0204270072, 0, -0.999791384, 0, -1, 0, -0.999791384, 0, -0.0204270072)
  113. o10.BottomSurface = Enum.SurfaceType.Smooth
  114. o10.TopSurface = Enum.SurfaceType.Smooth
  115. o10.Position = Vector3.new(-4.94131422, 4.43987703, -12.6244345)
  116. o11.Parent = o10
  117. o11.MeshId = "http://www.roblox.com/asset/?id=1047997"
  118. o11.Scale = Vector3.new(1.5, 1.5, 1.5)
  119. o11.TextureId = "http://www.roblox.com/asset/?id=606673948"
  120. o11.MeshType = Enum.MeshType.FileMesh
  121. o12.Name = "Bighead"
  122. o12.Parent = o8
  123. o12.Position = Vector3.new(-4.94134521, 6.29006481, -12.6244345)
  124. o12.Rotation = Vector3.new(0.359999985, 88.8299942, -0.359999985)
  125. o12.Anchored = true
  126. o12.FormFactor = Enum.FormFactor.Plate
  127. o12.Size = Vector3.new(2.90001917, 2.90001917, 2.90001917)
  128. o12.CFrame = CFrame.new(-4.94134521, 6.29006481, -12.6244345, 0.0204270072, 0.000130007291, 0.999791384, -6.30000213e-05, 1, -0.000128747255, -0.999791384, -6.0356957e-05, 0.0204270147)
  129. o12.BottomSurface = Enum.SurfaceType.Smooth
  130. o12.TopSurface = Enum.SurfaceType.Smooth
  131. o12.Position = Vector3.new(-4.94134521, 6.29006481, -12.6244345)
  132. o13.Parent = o12
  133. o13.MeshId = "http://www.roblox.com/asset/?id=1047997"
  134. o13.Scale = Vector3.new(1.45000958, 1.45000958, 1.45000958)
  135. o13.TextureId = "http://www.roblox.com/asset/?id=1047998"
  136. o13.MeshType = Enum.MeshType.FileMesh
  137. o14.Name = "SpiderLegs"
  138. o14.Parent = o8
  139. o14.Position = Vector3.new(-4.94128418, 3.81869411, -12.6244965)
  140. o14.Rotation = Vector3.new(0, 88.8299942, 0)
  141. o14.Anchored = true
  142. o14.FormFactor = Enum.FormFactor.Custom
  143. o14.Size = Vector3.new(7.24265194, 7.24265194, 0.905331492)
  144. o14.CFrame = CFrame.new(-4.94128418, 3.81869411, -12.6244965, 0.0204270072, 0, 0.999791384, 0, 1, 0, -0.999791384, 0, 0.0204270072)
  145. o14.BottomSurface = Enum.SurfaceType.Smooth
  146. o14.TopSurface = Enum.SurfaceType.Smooth
  147. o14.Position = Vector3.new(-4.94128418, 3.81869411, -12.6244965)
  148. o15.Parent = o14
  149. o15.MeshId = "rbxassetid://302260025"
  150. o15.Scale = Vector3.new(0.724265337, 0.724265337, 0.724265337)
  151. o15.TextureId = "rbxassetid://302260095"
  152. o15.MeshType = Enum.MeshType.FileMesh
  153. o16.Name = "SpiderLegs"
  154. o16.Parent = o14
  155. o16.Position = Vector3.new(-4.94128418, 3.7200191, -12.6244965)
  156. o16.Rotation = Vector3.new(0, 88.8299942, 0)
  157. o16.Anchored = true
  158. o16.FormFactor = Enum.FormFactor.Custom
  159. o16.Size = Vector3.new(7.24265194, 7.4399991, 0.905331492)
  160. o16.CFrame = CFrame.new(-4.94128418, 3.7200191, -12.6244965, 0.0204270072, 0, 0.999791384, 0, 1, 0, -0.999791384, 0, 0.0204270072)
  161. o16.BottomSurface = Enum.SurfaceType.Smooth
  162. o16.TopSurface = Enum.SurfaceType.Smooth
  163. o16.Position = Vector3.new(-4.94128418, 3.7200191, -12.6244965)
  164. o17.Parent = o16
  165. o17.MeshId = "rbxassetid://302260025"
  166. o17.Scale = Vector3.new(0.724265337, 0.724265337, 0.724265337)
  167. o17.TextureId = "rbxassetid://302260095"
  168. o17.MeshType = Enum.MeshType.FileMesh
  169. o18.Name = "Arm1"
  170. o18.Parent = o3
  171. o19.Name = "Middle"
  172. o19.Parent = o18
  173. o19.Material = Enum.Material.SmoothPlastic
  174. o19.BrickColor = BrickColor.new("Toothpaste")
  175. o19.Transparency = 1
  176. o19.Position = Vector3.new(-4.96960402, 5.55327415, -11.0795441)
  177. o19.Rotation = Vector3.new(-21.5599995, 87.2399979, 21.539999)
  178. o19.Anchored = true
  179. o19.FormFactor = Enum.FormFactor.Symmetric
  180. o19.Size = Vector3.new(1, 2, 1)
  181. o19.CFrame = CFrame.new(-4.96960402, 5.55327415, -11.0795441, 0.0448689945, -0.017707983, 0.998835981, 0, 0.999842882, 0.0177258365, -0.99899286, -0.000795340398, 0.04486195)
  182. o19.BottomSurface = Enum.SurfaceType.Smooth
  183. o19.TopSurface = Enum.SurfaceType.Smooth
  184. o19.Color = Color3.new(0, 1, 1)
  185. o19.Position = Vector3.new(-4.96960402, 5.55327415, -11.0795441)
  186. o20.Parent = o3
  187. o20.Health = 0
  188. o20.MaxHealth = 0
  189. o21.Name = "Head"
  190. o21.Parent = o3
  191. o21.BrickColor = BrickColor.new("Really black")
  192. o21.Position = Vector3.new(-8.3656311, 2.53267288, -12.8221884)
  193. o21.Rotation = Vector3.new(0, 88.4399948, 90)
  194. o21.Anchored = true
  195. o21.FormFactor = Enum.FormFactor.Custom
  196. o21.Shape = Enum.PartType.Cylinder
  197. o21.Size = Vector3.new(0.200000003, 4.19999981, 4)
  198. o21.CFrame = CFrame.new(-8.3656311, 2.53267288, -12.8221884, 0, -0.0272749998, 0.999628007, 1, 0, 0, 0, 0.999628007, 0.0272749998)
  199. o21.BottomSurface = Enum.SurfaceType.Smooth
  200. o21.TopSurface = Enum.SurfaceType.Smooth
  201. o21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  202. o21.Position = Vector3.new(-8.3656311, 2.53267288, -12.8221884)
  203. o22.Name = "HatRemover"
  204. o22.Parent = o21
  205.  
  206. runDummyScript(function()
  207. function onTouched(hit)
  208. local d = hit.Parent:GetChildren()
  209. for i=1, #d do
  210. if (d[i].className == "Hat") then
  211. d[i]:remove()
  212. end
  213. end
  214. end
  215.  
  216. script.Parent.Touched:connect(onTouched)
  217. end,o22)
  218.  
  219. o23.Parent = o21
  220.  
  221. runDummyScript(function()
  222. -- declarations
  223.  
  224. local head = script.Parent
  225. local sound = head:findFirstChild("Victory")
  226.  
  227. function onTouched(part)
  228. local h = part.Parent:findFirstChild("Humanoid")
  229. if h~=nil then
  230. sound:play()
  231. if part.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end
  232. part.Parent:findFirstChild("Head"):findFirstChild("face").Texture="717dea9c5a1659640155f77c84892c " end
  233. end
  234.  
  235. script.Parent.Touched:connect(onTouched)
  236. end,o23)
  237.  
  238. o24.Parent = o21
  239.  
  240. runDummyScript(function()
  241. -- declarations
  242.  
  243. local head = script.Parent
  244. local sound = head:findFirstChild("Victory")
  245.  
  246. function onTouched(part)
  247. local h = part.Parent:findFirstChild("Humanoid")
  248. if h~=nil then
  249. sound:play()
  250. if part.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end
  251. part.Parent:findFirstChild("Head"):findFirstChild("face").Texture="717dea9c5a1659640155f77c84892c " end
  252. end
  253.  
  254. script.Parent.Touched:connect(onTouched)
  255. end,o24)
  256.  
  257. o25.Name = "Stepped"
  258. o25.Parent = o21
  259.  
  260. runDummyScript(function()
  261. local Button = script.Parent
  262. local Sound = Button:WaitForChild("Sound") -- change if you change the name of the sound
  263. local SoundPlayer = script:WaitForChild("SoundPlayer")
  264.  
  265. function GiveSound(Character)
  266. local Player = game.Players:GetPlayerFromCharacter(Character)
  267. if Player ~= nil then
  268. local PlayerGui = Player:FindFirstChild("PlayerGui")
  269. if PlayerGui ~= nil then
  270. local SoundScript = SoundPlayer:clone()
  271. local SoundCopy = Sound:clone()
  272. SoundCopy.Name = "Sound"
  273. SoundCopy.Parent = SoundScript
  274.  
  275. SoundScript.Parent = PlayerGui
  276. SoundScript.Disabled = false
  277. end
  278. end
  279. end
  280.  
  281. function Stepped(Part)
  282. if Part.Parent == nil then return end
  283. GiveSound(Part.Parent)
  284. end
  285. Button.Touched:connect(Stepped)
  286.  
  287. end,o25)
  288.  
  289. o26.Name = "SoundPlayer"
  290. o26.Parent = o25
  291. o26.Disabled = true
  292.  
  293. runDummyScript(function()
  294. local Camera = game.Workspace.CurrentCamera
  295. local Sound = script:WaitForChild("Sound")
  296.  
  297. local RobloxHasWorkingIsPlaying = false -- change me to true when roblox updates IsPlaying
  298. local SoundDeleteTimeForNonLooped = 1 -- set me while roblox still has non working IsPlaying
  299.  
  300. function PlaySound()
  301. Sound.Name = "SteppedSound"
  302. Sound.Parent = Camera
  303. if RobloxHasWorkingIsPlaying then
  304. Sound.Changed:connect(function(Property) if Property == "IsPlaying" and Sound.IsPlaying == false then Sound:Destroy(); script:Destroy() end end)
  305. Sound:Play()
  306. elseif not Sound.Looped then
  307. game.Debris:AddItem(Sound,SoundDeleteTimeForNonLooped)
  308. Sound:Play()
  309. script:Destroy()
  310. else
  311. Sound:Play()
  312. script:Destroy()
  313. end
  314. end
  315.  
  316. function Soundify()
  317. local OldSound = Camera:FindFirstChild("SteppedSound")
  318. if OldSound ~= nil then
  319. if OldSound.SoundId ~= Sound.SoundId then
  320. OldSound:Destroy()
  321. PlaySound()
  322. else
  323. script:Destroy()
  324. end
  325. else
  326. PlaySound()
  327. end
  328. end
  329.  
  330. Soundify()
  331. end,o26)
  332.  
  333. o27.Name = "Morph Script"
  334. o27.Parent = o21
  335.  
  336. runDummyScript(function()
  337. function onTouched(hit)
  338.  
  339. if hit.Parent:findFirstChild("Arm1") ~= nil then
  340. hit.Parent:findFirstChild("Arm1"):Destroy()
  341. end
  342.  
  343. if hit.Parent:findFirstChild("Arm2") ~= nil then
  344. hit.Parent:findFirstChild("Arm2"):Destroy()
  345. end
  346.  
  347. if hit.Parent:findFirstChild("Leg1") ~= nil then
  348. hit.Parent:findFirstChild("Leg1"):Destroy()
  349. end
  350.  
  351. if hit.Parent:findFirstChild("Leg2") ~= nil then
  352. hit.Parent:findFirstChild("Leg2"):Destroy()
  353. end
  354.  
  355. if hit.Parent:findFirstChild("Chest") ~= nil then
  356. hit.Parent:findFirstChild("Chest"):Destroy()
  357. end
  358.  
  359. if hit.Parent:findFirstChild("xHead") ~= nil then
  360. hit.Parent:findFirstChild("xHead"):Destroy()
  361. end
  362. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Arm1") == nil then
  363. local g = script.Parent.Parent.Arm1:clone()
  364. g.Parent = hit.Parent
  365. local C = g:GetChildren()
  366. for i=1, #C do
  367. if C[i].className == "Part" or C[i].className == "UnionOperation" then
  368. local W = Instance.new("Weld")
  369. W.Part0 = g.Middle
  370. W.Part1 = C[i]
  371. local CJ = CFrame.new(g.Middle.Position)
  372. local C0 = g.Middle.CFrame:inverse()*CJ
  373. local C1 = C[i].CFrame:inverse()*CJ
  374. W.C0 = C0
  375. W.C1 = C1
  376. W.Parent = g.Middle
  377. end
  378. local Y = Instance.new("Weld")
  379. Y.Part0 = hit.Parent["Left Arm"]
  380. Y.Part1 = g.Middle
  381. Y.C0 = CFrame.new(0, 0, 0)
  382. Y.Parent = Y.Part0
  383. end
  384.  
  385. local h = g:GetChildren()
  386. for i = 1, # h do
  387. if h[i].className == "Part" or C[i].className == "UnionOperation" then
  388. h[i].Anchored = false
  389. h[i].CanCollide = false
  390. end
  391. end
  392.  
  393. end
  394.  
  395. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Arm2") == nil then
  396. local g = script.Parent.Parent.Arm2:clone()
  397. g.Parent = hit.Parent
  398. local C = g:GetChildren()
  399. for i=1, #C do
  400. if C[i].className == "Part" or C[i].className == "UnionOperation" then
  401. local W = Instance.new("Weld")
  402. W.Part0 = g.Middle
  403. W.Part1 = C[i]
  404. local CJ = CFrame.new(g.Middle.Position)
  405. local C0 = g.Middle.CFrame:inverse()*CJ
  406. local C1 = C[i].CFrame:inverse()*CJ
  407. W.C0 = C0
  408. W.C1 = C1
  409. W.Parent = g.Middle
  410. end
  411. local Y = Instance.new("Weld")
  412. Y.Part0 = hit.Parent["Right Arm"]
  413. Y.Part1 = g.Middle
  414. Y.C0 = CFrame.new(0, 0, 0)
  415. Y.Parent = Y.Part0
  416. end
  417.  
  418. local h = g:GetChildren()
  419. for i = 1, # h do
  420. if h[i].className == "Part" or C[i].className == "UnionOperation" then
  421. h[i].Anchored = false
  422. h[i].CanCollide = false
  423. end
  424. end
  425.  
  426. end
  427. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Leg1") == nil then
  428. local g = script.Parent.Parent.Leg1:clone()
  429. g.Parent = hit.Parent
  430. local C = g:GetChildren()
  431. for i=1, #C do
  432. if C[i].className == "Part" or C[i].className == "UnionOperation" then
  433. local W = Instance.new("Weld")
  434. W.Part0 = g.Middle
  435. W.Part1 = C[i]
  436. local CJ = CFrame.new(g.Middle.Position)
  437. local C0 = g.Middle.CFrame:inverse()*CJ
  438. local C1 = C[i].CFrame:inverse()*CJ
  439. W.C0 = C0
  440. W.C1 = C1
  441. W.Parent = g.Middle
  442. end
  443. local Y = Instance.new("Weld")
  444. Y.Part0 = hit.Parent["Left Leg"]
  445. Y.Part1 = g.Middle
  446. Y.C0 = CFrame.new(0, 0, 0)
  447. Y.Parent = Y.Part0
  448. end
  449.  
  450. local h = g:GetChildren()
  451. for i = 1, # h do
  452. if h[i].className == "Part" or C[i].className == "UnionOperation" then
  453. h[i].Anchored = false
  454. h[i].CanCollide = false
  455. end
  456. end
  457.  
  458. end
  459. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Leg2") == nil then
  460. local g = script.Parent.Parent.Leg2:clone()
  461. g.Parent = hit.Parent
  462. local C = g:GetChildren()
  463. for i=1, #C do
  464. if C[i].className == "Part" or C[i].className == "UnionOperation" then
  465. local W = Instance.new("Weld")
  466. W.Part0 = g.Middle
  467. W.Part1 = C[i]
  468. local CJ = CFrame.new(g.Middle.Position)
  469. local C0 = g.Middle.CFrame:inverse()*CJ
  470. local C1 = C[i].CFrame:inverse()*CJ
  471. W.C0 = C0
  472. W.C1 = C1
  473. W.Parent = g.Middle
  474. end
  475. local Y = Instance.new("Weld")
  476. Y.Part0 = hit.Parent["Right Leg"]
  477. Y.Part1 = g.Middle
  478. Y.C0 = CFrame.new(0, 0, 0)
  479. Y.Parent = Y.Part0
  480. end
  481.  
  482. local h = g:GetChildren()
  483. for i = 1, # h do
  484. if h[i].className == "Part" or C[i].className == "UnionOperation" then
  485. h[i].Anchored = false
  486. h[i].CanCollide = false
  487. end
  488. end
  489.  
  490. end
  491.  
  492.  
  493. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("xHead") == nil then
  494. local g = script.Parent.Parent.xHead:clone()
  495. g.Parent = hit.Parent
  496. local C = g:GetChildren()
  497. for i=1, #C do
  498. if C[i].className == "Part" or C[i].className == "UnionOperation" then
  499. local W = Instance.new("Weld")
  500. W.Part0 = g.Middle
  501. W.Part1 = C[i]
  502. local CJ = CFrame.new(g.Middle.Position)
  503. local C0 = g.Middle.CFrame:inverse()*CJ
  504. local C1 = C[i].CFrame:inverse()*CJ
  505. W.C0 = C0
  506. W.C1 = C1
  507. W.Parent = g.Middle
  508. end
  509. local Y = Instance.new("Weld")
  510. Y.Part0 = hit.Parent["Head"]
  511. Y.Part1 = g.Middle
  512. Y.C0 = CFrame.new(0, 0, 0)
  513. Y.Parent = Y.Part0
  514. end
  515.  
  516. local h = g:GetChildren()
  517. for i = 1, # h do
  518. if h[i].className == "Part" or C[i].className == "UnionOperation" then
  519. h[i].Anchored = false
  520. h[i].CanCollide = false
  521. end
  522. end
  523.  
  524. end
  525.  
  526.  
  527.  
  528. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Chest") == nil then
  529. local g = script.Parent.Parent.Chest:clone()
  530. g.Parent = hit.Parent
  531. local C = g:GetChildren()
  532. for i=1, #C do
  533. if C[i].className == "Part" or C[i].className == "UnionOperation" then
  534. local W = Instance.new("Weld")
  535. W.Part0 = g.Middle
  536. W.Part1 = C[i]
  537. local CJ = CFrame.new(g.Middle.Position)
  538. local C0 = g.Middle.CFrame:inverse()*CJ
  539. local C1 = C[i].CFrame:inverse()*CJ
  540. W.C0 = C0
  541. W.C1 = C1
  542. W.Parent = g.Middle
  543. end
  544. local Y = Instance.new("Weld")
  545. Y.Part0 = hit.Parent.Torso
  546. Y.Part1 = g.Middle
  547. Y.C0 = CFrame.new(0, 0, 0)
  548. Y.Parent = Y.Part0
  549. end
  550.  
  551. local h = g:GetChildren()
  552. for i = 1, # h do
  553. if h[i].className == "Part" or C[i].className == "UnionOperation" then
  554. h[i].Anchored = false
  555. h[i].CanCollide = false
  556. end
  557. end
  558. hit.Parent:findFirstChild("Head").BrickColor = BrickColor.new(125)
  559. hit.Parent:findFirstChild("Head").Transparency = 0.98
  560. hit.Parent:findFirstChild("Torso").BrickColor = BrickColor.new(23)
  561. hit.Parent:findFirstChild("Torso").Transparency = 1
  562. hit.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(23)
  563. hit.Parent:findFirstChild("Left Arm").Transparency = 1
  564. hit.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(23)
  565. hit.Parent:findFirstChild("Right Arm").Transparency = 1
  566. hit.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(23)
  567. hit.Parent:findFirstChild("Left Leg").CanCollide = true
  568. hit.Parent:findFirstChild("Left Leg").Transparency = 1
  569. hit.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(23)
  570. hit.Parent:findFirstChild("Right Leg").CanCollide = true
  571. hit.Parent:findFirstChild("Right Leg").Transparency = 1
  572. end
  573. end
  574. script.Parent.Touched:connect(onTouched)
  575. end,o27)
  576.  
  577. o28.Name = "Instructions"
  578. o28.Parent = o3
  579.  
  580. runDummyScript(function()
  581. --[[how to make a morph that works with meshes and unions!
  582.  
  583. take a regular brick, make it look like whatever you want,
  584. put it on the person where you want it to be,
  585. and put it in the model inside the morph that the brick is on
  586. its that easy!
  587. Credit to blockgun
  588.  
  589. ~hiimcool34]]
  590. end,o28)
  591.  
  592. o29.Name = "xHead"
  593. o29.Parent = o3
  594. o30.Name = "Middle"
  595. o30.Parent = o29
  596. o30.Material = Enum.Material.SmoothPlastic
  597. o30.BrickColor = BrickColor.new("Navy blue")
  598. o30.Reflectance = 0.5
  599. o30.Transparency = 1
  600. o30.Position = Vector3.new(-4.92971802, 7.05269623, -12.5790396)
  601. o30.Rotation = Vector3.new(-21.5599995, 87.2399979, 21.539999)
  602. o30.Anchored = true
  603. o30.FormFactor = Enum.FormFactor.Symmetric
  604. o30.Size = Vector3.new(2, 1, 1)
  605. o30.CFrame = CFrame.new(-4.92971802, 7.05269623, -12.5790396, 0.0448689945, -0.017707983, 0.998835981, 0, 0.999842882, 0.0177258365, -0.99899286, -0.000795340398, 0.04486195)
  606. o30.BottomSurface = Enum.SurfaceType.Smooth
  607. o30.TopSurface = Enum.SurfaceType.Smooth
  608. o30.Color = Color3.new(0, 0.12549, 0.376471)
  609. o30.Position = Vector3.new(-4.92971802, 7.05269623, -12.5790396)
  610. o31.Parent = o30
  611. o31.Scale = Vector3.new(1.25, 1.25, 1.25)
  612. o32.Name = "Arm2"
  613. o32.Parent = o3
  614. o33.Name = "Middle"
  615. o33.Parent = o32
  616. o33.Material = Enum.Material.SmoothPlastic
  617. o33.BrickColor = BrickColor.new("Bright yellow")
  618. o33.Transparency = 1
  619. o33.Position = Vector3.new(-4.83511305, 5.55327415, -14.0761261)
  620. o33.Rotation = Vector3.new(-21.5599995, 87.2399979, 21.539999)
  621. o33.Anchored = true
  622. o33.FormFactor = Enum.FormFactor.Symmetric
  623. o33.Size = Vector3.new(1, 2, 1)
  624. o33.CFrame = CFrame.new(-4.83511305, 5.55327415, -14.0761261, 0.0448689945, -0.017707983, 0.998835981, 0, 0.999842882, 0.0177258365, -0.99899286, -0.000795340398, 0.04486195)
  625. o33.BottomSurface = Enum.SurfaceType.Smooth
  626. o33.TopSurface = Enum.SurfaceType.Smooth
  627. o33.Color = Color3.new(0.960784, 0.803922, 0.188235)
  628. o33.Position = Vector3.new(-4.83511305, 5.55327415, -14.0761261)
  629. mas.Parent = workspace
  630. mas:MakeJoints()
  631. local mas1 = mas:GetChildren()
  632. for i=1,#mas1 do
  633. mas1[i].Parent = workspace
  634. ypcall(function() mas1[i]:MakeJoints() end)
  635. end
  636. mas:Destroy()
  637. for i=1,#cors do
  638. coroutine.resume(cors[i])
  639. end
  640. mess_handle.Text = "Resetting"
  641. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  642. v:LoadCharacter()
  643. end
  644. wait(1)
  645. mess_handle:Remove()
  646.  
  647. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  648. game:GetService("Lighting").Brightness = 1
  649. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  650. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  651. game:GetService("Lighting").GlobalShadows = true
  652. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  653. game:GetService("Lighting").Outlines = false
  654. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  655. game:GetService("Lighting").TimeOfDay = "14:00:00"
  656. game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
  657. game:GetService("Lighting").FogEnd = 100000
  658. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement