Advertisement
MESCRIPT

Sans boss might work or not

Jul 31st, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.69 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. local chil = workspace:GetChildren()
  19. for i,v in pairs(chil) do
  20. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  21. v:Destroy()
  22. end
  23. end
  24. Camera0 = Instance.new("Camera")
  25. Part1 = Instance.new("Part")
  26. Model2 = Instance.new("Model")
  27. LocalScript3 = Instance.new("LocalScript")
  28. Model4 = Instance.new("Model")
  29. BodyColors5 = Instance.new("BodyColors")
  30. Humanoid6 = Instance.new("Humanoid")
  31. Part7 = Instance.new("Part")
  32. SpecialMesh8 = Instance.new("SpecialMesh")
  33. Sound9 = Instance.new("Sound")
  34. PitchShiftSoundEffect10 = Instance.new("PitchShiftSoundEffect")
  35. Dialog11 = Instance.new("Dialog")
  36. DialogChoice12 = Instance.new("DialogChoice")
  37. Script13 = Instance.new("Script")
  38. ParticleEmitter14 = Instance.new("ParticleEmitter")
  39. Part15 = Instance.new("Part")
  40. Motor6D16 = Instance.new("Motor6D")
  41. Part17 = Instance.new("Part")
  42. Part18 = Instance.new("Part")
  43. SpecialMesh19 = Instance.new("SpecialMesh")
  44. Part20 = Instance.new("Part")
  45. Part21 = Instance.new("Part")
  46. SpecialMesh22 = Instance.new("SpecialMesh")
  47. Part23 = Instance.new("Part")
  48. Motor6D24 = Instance.new("Motor6D")
  49. Motor6D25 = Instance.new("Motor6D")
  50. Motor6D26 = Instance.new("Motor6D")
  51. Motor6D27 = Instance.new("Motor6D")
  52. Motor6D28 = Instance.new("Motor6D")
  53. Decal29 = Instance.new("Decal")
  54. SpecialMesh30 = Instance.new("SpecialMesh")
  55. ParticleEmitter31 = Instance.new("ParticleEmitter")
  56. Sound32 = Instance.new("Sound")
  57. Script33 = Instance.new("Script")
  58. Sound34 = Instance.new("Sound")
  59. Sound35 = Instance.new("Sound")
  60. ParticleEmitter36 = Instance.new("ParticleEmitter")
  61. Camera37 = Instance.new("Camera")
  62. Script38 = Instance.new("Script")
  63. Script39 = Instance.new("Script")
  64. NumberValue40 = Instance.new("NumberValue")
  65. Script41 = Instance.new("Script")
  66. SpecialMesh42 = Instance.new("SpecialMesh")
  67. Script43 = Instance.new("Script")
  68. SelectionBox44 = Instance.new("SelectionBox")
  69. Sound45 = Instance.new("Sound")
  70. NumberValue46 = Instance.new("NumberValue")
  71. Script47 = Instance.new("Script")
  72. Script48 = Instance.new("Script")
  73. BillboardGui49 = Instance.new("BillboardGui")
  74. ImageLabel50 = Instance.new("ImageLabel")
  75. Sound51 = Instance.new("Sound")
  76. Script52 = Instance.new("Script")
  77. SpecialMesh53 = Instance.new("SpecialMesh")
  78. ParticleEmitter54 = Instance.new("ParticleEmitter")
  79. BodyPosition55 = Instance.new("BodyPosition")
  80. Sound56 = Instance.new("Sound")
  81. Sound57 = Instance.new("Sound")
  82. Script58 = Instance.new("Script")
  83. BrickColorValue59 = Instance.new("BrickColorValue")
  84. Script60 = Instance.new("Script")
  85. StringValue61 = Instance.new("StringValue")
  86. Animation62 = Instance.new("Animation")
  87. StringValue63 = Instance.new("StringValue")
  88. Animation64 = Instance.new("Animation")
  89. StringValue65 = Instance.new("StringValue")
  90. Animation66 = Instance.new("Animation")
  91. NumberValue67 = Instance.new("NumberValue")
  92. Animation68 = Instance.new("Animation")
  93. NumberValue69 = Instance.new("NumberValue")
  94. StringValue70 = Instance.new("StringValue")
  95. Animation71 = Instance.new("Animation")
  96. StringValue72 = Instance.new("StringValue")
  97. Animation73 = Instance.new("Animation")
  98. StringValue74 = Instance.new("StringValue")
  99. Animation75 = Instance.new("Animation")
  100. StringValue76 = Instance.new("StringValue")
  101. Animation77 = Instance.new("Animation")
  102. Script78 = Instance.new("Script")
  103. Script79 = Instance.new("Script")
  104. Sound80 = Instance.new("Sound")
  105. Camera0.Parent = mas
  106. Camera0.CFrame = CFrame.new(-5.53657913, 6.43760109, -16.6288605, 0.365646064, 0.471259266, -0.802631676, -0, 0.862345755, 0.50631988, 0.930754006, -0.185133874, 0.315313309)
  107. Camera0.CoordinateFrame = CFrame.new(-5.53657913, 6.43760109, -16.6288605, 0.365646064, 0.471259266, -0.802631676, -0, 0.862345755, 0.50631988, 0.930754006, -0.185133874, 0.315313309)
  108. Camera0.Focus = CFrame.new(0.705411971, 2.49999905, -19.0810223, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  109. Camera0.focus = CFrame.new(0.705411971, 2.49999905, -19.0810223, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  110. Part1.Name = "Baseplate"
  111. Part1.Parent = mas
  112. Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  113. Part1.Position = Vector3.new(0, -10, 0)
  114. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  115. Part1.Size = Vector3.new(512, 20, 512)
  116. Part1.Anchored = true
  117. Part1.BrickColor = BrickColor.new("Dark stone grey")
  118. Part1.Locked = true
  119. Part1.brickColor = BrickColor.new("Dark stone grey")
  120. Part1.FormFactor = Enum.FormFactor.Symmetric
  121. Part1.formFactor = Enum.FormFactor.Symmetric
  122. Model2.Name = "CompiledScripts"
  123. Model2.Parent = mas
  124. LocalScript3.Name = "Script1"
  125. LocalScript3.Parent = Model2
  126. table.insert(cors,sandbox(LocalScript3,function()
  127.  
  128. --Converted with ttyyuu12345's model to script plugin v4
  129. function sandbox(var,func)
  130. local env = getfenv(func)
  131. local newenv = setmetatable({},{
  132. __index = function(self,k)
  133. if k=="script" then
  134. return var
  135. else
  136. return env[k]
  137. end
  138. end,
  139. })
  140. setfenv(func,newenv)
  141. return func
  142. end
  143. cors = {}
  144. mas = Instance.new("Model",game:GetService("Lighting"))
  145. local chil = workspace:GetChildren()
  146. for i,v in pairs(chil) do
  147. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  148. v:Destroy()
  149. end
  150. end
  151. Camera0 = Instance.new("Camera")
  152. Part1 = Instance.new("Part")
  153. Model2 = Instance.new("Model")
  154. Model3 = Instance.new("Model")
  155. Part4 = Instance.new("Part")
  156. SpecialMesh5 = Instance.new("SpecialMesh")
  157. Decal6 = Instance.new("Decal")
  158. Weld7 = Instance.new("Weld")
  159. Part8 = Instance.new("Part")
  160. Fire9 = Instance.new("Fire")
  161. Part10 = Instance.new("Part")
  162. Fire11 = Instance.new("Fire")
  163. Part12 = Instance.new("Part")
  164. Part13 = Instance.new("Part")
  165. Part14 = Instance.new("Part")
  166. Snap15 = Instance.new("Snap")
  167. Fire16 = Instance.new("Fire")
  168. Humanoid17 = Instance.new("Humanoid")
  169. Part18 = Instance.new("Part")
  170. Snap19 = Instance.new("Snap")
  171. CylinderMesh20 = Instance.new("CylinderMesh")
  172. Fire21 = Instance.new("Fire")
  173. Script22 = Instance.new("Script")
  174. Script23 = Instance.new("Script")
  175. Part24 = Instance.new("Part")
  176. Snap25 = Instance.new("Snap")
  177. Fire26 = Instance.new("Fire")
  178. Weld27 = Instance.new("Weld")
  179. BodyColors28 = Instance.new("BodyColors")
  180. Script29 = Instance.new("Script")
  181. Shirt30 = Instance.new("Shirt")
  182. Pants31 = Instance.new("Pants")
  183. Hat32 = Instance.new("Hat")
  184. Part33 = Instance.new("Part")
  185. SpecialMesh34 = Instance.new("SpecialMesh")
  186. Camera35 = Instance.new("Camera")
  187. Model36 = Instance.new("Model")
  188. Part37 = Instance.new("Part")
  189. SpecialMesh38 = Instance.new("SpecialMesh")
  190. Decal39 = Instance.new("Decal")
  191. Weld40 = Instance.new("Weld")
  192. Part41 = Instance.new("Part")
  193. Fire42 = Instance.new("Fire")
  194. Part43 = Instance.new("Part")
  195. Fire44 = Instance.new("Fire")
  196. Part45 = Instance.new("Part")
  197. Part46 = Instance.new("Part")
  198. Part47 = Instance.new("Part")
  199. Snap48 = Instance.new("Snap")
  200. Fire49 = Instance.new("Fire")
  201. Humanoid50 = Instance.new("Humanoid")
  202. Part51 = Instance.new("Part")
  203. Snap52 = Instance.new("Snap")
  204. CylinderMesh53 = Instance.new("CylinderMesh")
  205. Fire54 = Instance.new("Fire")
  206. Script55 = Instance.new("Script")
  207. Script56 = Instance.new("Script")
  208. Part57 = Instance.new("Part")
  209. Snap58 = Instance.new("Snap")
  210. Fire59 = Instance.new("Fire")
  211. Weld60 = Instance.new("Weld")
  212. BodyColors61 = Instance.new("BodyColors")
  213. Script62 = Instance.new("Script")
  214. Hat63 = Instance.new("Hat")
  215. Part64 = Instance.new("Part")
  216. SpecialMesh65 = Instance.new("SpecialMesh")
  217. Shirt66 = Instance.new("Shirt")
  218. Pants67 = Instance.new("Pants")
  219. Camera0.Parent = mas
  220. Camera0.CFrame = CFrame.new(-26.2206421, 12.0959606, -20.6886711, -0.0595999733, 0.408445835, -0.91083467, -0, 0.912456691, 0.409173191, 0.998222351, 0.0243867114, -0.0543823987)
  221. Camera0.CoordinateFrame = CFrame.new(-26.2206421, 12.0959606, -20.6886711, -0.0595999733, 0.408445835, -0.91083467, -0, 0.912456691, 0.409173191, 0.998222351, 0.0243867114, -0.0543823987)
  222. Camera0.Focus = CFrame.new(-6.11873436, 3.06560421, -19.4884644, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  223. Camera0.focus = CFrame.new(-6.11873436, 3.06560421, -19.4884644, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  224. Part1.Name = "Baseplate"
  225. Part1.Parent = mas
  226. Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  227. Part1.Position = Vector3.new(0, -10, 0)
  228. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  229. Part1.Size = Vector3.new(512, 20, 512)
  230. Part1.Anchored = true
  231. Part1.BrickColor = BrickColor.new("Dark stone grey")
  232. Part1.Locked = true
  233. Part1.brickColor = BrickColor.new("Dark stone grey")
  234. Part1.FormFactor = Enum.FormFactor.Symmetric
  235. Part1.formFactor = Enum.FormFactor.Symmetric
  236. Model2.Parent = mas
  237. Model3.Name = "SSGSS Goku"
  238. Model3.Parent = Model2
  239. Part4.Name = "Head"
  240. Part4.Parent = Model3
  241. Part4.CFrame = CFrame.new(-4.13871002, 4.90002108, -11.4352522, 0, 0, 0.999999404, 0, 1.00000036, -1.74622983e-10, -1, 0, 0)
  242. Part4.Orientation = Vector3.new(0, 90, 0)
  243. Part4.Position = Vector3.new(-4.13871002, 4.90002108, -11.4352522)
  244. Part4.Rotation = Vector3.new(90, 89.9400024, 0)
  245. Part4.Color = Color3.new(1, 0.8, 0.6)
  246. Part4.Size = Vector3.new(2, 1, 1)
  247. Part4.BrickColor = BrickColor.new("Pastel brown")
  248. Part4.TopSurface = Enum.SurfaceType.Smooth
  249. Part4.brickColor = BrickColor.new("Pastel brown")
  250. Part4.FormFactor = Enum.FormFactor.Symmetric
  251. Part4.formFactor = Enum.FormFactor.Symmetric
  252. SpecialMesh5.Parent = Part4
  253. SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  254. Decal6.Parent = Part4
  255. Decal6.Texture = "http://www.roblox.com/asset/?id=268802651"
  256. Weld7.Name = "HeadWeld"
  257. Weld7.Parent = Part4
  258. Weld7.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  259. Weld7.C1 = CFrame.new(0, -0.100000001, 0, 1, 0, -0, 0, 0.999999702, 0.000833332946, 0, -0.000833333062, 0.999999583)
  260. Weld7.Part0 = Part4
  261. Weld7.Part1 = Part33
  262. Weld7.part1 = Part33
  263. Part8.Name = "Left Arm"
  264. Part8.Parent = Model3
  265. Part8.CFrame = CFrame.new(-4.13871002, 3.40002298, -9.93525219, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  266. Part8.Orientation = Vector3.new(0, 90, 0)
  267. Part8.Position = Vector3.new(-4.13871002, 3.40002298, -9.93525219)
  268. Part8.Rotation = Vector3.new(0, 90, 0)
  269. Part8.Color = Color3.new(1, 0.8, 0.6)
  270. Part8.Size = Vector3.new(1, 2, 1)
  271. Part8.BrickColor = BrickColor.new("Pastel brown")
  272. Part8.brickColor = BrickColor.new("Pastel brown")
  273. Part8.FormFactor = Enum.FormFactor.Symmetric
  274. Part8.formFactor = Enum.FormFactor.Symmetric
  275. Fire9.Parent = Part8
  276. Fire9.Color = Color3.new(1, 0.709804, 0)
  277. Fire9.Enabled = false
  278. Fire9.Size = 30
  279. Fire9.Heat = 25
  280. Fire9.SecondaryColor = Color3.new(1, 0, 0)
  281. Fire9.size = 30
  282. Part10.Name = "Left Leg"
  283. Part10.Parent = Model3
  284. Part10.CFrame = CFrame.new(-4.13871002, 1.40002406, -10.9352522, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  285. Part10.Orientation = Vector3.new(0, 90, 0)
  286. Part10.Position = Vector3.new(-4.13871002, 1.40002406, -10.9352522)
  287. Part10.Rotation = Vector3.new(0, 90, 0)
  288. Part10.Color = Color3.new(1, 0.8, 0.6)
  289. Part10.Size = Vector3.new(1, 2, 1)
  290. Part10.BottomSurface = Enum.SurfaceType.Weld
  291. Part10.BrickColor = BrickColor.new("Pastel brown")
  292. Part10.brickColor = BrickColor.new("Pastel brown")
  293. Part10.FormFactor = Enum.FormFactor.Symmetric
  294. Part10.formFactor = Enum.FormFactor.Symmetric
  295. Fire11.Parent = Part10
  296. Fire11.Color = Color3.new(1, 0.709804, 0)
  297. Fire11.Enabled = false
  298. Fire11.Size = 30
  299. Fire11.Heat = 25
  300. Fire11.SecondaryColor = Color3.new(1, 0, 0)
  301. Fire11.size = 30
  302. Part12.Name = "Right Arm"
  303. Part12.Parent = Model3
  304. Part12.CFrame = CFrame.new(-4.13871002, 3.40002298, -12.9352522, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  305. Part12.Orientation = Vector3.new(0, 90, 0)
  306. Part12.Position = Vector3.new(-4.13871002, 3.40002298, -12.9352522)
  307. Part12.Rotation = Vector3.new(0, 90, 0)
  308. Part12.Color = Color3.new(1, 0.8, 0.6)
  309. Part12.Size = Vector3.new(1, 2, 1)
  310. Part12.BrickColor = BrickColor.new("Pastel brown")
  311. Part12.brickColor = BrickColor.new("Pastel brown")
  312. Part12.FormFactor = Enum.FormFactor.Symmetric
  313. Part12.formFactor = Enum.FormFactor.Symmetric
  314. Part13.Name = "Right Leg"
  315. Part13.Parent = Model3
  316. Part13.CFrame = CFrame.new(-4.13871002, 1.40002406, -11.9352522, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  317. Part13.Orientation = Vector3.new(0, 90, 0)
  318. Part13.Position = Vector3.new(-4.13871002, 1.40002406, -11.9352522)
  319. Part13.Rotation = Vector3.new(0, 90, 0)
  320. Part13.Color = Color3.new(1, 0.8, 0.6)
  321. Part13.Size = Vector3.new(1, 2, 1)
  322. Part13.BottomSurface = Enum.SurfaceType.Weld
  323. Part13.BrickColor = BrickColor.new("Pastel brown")
  324. Part13.brickColor = BrickColor.new("Pastel brown")
  325. Part13.FormFactor = Enum.FormFactor.Symmetric
  326. Part13.formFactor = Enum.FormFactor.Symmetric
  327. Part14.Name = "Torso"
  328. Part14.Parent = Model3
  329. Part14.CFrame = CFrame.new(-4.13871002, 3.40002298, -11.4352522, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  330. Part14.Orientation = Vector3.new(0, 90, 0)
  331. Part14.Position = Vector3.new(-4.13871002, 3.40002298, -11.4352522)
  332. Part14.Rotation = Vector3.new(0, 90, 0)
  333. Part14.Color = Color3.new(1, 0.8, 0.6)
  334. Part14.Size = Vector3.new(2, 2, 1)
  335. Part14.BrickColor = BrickColor.new("Pastel brown")
  336. Part14.LeftParamA = 0
  337. Part14.LeftParamB = 0
  338. Part14.LeftSurface = Enum.SurfaceType.Weld
  339. Part14.RightParamA = 0
  340. Part14.RightParamB = 0
  341. Part14.RightSurface = Enum.SurfaceType.Weld
  342. Part14.brickColor = BrickColor.new("Pastel brown")
  343. Part14.FormFactor = Enum.FormFactor.Symmetric
  344. Part14.formFactor = Enum.FormFactor.Symmetric
  345. Snap15.Name = "Neck"
  346. Snap15.Parent = Part14
  347. Snap15.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  348. Snap15.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  349. Fire16.Parent = Part14
  350. Fire16.Color = Color3.new(1, 0.709804, 0)
  351. Fire16.Enabled = false
  352. Fire16.Size = 30
  353. Fire16.Heat = 25
  354. Fire16.SecondaryColor = Color3.new(1, 0, 0)
  355. Fire16.size = 30
  356. Humanoid17.Name = "Morph"
  357. Humanoid17.Parent = Model3
  358. Humanoid17.Health = 0
  359. Humanoid17.LeftLeg = Part10
  360. Humanoid17.MaxHealth = 0
  361. Humanoid17.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  362. Humanoid17.RightLeg = Part13
  363. Humanoid17.Torso = Part14
  364. Humanoid17.WalkSpeed = 0
  365. Humanoid17.maxHealth = 0
  366. Part18.Name = "MorphButton"
  367. Part18.Parent = Model3
  368. Part18.CFrame = CFrame.new(-7.63871002, 0.600023985, -11.4352522, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  369. Part18.Orientation = Vector3.new(0, 90, 0)
  370. Part18.Position = Vector3.new(-7.63871002, 0.600023985, -11.4352522)
  371. Part18.Rotation = Vector3.new(0, 90, 0)
  372. Part18.Color = Color3.new(0.960784, 0.803922, 0.188235)
  373. Part18.Size = Vector3.new(4, 0.400000006, 4)
  374. Part18.BottomSurface = Enum.SurfaceType.Weld
  375. Part18.BrickColor = BrickColor.new("Bright yellow")
  376. Part18.LeftParamA = 0
  377. Part18.LeftParamB = 0
  378. Part18.Reflectance = 0.5
  379. Part18.RightParamA = 0
  380. Part18.RightParamB = 0
  381. Part18.TopSurface = Enum.SurfaceType.Smooth
  382. Part18.brickColor = BrickColor.new("Bright yellow")
  383. Part18.FormFactor = Enum.FormFactor.Plate
  384. Part18.formFactor = Enum.FormFactor.Plate
  385. Snap19.Name = "Neck"
  386. Snap19.Parent = Part18
  387. Snap19.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  388. Snap19.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  389. CylinderMesh20.Parent = Part18
  390. Fire21.Parent = Part18
  391. Fire21.Color = Color3.new(1, 1, 0)
  392. Fire21.Enabled = false
  393. Fire21.Size = 30
  394. Fire21.Heat = 25
  395. Fire21.SecondaryColor = Color3.new(1, 0, 0)
  396. Fire21.size = 30
  397. Script22.Name = "SmartMorphButton"
  398. Script22.Parent = Part18
  399. table.insert(cors,sandbox(Script22,function()
  400. -- Smart Morph script by CoolbuilderManClub
  401.  
  402. while (script:findFirstChild("InfoRemover") == nil) do wait(0.1) end
  403.  
  404. local g = Instance.new("ScreenGui")
  405. g.Name = "InfoBox"
  406.  
  407. local t = Instance.new("TextLabel")
  408. t.Name = "Info"
  409. t.Text = "Smart Morph Script By TankLeadfoot"
  410. t.BackgroundTransparency = 0
  411. t.BackgroundColor3 = Color3.new(0, 0, 0)
  412. t.BorderSizePixel = 0
  413. t.TextColor3 = Color3.new(1, 1, 1)
  414. t.Position = UDim2.new(0, 0, 0.95, 0)
  415. t.Size = UDim2.new(1, 0, 0.05, 0)
  416. t.Parent = g
  417.  
  418. local CanMorph = nil
  419. local Lock = nil
  420.  
  421. local s = script.InfoRemover:Clone()
  422. s.Parent = g
  423. s.Disabled = false
  424.  
  425. script.Parent.BrickColor = BrickColor.new("Bright yellow")
  426.  
  427. function onTouch(hit)
  428. if (Lock == nil) then
  429. Lock = true
  430. script.Parent.BrickColor = BrickColor.new("Medium stone grey")
  431.  
  432. CanMorph = nil
  433. BodyParts = hit.Parent:GetChildren()
  434. for i,b in pairs(BodyParts) do
  435. if (b.className == "Humanoid") then
  436. CanMorph = true
  437. end
  438. wait(0.1)
  439. end
  440. if (CanMorph == nil) then
  441. script.Parent.BrickColor = BrickColor.new("Bright yellow")
  442. Lock = nil
  443. return
  444. end
  445.  
  446. script.Parent.BrickColor = BrickColor.new("Black")
  447. g.Parent = game.Players:findFirstChild(hit.Parent.Name).PlayerGui
  448.  
  449. BodyParts = hit.Parent:GetChildren()
  450. for i,b in pairs(BodyParts) do
  451. if (b.className == "Hat") or (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then
  452. b:Remove()
  453. end
  454. if (b.className == "Part") then
  455. if (b.Name == "Torso") then
  456. if (b:findFirstChild("roblox") ~= nil) then
  457. b.roblox:Remove()
  458. elseif (b:findFirstChild("Decal") ~= nil) then
  459. b.Decal:Remove()
  460. end
  461. end
  462. if (b.Name == "Head") then
  463. if (b:findFirstChild("Mesh") ~= nil) then
  464. b.Mesh:Remove()
  465. end
  466. end
  467. end
  468. wait(0.1)
  469. end
  470.  
  471. BodyParts = script.Parent.Parent:GetChildren()
  472. for i,b in pairs(BodyParts) do
  473. if (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then
  474. b:Clone().Parent = hit.Parent
  475. end
  476. if (b.className == "BodyColors") and (hit.Parent:findFirstChild("Body Colors") ~= nil) then
  477. hit.Parent:findFirstChild("Body Colors").HeadColor= b.HeadColor
  478. hit.Parent:findFirstChild("Body Colors").LeftArmColor= b.LeftArmColor
  479. hit.Parent:findFirstChild("Body Colors").LeftLegColor= b.LeftLegColor
  480. hit.Parent:findFirstChild("Body Colors").RightArmColor= b.RightArmColor
  481. hit.Parent:findFirstChild("Body Colors").RightLegColor= b.RightLegColor
  482. hit.Parent:findFirstChild("Body Colors").TorsoColor= b.TorsoColor
  483. end
  484. if (b.className == "Part") then
  485. if (b.Name == "Torso") then
  486. if (b:findFirstChild("roblox") ~= nil) then
  487. b.roblox:Clone().Parent = hit.Parent.Torso
  488. elseif (script.Parent.Parent.Torso:findFirstChild("Decal") ~= nil) then
  489. b.Decal:Clone().Parent = hit.Parent.Torso
  490. end
  491. end
  492. if (b.Name == "Head") then
  493. if (b:findFirstChild("face") ~= nil) then
  494. hit.Parent.Head.face.Texture = b.face.Texture
  495. elseif (script.Parent.Parent.Head:findFirstChild("Decal") ~= nil) then
  496. hit.Parent.Head.face.Texture = b.Decal.Texture
  497. end
  498. if (b:findFirstChild("Mesh") ~= nil) then
  499. b.Mesh:Clone().Parent = hit.Parent.Head
  500. end
  501. end
  502. end
  503. if (b.className == "Hat") then
  504. local h = Instance.new("Hat")
  505. h.Name = b.Name
  506. h.AttachmentPos = b.AttachmentPos
  507. b.Handle:Clone().Parent = h
  508. h.Parent = hit.Parent
  509. end
  510. wait(0.1)
  511. end
  512.  
  513. g.Parent = nil
  514. script.Parent.BrickColor = BrickColor.new("Bright yellow")
  515. Lock = nil
  516. end
  517. end
  518.  
  519. script.Parent.Touched:connect(onTouch)
  520.  
  521. end))
  522. Script23.Name = "InfoRemover"
  523. Script23.Parent = Script22
  524. table.insert(cors,sandbox(Script23,function()
  525. script.Parent:Remove(wait(10))
  526.  
  527. end))
  528. Script23.Disabled = true
  529. Part24.Parent = Model3
  530. Part24.CFrame = CFrame.new(-6.13871002, 0.200023651, -11.4352522, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  531. Part24.Orientation = Vector3.new(0, 90, 0)
  532. Part24.Position = Vector3.new(-6.13871002, 0.200023651, -11.4352522)
  533. Part24.Rotation = Vector3.new(0, 90, 0)
  534. Part24.Color = Color3.new(0.854902, 0.521569, 0.254902)
  535. Part24.Size = Vector3.new(6, 0.400000006, 9)
  536. Part24.BottomSurface = Enum.SurfaceType.Weld
  537. Part24.BrickColor = BrickColor.new("Bright orange")
  538. Part24.LeftParamA = 0
  539. Part24.LeftParamB = 0
  540. Part24.Reflectance = 0.5
  541. Part24.RightParamA = 0
  542. Part24.RightParamB = 0
  543. Part24.TopSurface = Enum.SurfaceType.Smooth
  544. Part24.brickColor = BrickColor.new("Bright orange")
  545. Part24.FormFactor = Enum.FormFactor.Plate
  546. Part24.formFactor = Enum.FormFactor.Plate
  547. Snap25.Name = "Neck"
  548. Snap25.Parent = Part24
  549. Snap25.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  550. Snap25.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  551. Fire26.Parent = Part24
  552. Fire26.Color = Color3.new(1, 0.709804, 0)
  553. Fire26.Enabled = false
  554. Fire26.Size = 30
  555. Fire26.Heat = 25
  556. Fire26.SecondaryColor = Color3.new(1, 0, 0)
  557. Fire26.size = 30
  558. Weld27.Parent = Part24
  559. Weld27.C0 = CFrame.new(0, -0.200000003, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  560. Weld27.C1 = CFrame.new(-6.13871002, 10.0000238, -11.4352522, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  561. Weld27.Part0 = Part24
  562. Weld27.Part1 = Part1
  563. Weld27.part1 = Part1
  564. BodyColors28.Parent = Model3
  565. BodyColors28.HeadColor = BrickColor.new("Pastel brown")
  566. BodyColors28.HeadColor3 = Color3.new(1, 0.8, 0.6)
  567. BodyColors28.LeftArmColor = BrickColor.new("Pastel brown")
  568. BodyColors28.LeftArmColor3 = Color3.new(1, 0.8, 0.6)
  569. BodyColors28.LeftLegColor = BrickColor.new("Pastel brown")
  570. BodyColors28.LeftLegColor3 = Color3.new(1, 0.8, 0.6)
  571. BodyColors28.RightArmColor = BrickColor.new("Pastel brown")
  572. BodyColors28.RightArmColor3 = Color3.new(1, 0.8, 0.6)
  573. BodyColors28.RightLegColor = BrickColor.new("Pastel brown")
  574. BodyColors28.RightLegColor3 = Color3.new(1, 0.8, 0.6)
  575. BodyColors28.TorsoColor = BrickColor.new("Pastel brown")
  576. BodyColors28.TorsoColor3 = Color3.new(1, 0.8, 0.6)
  577. Script29.Name = "How To Make A Morph"
  578. Script29.Parent = Model3
  579. table.insert(cors,sandbox(Script29,function()
  580. First Pick This Morph
  581. Then If You Want To Change Yourself (Not The Morph) Search For Pants,Shirt,Hat,
  582. If Your Done Making The Morph Go To Your Name And Press Plus (+) Button
  583. Then Copy Your Shirt And Pants If Your Done Copying The Shirt To The Morph
  584. Go Again To Your Name And Press Again Plus If U Minus(-) Your Character Beside Your Name
  585. If U Want To Put Hats At Your Morph Do # 9
  586. First Do Not Search For Hats At (Search) Beacuse If Do That It Wont Work So Dont Do That
  587. If U Copy Hats No Right Click And Press Copy Beacuse If U Copy It The Hat Will Fall
  588. So Grab Your Hats One By One To The Morph So It Will Work Tnx
  589. Message Me If You Dont Understand
  590. If U Cant Message Me If Im Online
  591. Meet Me At My Place This Is The Link See Number 13
  592. http://www.roblox.com/Im-Making-Morph-Here-place?id=101670864
  593. Tnx Pls Like My Morph Before Taking!!!
  594. If U Want To Be A Superhero Morph Or Robloxian 2.0
  595. First Pick The Morph U Want And Go In The Front Of It
  596. And Then Go To Your Character And Press Plus (+) To Copy It
  597. And Then 1 By 1 To Copy It
  598. Tnx For Making Morph!!
  599. Pls Enjoy!!!
  600. end))
  601. Shirt30.Name = "Shirt"
  602. Shirt30.Parent = Model3
  603. Shirt30.ShirtTemplate = "http://www.roblox.com/asset/?id=235808304"
  604. Pants31.Name = "Pants"
  605. Pants31.Parent = Model3
  606. Pants31.PantsTemplate = "http://www.roblox.com/asset/?id=235808401"
  607. Hat32.Name = "SuperSaiyanHair"
  608. Hat32.Parent = Model3
  609. Hat32.AttachmentForward = Vector3.new(0, -0.000833332946, -0.999999583)
  610. Hat32.AttachmentPoint = CFrame.new(0, -0.100000001, 0, 1, 0, -0, 0, 0.999999702, 0.000833332946, 0, -0.000833333062, 0.999999583)
  611. Hat32.AttachmentPos = Vector3.new(0, -0.100000001, 0)
  612. Hat32.AttachmentUp = Vector3.new(0, 0.999999702, -0.000833333062)
  613. Part33.Name = "Handle"
  614. Part33.Parent = Hat32
  615. Part33.CFrame = CFrame.new(-4.13862658, 5.50002146, -11.4352522, 0, 0.000833332422, 0.999998987, 0, 1, -0.000833333528, -1, 0, 0)
  616. Part33.Orientation = Vector3.new(0.0500000007, 90, 0)
  617. Part33.Position = Vector3.new(-4.13862658, 5.50002146, -11.4352522)
  618. Part33.Rotation = Vector3.new(90, 89.9199982, -90)
  619. Part33.Color = Color3.new(0, 1, 1)
  620. Part33.Size = Vector3.new(2, 2, 2)
  621. Part33.BottomSurface = Enum.SurfaceType.Smooth
  622. Part33.BrickColor = BrickColor.new("Toothpaste")
  623. Part33.CanCollide = false
  624. Part33.Material = Enum.Material.Neon
  625. Part33.TopSurface = Enum.SurfaceType.Smooth
  626. Part33.brickColor = BrickColor.new("Toothpaste")
  627. Part33.FormFactor = Enum.FormFactor.Symmetric
  628. Part33.formFactor = Enum.FormFactor.Symmetric
  629. SpecialMesh34.Parent = Part33
  630. SpecialMesh34.MeshId = "rbxassetid://430344159"
  631. SpecialMesh34.Offset = Vector3.new(-0.0500000007, 0.449999988, 0.5)
  632. SpecialMesh34.Scale = Vector3.new(5.5, 5.5, 5.5)
  633. SpecialMesh34.MeshType = Enum.MeshType.FileMesh
  634. Camera35.Name = "ThumbnailCamera"
  635. Camera35.Parent = Hat32
  636. Camera35.CFrame = CFrame.new(7.09014845, 4.30502892, 16.8996258, -0.979573905, -0.0921030194, 0.178751379, 7.4505806e-09, 0.888936162, 0.458031207, -0.201084614, 0.448675424, -0.87077862)
  637. Camera35.CameraType = Enum.CameraType.Custom
  638. Camera35.CoordinateFrame = CFrame.new(7.09014845, 4.30502892, 16.8996258, -0.979573905, -0.0921030194, 0.178751379, 7.4505806e-09, 0.888936162, 0.458031207, -0.201084614, 0.448675424, -0.87077862)
  639. Camera35.FieldOfView = 40
  640. Camera35.Focus = CFrame.new(6.73264551, 3.38896608, 18.6411839, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  641. Camera35.focus = CFrame.new(6.73264551, 3.38896608, 18.6411839, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  642. Model36.Name = "SSJ3 Goku"
  643. Model36.Parent = Model2
  644. Part37.Name = "Head"
  645. Part37.Parent = Model36
  646. Part37.CFrame = CFrame.new(-5.14130402, 4.90000677, -19.4327965, 0, -1.75787136e-08, 0.999999285, 0, 1.00000036, 1.72294676e-08, -1, 0, 0)
  647. Part37.Orientation = Vector3.new(0, 90, 0)
  648. Part37.Position = Vector3.new(-5.14130402, 4.90000677, -19.4327965)
  649. Part37.Rotation = Vector3.new(-90, 89.9300003, 90)
  650. Part37.Color = Color3.new(1, 0.8, 0.6)
  651. Part37.Size = Vector3.new(2, 1, 1)
  652. Part37.BrickColor = BrickColor.new("Pastel brown")
  653. Part37.TopSurface = Enum.SurfaceType.Smooth
  654. Part37.brickColor = BrickColor.new("Pastel brown")
  655. Part37.FormFactor = Enum.FormFactor.Symmetric
  656. Part37.formFactor = Enum.FormFactor.Symmetric
  657. SpecialMesh38.Parent = Part37
  658. SpecialMesh38.Scale = Vector3.new(1.25, 1.25, 1.25)
  659. Decal39.Parent = Part37
  660. Decal39.Texture = "http://www.roblox.com/asset/?id=231488603"
  661. Weld40.Name = "HeadWeld"
  662. Weld40.Parent = Part37
  663. Weld40.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664. Weld40.C1 = CFrame.new(0, -0.100000001, 0, 1, 0, -0, 0, 0.999999702, 0.000833332946, 0, -0.000833333062, 0.999999583)
  665. Weld40.Part0 = Part37
  666. Weld40.Part1 = Part64
  667. Weld40.part1 = Part64
  668. Part41.Name = "Left Arm"
  669. Part41.Parent = Model36
  670. Part41.CFrame = CFrame.new(-5.14130402, 3.40001106, -17.9327965, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  671. Part41.Orientation = Vector3.new(0, 90, 0)
  672. Part41.Position = Vector3.new(-5.14130402, 3.40001106, -17.9327965)
  673. Part41.Rotation = Vector3.new(0, 90, 0)
  674. Part41.Color = Color3.new(1, 0.8, 0.6)
  675. Part41.Size = Vector3.new(1, 2, 1)
  676. Part41.BrickColor = BrickColor.new("Pastel brown")
  677. Part41.brickColor = BrickColor.new("Pastel brown")
  678. Part41.FormFactor = Enum.FormFactor.Symmetric
  679. Part41.formFactor = Enum.FormFactor.Symmetric
  680. Fire42.Parent = Part41
  681. Fire42.Color = Color3.new(1, 0.709804, 0)
  682. Fire42.Enabled = false
  683. Fire42.Size = 30
  684. Fire42.Heat = 25
  685. Fire42.SecondaryColor = Color3.new(1, 0, 0)
  686. Fire42.size = 30
  687. Part43.Name = "Left Leg"
  688. Part43.Parent = Model36
  689. Part43.CFrame = CFrame.new(-5.14127302, 1.40001905, -18.9327965, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  690. Part43.Orientation = Vector3.new(0, 90, 0)
  691. Part43.Position = Vector3.new(-5.14127302, 1.40001905, -18.9327965)
  692. Part43.Rotation = Vector3.new(0, 90, 0)
  693. Part43.Color = Color3.new(1, 0.8, 0.6)
  694. Part43.Size = Vector3.new(1, 2, 1)
  695. Part43.BottomSurface = Enum.SurfaceType.Weld
  696. Part43.BrickColor = BrickColor.new("Pastel brown")
  697. Part43.brickColor = BrickColor.new("Pastel brown")
  698. Part43.FormFactor = Enum.FormFactor.Symmetric
  699. Part43.formFactor = Enum.FormFactor.Symmetric
  700. Fire44.Parent = Part43
  701. Fire44.Color = Color3.new(1, 0.709804, 0)
  702. Fire44.Enabled = false
  703. Fire44.Size = 30
  704. Fire44.Heat = 25
  705. Fire44.SecondaryColor = Color3.new(1, 0, 0)
  706. Fire44.size = 30
  707. Part45.Name = "Right Arm"
  708. Part45.Parent = Model36
  709. Part45.CFrame = CFrame.new(-5.14127302, 3.3999939, -20.9327965, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  710. Part45.Orientation = Vector3.new(0, 90, 0)
  711. Part45.Position = Vector3.new(-5.14127302, 3.3999939, -20.9327965)
  712. Part45.Rotation = Vector3.new(0, 90, 0)
  713. Part45.Color = Color3.new(1, 0.8, 0.6)
  714. Part45.Size = Vector3.new(1, 2, 1)
  715. Part45.BrickColor = BrickColor.new("Pastel brown")
  716. Part45.brickColor = BrickColor.new("Pastel brown")
  717. Part45.FormFactor = Enum.FormFactor.Symmetric
  718. Part45.formFactor = Enum.FormFactor.Symmetric
  719. Part46.Name = "Right Leg"
  720. Part46.Parent = Model36
  721. Part46.CFrame = CFrame.new(-5.14127302, 1.39997196, -19.9327965, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  722. Part46.Orientation = Vector3.new(0, 90, 0)
  723. Part46.Position = Vector3.new(-5.14127302, 1.39997196, -19.9327965)
  724. Part46.Rotation = Vector3.new(0, 90, 0)
  725. Part46.Color = Color3.new(1, 0.8, 0.6)
  726. Part46.Size = Vector3.new(1, 2, 1)
  727. Part46.BottomSurface = Enum.SurfaceType.Weld
  728. Part46.BrickColor = BrickColor.new("Pastel brown")
  729. Part46.brickColor = BrickColor.new("Pastel brown")
  730. Part46.FormFactor = Enum.FormFactor.Symmetric
  731. Part46.formFactor = Enum.FormFactor.Symmetric
  732. Part47.Name = "Torso"
  733. Part47.Parent = Model36
  734. Part47.CFrame = CFrame.new(-5.14130402, 3.40001106, -19.4327965, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  735. Part47.Orientation = Vector3.new(0, 90, 0)
  736. Part47.Position = Vector3.new(-5.14130402, 3.40001106, -19.4327965)
  737. Part47.Rotation = Vector3.new(0, 90, 0)
  738. Part47.Color = Color3.new(1, 0.8, 0.6)
  739. Part47.Size = Vector3.new(2, 2, 1)
  740. Part47.BrickColor = BrickColor.new("Pastel brown")
  741. Part47.LeftParamA = 0
  742. Part47.LeftParamB = 0
  743. Part47.LeftSurface = Enum.SurfaceType.Weld
  744. Part47.RightParamA = 0
  745. Part47.RightParamB = 0
  746. Part47.RightSurface = Enum.SurfaceType.Weld
  747. Part47.brickColor = BrickColor.new("Pastel brown")
  748. Part47.FormFactor = Enum.FormFactor.Symmetric
  749. Part47.formFactor = Enum.FormFactor.Symmetric
  750. Snap48.Name = "Neck"
  751. Snap48.Parent = Part47
  752. Snap48.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  753. Snap48.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  754. Fire49.Parent = Part47
  755. Fire49.Color = Color3.new(1, 0.709804, 0)
  756. Fire49.Enabled = false
  757. Fire49.Size = 30
  758. Fire49.Heat = 25
  759. Fire49.SecondaryColor = Color3.new(1, 0, 0)
  760. Fire49.size = 30
  761. Humanoid50.Name = "Morph"
  762. Humanoid50.Parent = Model36
  763. Humanoid50.Health = 0
  764. Humanoid50.LeftLeg = Part43
  765. Humanoid50.MaxHealth = 0
  766. Humanoid50.RightLeg = Part46
  767. Humanoid50.Torso = Part47
  768. Humanoid50.WalkSpeed = 0
  769. Humanoid50.maxHealth = 0
  770. Part51.Name = "MorphButton"
  771. Part51.Parent = Model36
  772. Part51.CFrame = CFrame.new(-8.64122772, 0.600019991, -19.4327965, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  773. Part51.Orientation = Vector3.new(0, 90, 0)
  774. Part51.Position = Vector3.new(-8.64122772, 0.600019991, -19.4327965)
  775. Part51.Rotation = Vector3.new(0, 90, 0)
  776. Part51.Color = Color3.new(0.960784, 0.803922, 0.188235)
  777. Part51.Size = Vector3.new(4, 0.400000006, 4)
  778. Part51.BottomSurface = Enum.SurfaceType.Weld
  779. Part51.BrickColor = BrickColor.new("Bright yellow")
  780. Part51.LeftParamA = 0
  781. Part51.LeftParamB = 0
  782. Part51.Reflectance = 0.5
  783. Part51.RightParamA = 0
  784. Part51.RightParamB = 0
  785. Part51.TopSurface = Enum.SurfaceType.Smooth
  786. Part51.brickColor = BrickColor.new("Bright yellow")
  787. Part51.FormFactor = Enum.FormFactor.Plate
  788. Part51.formFactor = Enum.FormFactor.Plate
  789. Snap52.Name = "Neck"
  790. Snap52.Parent = Part51
  791. Snap52.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  792. Snap52.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  793. CylinderMesh53.Parent = Part51
  794. Fire54.Parent = Part51
  795. Fire54.Color = Color3.new(1, 1, 0)
  796. Fire54.Enabled = false
  797. Fire54.Size = 30
  798. Fire54.Heat = 25
  799. Fire54.SecondaryColor = Color3.new(1, 0, 0)
  800. Fire54.size = 30
  801. Script55.Name = "SmartMorphButton"
  802. Script55.Parent = Part51
  803. table.insert(cors,sandbox(Script55,function()
  804. -- Smart Morph script by CoolbuilderManClub
  805.  
  806. while (script:findFirstChild("InfoRemover") == nil) do wait(0.1) end
  807.  
  808. local g = Instance.new("ScreenGui")
  809. g.Name = "InfoBox"
  810.  
  811. local t = Instance.new("TextLabel")
  812. t.Name = "Info"
  813. t.Text = "Smart Morph Script By TankLeadfoot"
  814. t.BackgroundTransparency = 0
  815. t.BackgroundColor3 = Color3.new(0, 0, 0)
  816. t.BorderSizePixel = 0
  817. t.TextColor3 = Color3.new(1, 1, 1)
  818. t.Position = UDim2.new(0, 0, 0.95, 0)
  819. t.Size = UDim2.new(1, 0, 0.05, 0)
  820. t.Parent = g
  821.  
  822. local CanMorph = nil
  823. local Lock = nil
  824.  
  825. local s = script.InfoRemover:Clone()
  826. s.Parent = g
  827. s.Disabled = false
  828.  
  829. script.Parent.BrickColor = BrickColor.new("Bright yellow")
  830.  
  831. function onTouch(hit)
  832. if (Lock == nil) then
  833. Lock = true
  834. script.Parent.BrickColor = BrickColor.new("Medium stone grey")
  835.  
  836. CanMorph = nil
  837. BodyParts = hit.Parent:GetChildren()
  838. for i,b in pairs(BodyParts) do
  839. if (b.className == "Humanoid") then
  840. CanMorph = true
  841. end
  842. wait(0.1)
  843. end
  844. if (CanMorph == nil) then
  845. script.Parent.BrickColor = BrickColor.new("Bright yellow")
  846. Lock = nil
  847. return
  848. end
  849.  
  850. script.Parent.BrickColor = BrickColor.new("Black")
  851. g.Parent = game.Players:findFirstChild(hit.Parent.Name).PlayerGui
  852.  
  853. BodyParts = hit.Parent:GetChildren()
  854. for i,b in pairs(BodyParts) do
  855. if (b.className == "Hat") or (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then
  856. b:Remove()
  857. end
  858. if (b.className == "Part") then
  859. if (b.Name == "Torso") then
  860. if (b:findFirstChild("roblox") ~= nil) then
  861. b.roblox:Remove()
  862. elseif (b:findFirstChild("Decal") ~= nil) then
  863. b.Decal:Remove()
  864. end
  865. end
  866. if (b.Name == "Head") then
  867. if (b:findFirstChild("Mesh") ~= nil) then
  868. b.Mesh:Remove()
  869. end
  870. end
  871. end
  872. wait(0.1)
  873. end
  874.  
  875. BodyParts = script.Parent.Parent:GetChildren()
  876. for i,b in pairs(BodyParts) do
  877. if (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then
  878. b:Clone().Parent = hit.Parent
  879. end
  880. if (b.className == "BodyColors") and (hit.Parent:findFirstChild("Body Colors") ~= nil) then
  881. hit.Parent:findFirstChild("Body Colors").HeadColor= b.HeadColor
  882. hit.Parent:findFirstChild("Body Colors").LeftArmColor= b.LeftArmColor
  883. hit.Parent:findFirstChild("Body Colors").LeftLegColor= b.LeftLegColor
  884. hit.Parent:findFirstChild("Body Colors").RightArmColor= b.RightArmColor
  885. hit.Parent:findFirstChild("Body Colors").RightLegColor= b.RightLegColor
  886. hit.Parent:findFirstChild("Body Colors").TorsoColor= b.TorsoColor
  887. end
  888. if (b.className == "Part") then
  889. if (b.Name == "Torso") then
  890. if (b:findFirstChild("roblox") ~= nil) then
  891. b.roblox:Clone().Parent = hit.Parent.Torso
  892. elseif (script.Parent.Parent.Torso:findFirstChild("Decal") ~= nil) then
  893. b.Decal:Clone().Parent = hit.Parent.Torso
  894. end
  895. end
  896. if (b.Name == "Head") then
  897. if (b:findFirstChild("face") ~= nil) then
  898. hit.Parent.Head.face.Texture = b.face.Texture
  899. elseif (script.Parent.Parent.Head:findFirstChild("Decal") ~= nil) then
  900. hit.Parent.Head.face.Texture = b.Decal.Texture
  901. end
  902. if (b:findFirstChild("Mesh") ~= nil) then
  903. b.Mesh:Clone().Parent = hit.Parent.Head
  904. end
  905. end
  906. end
  907. if (b.className == "Hat") then
  908. local h = Instance.new("Hat")
  909. h.Name = b.Name
  910. h.AttachmentPos = b.AttachmentPos
  911. b.Handle:Clone().Parent = h
  912. h.Parent = hit.Parent
  913. end
  914. wait(0.1)
  915. end
  916.  
  917. g.Parent = nil
  918. script.Parent.BrickColor = BrickColor.new("Bright yellow")
  919. Lock = nil
  920. end
  921. end
  922.  
  923. script.Parent.Touched:connect(onTouch)
  924.  
  925. end))
  926. Script56.Name = "InfoRemover"
  927. Script56.Parent = Script55
  928. table.insert(cors,sandbox(Script56,function()
  929. script.Parent:Remove(wait(10))
  930.  
  931. end))
  932. Script56.Disabled = true
  933. Part57.Parent = Model36
  934. Part57.CFrame = CFrame.new(-7.14124298, 0.200023651, -19.4327965, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  935. Part57.Orientation = Vector3.new(0, 90, 0)
  936. Part57.Position = Vector3.new(-7.14124298, 0.200023651, -19.4327965)
  937. Part57.Rotation = Vector3.new(0, 90, 0)
  938. Part57.Color = Color3.new(0.854902, 0.521569, 0.254902)
  939. Part57.Size = Vector3.new(6, 0.400000006, 9)
  940. Part57.BottomSurface = Enum.SurfaceType.Weld
  941. Part57.BrickColor = BrickColor.new("Bright orange")
  942. Part57.LeftParamA = 0
  943. Part57.LeftParamB = 0
  944. Part57.Reflectance = 0.5
  945. Part57.RightParamA = 0
  946. Part57.RightParamB = 0
  947. Part57.TopSurface = Enum.SurfaceType.Smooth
  948. Part57.brickColor = BrickColor.new("Bright orange")
  949. Part57.FormFactor = Enum.FormFactor.Plate
  950. Part57.formFactor = Enum.FormFactor.Plate
  951. Snap58.Name = "Neck"
  952. Snap58.Parent = Part57
  953. Snap58.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  954. Snap58.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  955. Fire59.Parent = Part57
  956. Fire59.Color = Color3.new(1, 0.709804, 0)
  957. Fire59.Enabled = false
  958. Fire59.Size = 30
  959. Fire59.Heat = 25
  960. Fire59.SecondaryColor = Color3.new(1, 0, 0)
  961. Fire59.size = 30
  962. Weld60.Parent = Part57
  963. Weld60.C0 = CFrame.new(0, -0.200000003, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  964. Weld60.C1 = CFrame.new(-7.14124298, 10.0000238, -19.4327965, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  965. Weld60.Part0 = Part57
  966. Weld60.Part1 = Part1
  967. Weld60.part1 = Part1
  968. BodyColors61.Parent = Model36
  969. BodyColors61.HeadColor = BrickColor.new("Pastel brown")
  970. BodyColors61.HeadColor3 = Color3.new(1, 0.8, 0.6)
  971. BodyColors61.LeftArmColor = BrickColor.new("Pastel brown")
  972. BodyColors61.LeftArmColor3 = Color3.new(1, 0.8, 0.6)
  973. BodyColors61.LeftLegColor = BrickColor.new("Pastel brown")
  974. BodyColors61.LeftLegColor3 = Color3.new(1, 0.8, 0.6)
  975. BodyColors61.RightArmColor = BrickColor.new("Pastel brown")
  976. BodyColors61.RightArmColor3 = Color3.new(1, 0.8, 0.6)
  977. BodyColors61.RightLegColor = BrickColor.new("Pastel brown")
  978. BodyColors61.RightLegColor3 = Color3.new(1, 0.8, 0.6)
  979. BodyColors61.TorsoColor = BrickColor.new("Pastel brown")
  980. BodyColors61.TorsoColor3 = Color3.new(1, 0.8, 0.6)
  981. Script62.Name = "How To Make A Morph"
  982. Script62.Parent = Model36
  983. table.insert(cors,sandbox(Script62,function()
  984. First Pick This Morph
  985. Then If You Want To Change Yourself (Not The Morph) Search For Pants,Shirt,Hat,
  986. If Your Done Making The Morph Go To Your Name And Press Plus (+) Button
  987. Then Copy Your Shirt And Pants If Your Done Copying The Shirt To The Morph
  988. Go Again To Your Name And Press Again Plus If U Minus(-) Your Character Beside Your Name
  989. If U Want To Put Hats At Your Morph Do # 9
  990. First Do Not Search For Hats At (Search) Beacuse If Do That It Wont Work So Dont Do That
  991. If U Copy Hats No Right Click And Press Copy Beacuse If U Copy It The Hat Will Fall
  992. So Grab Your Hats One By One To The Morph So It Will Work Tnx
  993. Message Me If You Dont Understand
  994. If U Cant Message Me If Im Online
  995. Meet Me At My Place This Is The Link See Number 13
  996. http://www.roblox.com/Im-Making-Morph-Here-place?id=101670864
  997. Tnx Pls Like My Morph Before Taking!!!
  998. If U Want To Be A Superhero Morph Or Robloxian 2.0
  999. First Pick The Morph U Want And Go In The Front Of It
  1000. And Then Go To Your Character And Press Plus (+) To Copy It
  1001. And Then 1 By 1 To Copy It
  1002. Tnx For Making Morph!!
  1003. Pls Enjoy!!!
  1004. end))
  1005. Hat63.Name = "SuperSaiyan3Hair"
  1006. Hat63.Parent = Model36
  1007. Hat63.AttachmentForward = Vector3.new(0, -0.000833332946, -0.999999583)
  1008. Hat63.AttachmentPoint = CFrame.new(0, -0.100000001, 0, 1, 0, -0, 0, 0.999999702, 0.000833332946, 0, -0.000833333062, 0.999999583)
  1009. Hat63.AttachmentPos = Vector3.new(0, -0.100000001, 0)
  1010. Hat63.AttachmentUp = Vector3.new(0, 0.999999702, -0.000833333062)
  1011. Part64.Name = "Handle"
  1012. Part64.Parent = Hat63
  1013. Part64.CFrame = CFrame.new(-5.14122057, 5.50000715, -19.4327965, 0, 0.000833314785, 0.999998868, 0, 1, -0.000833316124, -1, 0, 0)
  1014. Part64.Orientation = Vector3.new(0.0500000007, 90, 0)
  1015. Part64.Position = Vector3.new(-5.14122057, 5.50000715, -19.4327965)
  1016. Part64.Rotation = Vector3.new(90, 89.9100037, -90)
  1017. Part64.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1018. Part64.Size = Vector3.new(2, 2, 2)
  1019. Part64.BottomSurface = Enum.SurfaceType.Smooth
  1020. Part64.BrickColor = BrickColor.new("Bright yellow")
  1021. Part64.CanCollide = false
  1022. Part64.Material = Enum.Material.Neon
  1023. Part64.TopSurface = Enum.SurfaceType.Smooth
  1024. Part64.brickColor = BrickColor.new("Bright yellow")
  1025. Part64.FormFactor = Enum.FormFactor.Symmetric
  1026. Part64.formFactor = Enum.FormFactor.Symmetric
  1027. SpecialMesh65.Parent = Part64
  1028. SpecialMesh65.MeshId = "rbxassetid://437432504"
  1029. SpecialMesh65.Offset = Vector3.new(0.0199999996, -0.889999986, 1.29999995)
  1030. SpecialMesh65.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0350000001)
  1031. SpecialMesh65.MeshType = Enum.MeshType.FileMesh
  1032. Shirt66.Name = "Shirt"
  1033. Shirt66.Parent = Model36
  1034. Shirt66.ShirtTemplate = "http://www.roblox.com/asset/?id=233470894"
  1035. Pants67.Name = "Pants"
  1036. Pants67.Parent = Model36
  1037. Pants67.PantsTemplate = "http://www.roblox.com/asset/?id=270365252"
  1038. for i,v in pairs(mas:GetChildren()) do
  1039. v.Parent = game:GetService("Players").LocalPlayer.Character
  1040. pcall(function() v:MakeJoints() end)
  1041. end
  1042. mas:Destroy()
  1043. for i,v in pairs(cors) do
  1044. spawn(function()
  1045. pcall(v)
  1046. end)
  1047. end
  1048.  
  1049. end))
  1050. Model4.Name = "Sans"
  1051. Model4.Parent = mas
  1052. BodyColors5.Parent = Model4
  1053. BodyColors5.HeadColor = BrickColor.new("Light stone grey")
  1054. BodyColors5.HeadColor3 = Color3.new(0.898039, 0.894118, 0.87451)
  1055. BodyColors5.LeftArmColor = BrickColor.new("Light stone grey")
  1056. BodyColors5.LeftArmColor3 = Color3.new(0.898039, 0.894118, 0.87451)
  1057. BodyColors5.LeftLegColor = BrickColor.new("Light stone grey")
  1058. BodyColors5.LeftLegColor3 = Color3.new(0.898039, 0.894118, 0.87451)
  1059. BodyColors5.RightArmColor = BrickColor.new("Light stone grey")
  1060. BodyColors5.RightArmColor3 = Color3.new(0.898039, 0.894118, 0.87451)
  1061. BodyColors5.RightLegColor = BrickColor.new("Light stone grey")
  1062. BodyColors5.RightLegColor3 = Color3.new(0.898039, 0.894118, 0.87451)
  1063. BodyColors5.TorsoColor = BrickColor.new("Light stone grey")
  1064. BodyColors5.TorsoColor3 = Color3.new(0.898039, 0.894118, 0.87451)
  1065. Humanoid6.Parent = Model4
  1066. Humanoid6.Health = 50
  1067. Humanoid6.JumpPower = 100
  1068. Humanoid6.LeftLeg = Part18
  1069. Humanoid6.MaxHealth = 50
  1070. Humanoid6.RightLeg = Part21
  1071. Humanoid6.Torso = Part15
  1072. Humanoid6.WalkSpeed = 0.0099999997764826
  1073. Humanoid6.maxHealth = 50
  1074. Part7.Name = "Head"
  1075. Part7.Parent = Model4
  1076. Part7.CFrame = CFrame.new(0.705411971, 4.49999905, -19.0810223, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1077. Part7.Orientation = Vector3.new(0, 179.660004, 0)
  1078. Part7.Position = Vector3.new(0.705411971, 4.49999905, -19.0810223)
  1079. Part7.Rotation = Vector3.new(-180, 0.340000004, -180)
  1080. Part7.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1081. Part7.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1082. Part7.Size = Vector3.new(2, 1, 1)
  1083. Part7.BrickColor = BrickColor.new("Cool yellow")
  1084. Part7.TopSurface = Enum.SurfaceType.Smooth
  1085. Part7.brickColor = BrickColor.new("Cool yellow")
  1086. Part7.FormFactor = Enum.FormFactor.Symmetric
  1087. Part7.formFactor = Enum.FormFactor.Symmetric
  1088. SpecialMesh8.Parent = Part7
  1089. SpecialMesh8.MeshId = "rbxassetid://430073345"
  1090. SpecialMesh8.Offset = Vector3.new(0.109999999, -0.600000024, 0.100000001)
  1091. SpecialMesh8.TextureId = "rbxassetid://430073362"
  1092. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  1093. Sound9.Name = "Voice"
  1094. Sound9.Parent = Part7
  1095. Sound9.Looped = true
  1096. Sound9.SoundId = "rbxassetid://615716445"
  1097. Sound9.Volume = 2
  1098. PitchShiftSoundEffect10.Parent = Sound9
  1099. PitchShiftSoundEffect10.Octave = 0.5
  1100. Dialog11.Parent = Part7
  1101. Dialog11.GoodbyeDialog = "..."
  1102. Dialog11.InitialPrompt = "*Spare Sans?*"
  1103. DialogChoice12.Name = "Fight"
  1104. DialogChoice12.Parent = Dialog11
  1105. DialogChoice12.GoodbyeDialog = ".."
  1106. DialogChoice12.ResponseDialog = "... you're sparing me? finally. buddy. pal. i know how hard it must be... to make that choice. to go back on everything you've worked up to. i want you to know... i won't let it go to waste. ... c'mere, pal."
  1107. DialogChoice12.UserDialog = "Spare"
  1108. Script13.Parent = Dialog11
  1109. table.insert(cors,sandbox(Script13,function()
  1110. script.Parent.InUse = true
  1111. function clk(player, choice)
  1112. if choice == script.Parent.Fight then
  1113. local Charecter = game.Workspace:FindFirstChild("player")
  1114. local human = Charecter.Humanoid
  1115.  
  1116. local human = player:FindFirstChild("Humanoid")
  1117. for i= 1,999999999999999 do
  1118. human:TakeDamage(10)
  1119. wait(.1)
  1120. end
  1121. end
  1122. end
  1123. script.Parent.DialogChoiceSelected:connect(clk)
  1124.  
  1125. end))
  1126. ParticleEmitter14.Name = "SWet"
  1127. ParticleEmitter14.Parent = Part7
  1128. ParticleEmitter14.Speed = NumberRange.new(3, 3)
  1129. ParticleEmitter14.Enabled = false
  1130. ParticleEmitter14.ZOffset = 1
  1131. ParticleEmitter14.Size = NumberSequence.new(0.10000000149012,0.10000000149012)
  1132. ParticleEmitter14.Acceleration = Vector3.new(0, -12, 0)
  1133. ParticleEmitter14.Rate = 50
  1134. Part15.Name = "HumanoidRootPart"
  1135. Part15.Parent = Model4
  1136. Part15.CFrame = CFrame.new(0.705411971, 2.99999905, -19.0810223, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1137. Part15.Orientation = Vector3.new(0, 179.660004, 0)
  1138. Part15.Position = Vector3.new(0.705411971, 2.99999905, -19.0810223)
  1139. Part15.Rotation = Vector3.new(-180, 0.340000004, -180)
  1140. Part15.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1141. Part15.Transparency = 1
  1142. Part15.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1143. Part15.Size = Vector3.new(2, 2, 1)
  1144. Part15.BottomSurface = Enum.SurfaceType.Smooth
  1145. Part15.BrickColor = BrickColor.new("Bright blue")
  1146. Part15.CanCollide = false
  1147. Part15.LeftParamA = 0
  1148. Part15.LeftParamB = 0
  1149. Part15.RightParamA = 0
  1150. Part15.RightParamB = 0
  1151. Part15.TopSurface = Enum.SurfaceType.Smooth
  1152. Part15.brickColor = BrickColor.new("Bright blue")
  1153. Part15.FormFactor = Enum.FormFactor.Symmetric
  1154. Part15.formFactor = Enum.FormFactor.Symmetric
  1155. Motor6D16.Name = "RootJoint"
  1156. Motor6D16.Parent = Part15
  1157. Motor6D16.MaxVelocity = 0.10000000149012
  1158. Motor6D16.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1159. Motor6D16.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1160. Motor6D16.Part0 = Part15
  1161. Motor6D16.Part1 = Part23
  1162. Motor6D16.part1 = Part23
  1163. Part17.Name = "Left Arm"
  1164. Part17.Parent = Model4
  1165. Part17.CFrame = CFrame.new(2.20538521, 2.99999905, -19.0720825, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1166. Part17.Orientation = Vector3.new(0, 179.660004, 0)
  1167. Part17.Position = Vector3.new(2.20538521, 2.99999905, -19.0720825)
  1168. Part17.Rotation = Vector3.new(-180, 0.340000004, -180)
  1169. Part17.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1170. Part17.Transparency = 1
  1171. Part17.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1172. Part17.Size = Vector3.new(1, 2, 1)
  1173. Part17.BrickColor = BrickColor.new("Cool yellow")
  1174. Part17.CanCollide = false
  1175. Part17.brickColor = BrickColor.new("Cool yellow")
  1176. Part17.FormFactor = Enum.FormFactor.Symmetric
  1177. Part17.formFactor = Enum.FormFactor.Symmetric
  1178. Part18.Name = "Left Leg"
  1179. Part18.Parent = Model4
  1180. Part18.CFrame = CFrame.new(1.20540309, 0.999999046, -19.078043, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1181. Part18.Orientation = Vector3.new(0, 179.660004, 0)
  1182. Part18.Position = Vector3.new(1.20540309, 0.999999046, -19.078043)
  1183. Part18.Rotation = Vector3.new(-180, 0.340000004, -180)
  1184. Part18.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1185. Part18.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1186. Part18.Size = Vector3.new(1, 2, 1)
  1187. Part18.BottomSurface = Enum.SurfaceType.Smooth
  1188. Part18.BrickColor = BrickColor.new("Bright blue")
  1189. Part18.CanCollide = false
  1190. Part18.brickColor = BrickColor.new("Bright blue")
  1191. Part18.FormFactor = Enum.FormFactor.Symmetric
  1192. Part18.formFactor = Enum.FormFactor.Symmetric
  1193. SpecialMesh19.Parent = Part18
  1194. SpecialMesh19.MeshId = "rbxassetid://430069778"
  1195. SpecialMesh19.Offset = Vector3.new(-0.0500000007, 0.0250000004, -0.100000001)
  1196. SpecialMesh19.TextureId = "rbxassetid://430070605"
  1197. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  1198. Part20.Name = "Right Arm"
  1199. Part20.Parent = Model4
  1200. Part20.CFrame = CFrame.new(-0.794561327, 2.99999905, -19.089962, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1201. Part20.Orientation = Vector3.new(0, 179.660004, 0)
  1202. Part20.Position = Vector3.new(-0.794561327, 2.99999905, -19.089962)
  1203. Part20.Rotation = Vector3.new(-180, 0.340000004, -180)
  1204. Part20.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1205. Part20.Transparency = 1
  1206. Part20.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1207. Part20.Size = Vector3.new(1, 2, 1)
  1208. Part20.BrickColor = BrickColor.new("Cool yellow")
  1209. Part20.CanCollide = false
  1210. Part20.brickColor = BrickColor.new("Cool yellow")
  1211. Part20.FormFactor = Enum.FormFactor.Symmetric
  1212. Part20.formFactor = Enum.FormFactor.Symmetric
  1213. Part21.Name = "Right Leg"
  1214. Part21.Parent = Model4
  1215. Part21.CFrame = CFrame.new(0.205420852, 0.999999046, -19.0840015, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1216. Part21.Orientation = Vector3.new(0, 179.660004, 0)
  1217. Part21.Position = Vector3.new(0.205420852, 0.999999046, -19.0840015)
  1218. Part21.Rotation = Vector3.new(-180, 0.340000004, -180)
  1219. Part21.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1220. Part21.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1221. Part21.Size = Vector3.new(1, 2, 1)
  1222. Part21.BottomSurface = Enum.SurfaceType.Smooth
  1223. Part21.BrickColor = BrickColor.new("Bright blue")
  1224. Part21.CanCollide = false
  1225. Part21.brickColor = BrickColor.new("Bright blue")
  1226. Part21.FormFactor = Enum.FormFactor.Symmetric
  1227. Part21.formFactor = Enum.FormFactor.Symmetric
  1228. SpecialMesh22.Parent = Part21
  1229. SpecialMesh22.MeshId = "rbxassetid://430070587"
  1230. SpecialMesh22.Offset = Vector3.new(0.200000003, 0, 0)
  1231. SpecialMesh22.TextureId = "rbxassetid://430070605"
  1232. SpecialMesh22.MeshType = Enum.MeshType.FileMesh
  1233. Part23.Name = "Torso"
  1234. Part23.Parent = Model4
  1235. Part23.CFrame = CFrame.new(0.705411971, 2.99999905, -19.0810223, -0.999982238, 2.32234143e-31, 0.00596030289, 2.40189395e-31, 1, 1.33398701e-30, -0.00596030289, 1.33539487e-30, -0.999982238)
  1236. Part23.Orientation = Vector3.new(0, 179.660004, 0)
  1237. Part23.Position = Vector3.new(0.705411971, 2.99999905, -19.0810223)
  1238. Part23.Rotation = Vector3.new(-180, 0.340000004, -180)
  1239. Part23.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1240. Part23.Velocity = Vector3.new(-6.84544809e-31, 0, -3.93627129e-30)
  1241. Part23.Size = Vector3.new(2, 2, 1)
  1242. Part23.BrickColor = BrickColor.new("Dark green")
  1243. Part23.LeftParamA = 0
  1244. Part23.LeftParamB = 0
  1245. Part23.LeftSurface = Enum.SurfaceType.Weld
  1246. Part23.RightParamA = 0
  1247. Part23.RightParamB = 0
  1248. Part23.RightSurface = Enum.SurfaceType.Weld
  1249. Part23.brickColor = BrickColor.new("Dark green")
  1250. Part23.FormFactor = Enum.FormFactor.Symmetric
  1251. Part23.formFactor = Enum.FormFactor.Symmetric
  1252. Motor6D24.Name = "Right Shoulder"
  1253. Motor6D24.Parent = Part23
  1254. Motor6D24.MaxVelocity = 0.10000000149012
  1255. Motor6D24.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1256. Motor6D24.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1257. Motor6D24.Part0 = Part23
  1258. Motor6D24.Part1 = Part20
  1259. Motor6D24.part1 = Part20
  1260. Motor6D25.Name = "Left Shoulder"
  1261. Motor6D25.Parent = Part23
  1262. Motor6D25.MaxVelocity = 0.10000000149012
  1263. Motor6D25.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1264. Motor6D25.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1265. Motor6D25.Part0 = Part23
  1266. Motor6D25.Part1 = Part17
  1267. Motor6D25.part1 = Part17
  1268. Motor6D26.Name = "Right Hip"
  1269. Motor6D26.Parent = Part23
  1270. Motor6D26.MaxVelocity = 0.10000000149012
  1271. Motor6D26.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1272. Motor6D26.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1273. Motor6D26.Part0 = Part23
  1274. Motor6D26.Part1 = Part21
  1275. Motor6D26.part1 = Part21
  1276. Motor6D27.Name = "Left Hip"
  1277. Motor6D27.Parent = Part23
  1278. Motor6D27.MaxVelocity = 0.10000000149012
  1279. Motor6D27.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1280. Motor6D27.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1281. Motor6D27.Part0 = Part23
  1282. Motor6D27.Part1 = Part18
  1283. Motor6D27.part1 = Part18
  1284. Motor6D28.Name = "Neck"
  1285. Motor6D28.Parent = Part23
  1286. Motor6D28.MaxVelocity = 0.10000000149012
  1287. Motor6D28.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1288. Motor6D28.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1289. Motor6D28.Part0 = Part23
  1290. Motor6D28.Part1 = Part7
  1291. Motor6D28.part1 = Part7
  1292. Decal29.Name = "roblox"
  1293. Decal29.Parent = Part23
  1294. SpecialMesh30.Parent = Part23
  1295. SpecialMesh30.MeshId = "rbxassetid://430072717"
  1296. SpecialMesh30.Offset = Vector3.new(0.109999999, -0.300000012, 0.100000001)
  1297. SpecialMesh30.TextureId = "rbxassetid://430072723"
  1298. SpecialMesh30.MeshType = Enum.MeshType.FileMesh
  1299. ParticleEmitter31.Name = "MissGui"
  1300. ParticleEmitter31.Parent = Part23
  1301. ParticleEmitter31.LightInfluence = 1
  1302. ParticleEmitter31.Texture = "rbxassetid://893928449"
  1303. ParticleEmitter31.Acceleration = Vector3.new(0, -3, 0)
  1304. ParticleEmitter31.Lifetime = NumberRange.new(5, 5)
  1305. ParticleEmitter31.Rate = 0
  1306. Sound32.Name = "Magic"
  1307. Sound32.Parent = Part23
  1308. Sound32.Pitch = 0.94999998807907
  1309. Sound32.PlaybackSpeed = 0.94999998807907
  1310. Sound32.SoundId = "rbxassetid://446961725"
  1311. Sound32.Volume = 1
  1312. Script33.Name = "PushPack"
  1313. Script33.Parent = Part23
  1314. table.insert(cors,sandbox(Script33,function()
  1315. door = script.Parent
  1316.  
  1317. function onTouch(hit)
  1318. if hit.Parent == nil then return end
  1319. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1320. if h ~= nil then
  1321. hit.Parent.Torso.Velocity=door.CFrame.lookVector * 100 -- Push the Player back
  1322. script.Parent.Magic.Playing = true
  1323. end
  1324. end
  1325. door.Touched:connect(onTouch)
  1326. end))
  1327. Script33.Disabled = true
  1328. Sound34.Parent = Part23
  1329. Sound34.PlayOnRemove = true
  1330. Sound34.SoundId = "rbxassetid://427025525"
  1331. Sound34.Volume = 10
  1332. Sound35.Name = "HitSound"
  1333. Sound35.Parent = Part23
  1334. Sound35.SoundId = "rbxassetid://388826051"
  1335. Sound35.Volume = 5
  1336. ParticleEmitter36.Name = "Bleed"
  1337. ParticleEmitter36.Parent = Part23
  1338. ParticleEmitter36.Speed = NumberRange.new(3, 3)
  1339. ParticleEmitter36.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  1340. ParticleEmitter36.Enabled = false
  1341. ParticleEmitter36.ZOffset = 1
  1342. ParticleEmitter36.Size = NumberSequence.new(0.10000000149012,0.10000000149012)
  1343. ParticleEmitter36.Acceleration = Vector3.new(0, -12, 0)
  1344. ParticleEmitter36.EmissionDirection = Enum.NormalId.Front
  1345. ParticleEmitter36.Rate = 50
  1346. Camera37.Name = "ThumbnailCamera"
  1347. Camera37.Parent = Model4
  1348. Camera37.CFrame = CFrame.new(-14.8329964, 1.63690138, -18.4846897, 0.999122858, -0.00722842105, -0.0412463434, -0, 0.98498857, -0.172619238, 0.0418749452, 0.172467828, 0.984124601)
  1349. Camera37.CoordinateFrame = CFrame.new(-14.8329964, 1.63690138, -18.4846897, 0.999122858, -0.00722842105, -0.0412463434, -0, 0.98498857, -0.172619238, 0.0418749452, 0.172467828, 0.984124601)
  1350. Camera37.Focus = CFrame.new(-14.6267643, 2.49999905, -23.4053211, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1351. Camera37.focus = CFrame.new(-14.6267643, 2.49999905, -23.4053211, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1352. Script38.Name = "Sans_Main"
  1353. Script38.Parent = Model4
  1354. table.insert(cors,sandbox(Script38,function()
  1355. debris = game:GetService("Debris")
  1356. gui =false
  1357. ded = false
  1358. diffaculty= 0
  1359. Talk = script.Parent.TalkScript
  1360. function findNearestTorso(pos)
  1361. local list = game.Workspace:children()
  1362. local torso = nil
  1363. local dist = 300 + script.Parent.Humanoid.MaxHealth-script.Parent.Humanoid.Health --This Line Right Here
  1364. local temp = nil
  1365. local human = nil
  1366. local temp2 = nil
  1367. for x = 1, #list do
  1368. temp2 = list[x]
  1369. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1370. temp = temp2:findFirstChild("Torso")
  1371. human = temp2:findFirstChildOfClass("Humanoid")
  1372. Friend = temp2:findFirstChild("Team")
  1373. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (Friend == nil) or (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (Friend.Value ~= script.Parent.Team.Value) then
  1374. if (temp.Position - pos).magnitude < dist then
  1375. torso = temp
  1376. dist = (temp.Position - pos).magnitude
  1377. end
  1378. end
  1379. end
  1380. end
  1381. return torso
  1382. end
  1383. gui = false
  1384. function Dodge()
  1385. local orgin = script.Parent.Torso.Position
  1386. script.Parent.Humanoid.Health = script.Parent.Humanoid.MaxHealth
  1387. local direction = math.random(1,2)
  1388. if direction ==1 then script.Parent.Torso.Velocity = CFrame.Angles(0,math.pi/2,0)* script.Parent.Torso.CFrame.lookVector * (-100) end
  1389. if direction == 2 then script.Parent.Torso.Velocity = CFrame.Angles(0,math.pi/2,0)* script.Parent.Torso.CFrame.lookVector * (100) end
  1390. if ded == false then script.Parent.Humanoid.Sit = false end
  1391. if gui== false then
  1392. gui = true
  1393.  
  1394. if diffaculty ~= 28 and diffaculty ~=9 then
  1395. script.Parent.Torso.MissGui:Emit(1)
  1396. if diffaculty == 0 then
  1397. wait(.5)
  1398. script.Parent:MoveTo(orgin)
  1399. script.Parent.Torso.Velocity = script.Parent.Torso.Velocity*0
  1400. game:GetService("Chat"):Chat(script.Parent.Head, "What. you think im just gonna Stand there and take it?", "Red")
  1401. script.Parent.Head.Voice:Play()
  1402. wait(4)
  1403. script.Parent.Head.Voice:Stop()
  1404. wait(1)
  1405. script.Parent.Torso.PushPack.Disabled = false
  1406. Talk.Disabled = false
  1407. end
  1408. diffaculty = diffaculty+1
  1409. if diffaculty== 1 then
  1410. local target = findNearestTorso(script.Parent.Torso.Position)
  1411. if target ~= nil and ded == false then
  1412. for i = 1,15 do
  1413. Grattack(target.Position)
  1414. end
  1415.  
  1416. end
  1417. for i = 1,7 do
  1418. GasterBlaster()
  1419. end
  1420. for i = 1,5 do
  1421. for i = 1,7 do
  1422. if target ~= nil then
  1423. lookAt = (target.Position - script.Parent.Torso.Position).unit
  1424. Fire(lookAt)
  1425. end
  1426. end
  1427.  
  1428.  
  1429. wait(.1)
  1430. end
  1431.  
  1432. end
  1433. GasterBlaster()
  1434. print(diffaculty)
  1435. script.Parent.Megalovania.Playing = true
  1436.  
  1437. else
  1438.  
  1439. if diffaculty == 28 then
  1440. Talk.Disabled = true
  1441. script.Parent.Torso.Bleed.Enabled = true
  1442. script.Parent.Torso.Anchored = true
  1443. script.Parent.Head.SWet.Enabled= false
  1444. ded = true
  1445. script.Parent.Humanoid.Sit = true
  1446. script.Parent.Megalovania.Playing = false
  1447. script.Parent.Torso.HitSound:Play()
  1448. wait(1)
  1449. game:GetService("Chat"):Chat(script.Parent.Head, "... ... ... so... guess that's it, huh? ... just... don't say i didn't warn you. welp. i'm going to grillby's. papyrus, do you want anything?", "Red")
  1450. script.Parent.Head.Voice:Play()
  1451.  
  1452. wait(4)
  1453. script.Parent.Head.Voice:Stop()
  1454. script.Parent.Humanoid.Sit = false
  1455. wait(1)
  1456. game:GetService("Chat"):Chat(script.Parent.Head, "Papyrus, do you want anything?", "Red")
  1457. script.Parent.Head.Voice:Play()
  1458.  
  1459. wait(4)
  1460. script.Parent.Head.Voice:Stop()
  1461. script.Parent.Humanoid.Health = 0
  1462. wait()
  1463. script.Parent:Destroy()
  1464. else
  1465. script.Parent.Torso.Anchored = true
  1466. ded = true
  1467. game:GetService("Chat"):Chat(script.Parent.Head, "ugh... that being said... you, uh, really like swinging that thing around, huh?", "Red")
  1468. script.Parent.Megalovania.Playing = false
  1469. Talk.Disabled = true
  1470. Talk = script.Parent.TalkScript2
  1471. script.Parent.Head.Voice:Play()
  1472. wait(3)
  1473. script.Parent.Head.Voice:Stop()
  1474. wait(1)
  1475. game:GetService("Chat"):Chat(script.Parent.Head, "i know you didn't answer me before, but... somewhere in there. i can feel it. there's a glimmer of a good person inside of you. the memory of someone who once wanted to do the right thing. someone who, in another time, might have even been... a friend? c'mon, buddy. do you remember me? please, if you're listening... let's forget all of this, ok? just lay down your weapon, and... well, my job will be a lot easier.", "Red")
  1476. Talk.Disabled = true
  1477. script.Parent.Head.Voice:Play()
  1478. wait(3)
  1479. script.Parent.Head.Voice:Stop()
  1480. wait(1)
  1481. script.Parent.Head.Dialog.InUse = false
  1482.  
  1483. wait(10)
  1484.  
  1485.  
  1486.  
  1487. script.Parent.Head.Dialog.InUse= true
  1488. game:GetService("Chat"):Chat(script.Parent.Head, "welp, it was worth a shot. guess you like doing things the hard way, huh?", "Red")
  1489. Talk.Disabled = false
  1490. script.Parent.Head.Voice:Play()
  1491. wait(3)
  1492. script.Parent.Head.Voice:Stop()
  1493. wait(1)
  1494. script.Parent.Torso.Anchored = false
  1495. script.Parent.Megalovania.TimePosition = 0
  1496. script.Parent.Megalovania.Playing = true
  1497. ded = false
  1498. diffaculty = 10
  1499. end
  1500. end
  1501. wait(5)
  1502. script.Parent:MoveTo(orgin)
  1503. gui = false
  1504. end
  1505. end
  1506. function Grattack(Pos)
  1507. local missile = Instance.new("Part")
  1508. missile.Position = Pos+Vector3.new(math.random(-3,3),-1,math.random(-3,3))
  1509. local size = math.random(2,3)
  1510. missile.Size = Vector3.new(2,size,2)
  1511. missile.Anchored = true
  1512. missile.Transparency = 1
  1513. missile.BrickColor = BrickColor.White()
  1514. missile.Shape = 1
  1515. missile.BottomSurface = 0
  1516. missile.TopSurface = 0
  1517. missile.Elasticity = .05
  1518. missile.Friction = .7
  1519. missile.Name = "Bullet"
  1520. local force = Instance.new("BodyForce")
  1521. force.force = Vector3.new(0,missile:GetMass()*196.175,0)
  1522. force.Parent = missile
  1523. script.Mesh:Clone().Parent = missile
  1524. local new_script = script.Ground_Attack:clone()
  1525. new_script.Disabled = false
  1526. new_script.Parent = missile
  1527. debris:AddItem(missile,10)
  1528.  
  1529. missile.Parent = game.Workspace
  1530.  
  1531. end
  1532. function GasterBlaster()
  1533. local Blaster = Instance.new("Part")
  1534. Blaster.Position = script.Parent.Head.Position+Vector3.new(0,5,0)
  1535. Blaster.Size = Vector3.new(2,2,2)
  1536. local MainScript = script.Gaster_Blaster_Main:Clone()
  1537. MainScript.Parent = Blaster
  1538. Blaster.Parent = workspace
  1539. MainScript.Disabled = false
  1540. end
  1541.  
  1542. function Fire(v) -- this function is outside since it is defined by the actions part of the script
  1543.  
  1544. local noise = Vector3.new(math.random() - .7, math.random() - .7, math.random() - .7).unit
  1545. v = (v + (noise * diffaculty*.01)).unit
  1546.  
  1547. local spawnPos = script.Parent.Torso.Position
  1548.  
  1549. spawnPos = spawnPos + (v * 10)
  1550.  
  1551. local missile = Instance.new("Part")
  1552. missile.Position = spawnPos
  1553. local size = math.random(2,3)
  1554. missile.Size = Vector3.new(1,size,1)
  1555.  
  1556. missile.Velocity = v * 100
  1557. missile.BrickColor = BrickColor.White()
  1558. missile.Shape = 1
  1559. missile.BottomSurface = 0
  1560. missile.TopSurface = 0
  1561. missile.Elasticity = .05
  1562. missile.Friction = .7
  1563. missile.Name = "Bullet"
  1564. local force = Instance.new("BodyForce")
  1565. force.force = Vector3.new(0,missile:GetMass()*196.175,0)
  1566. force.Parent = missile
  1567. script.Mesh:Clone().Parent = missile
  1568. local new_script = script.LightScript:clone()
  1569. new_script.Disabled = false
  1570. new_script.Parent = missile
  1571. debris:AddItem(missile,10)
  1572.  
  1573. missile.Parent = game.Workspace
  1574. end
  1575. script.Parent.Humanoid.HealthChanged:connect(Dodge)
  1576. while true do
  1577. wait(0.1)
  1578. if diffaculty > 15 then
  1579. script.Parent.Head.SWet.Enabled = true
  1580. end
  1581. local target = findNearestTorso(script.Parent.Torso.Position)
  1582. if target ~= nil and ded == false then
  1583.  
  1584. lookAt = (target.Position - script.Parent.Torso.Position).unit
  1585. local rng = math.random(1,31-diffaculty)
  1586. script.Parent.Humanoid:MoveTo(target.Position, target)
  1587. if rng ==1 or rng ==3 then
  1588. local test = target.Parent:FindFirstChild("Stun")
  1589. if test == nil then
  1590. local stun = script.Stun:Clone()
  1591. stun.Parent = target.Parent
  1592. stun.Disabled = false
  1593. end
  1594. end
  1595. if (target.Position - script.Parent.Torso.Position).magnitude > 150 then
  1596. script.Parent:MoveTo(target.Position+Vector3.new(math.random(-70,70),math.random(0,0),math.random(-70,70)))
  1597. end
  1598. if rng == 2 or rng == 5 or rng == 4 then
  1599. GasterBlaster()
  1600. end
  1601. if rng > 2 then
  1602.  
  1603. for i = 1,1+diffaculty do
  1604. if target ~= nil then
  1605. lookAt = (target.Position - script.Parent.Torso.Position).unit
  1606. end
  1607. Fire(lookAt)
  1608. wait(.1)
  1609. end
  1610.  
  1611.  
  1612. if diffaculty > 9 then
  1613. for i = 1,10 do
  1614. Grattack(target.Position)
  1615. end
  1616. script.Parent.Torso.Magic:Play()
  1617. script.Parent:MoveTo(script.Parent.Torso.Position+Vector3.new(math.random(-30-diffaculty,30+diffaculty),math.random(0,0),math.random(-30-diffaculty,30+diffaculty)))
  1618. for i = 1,1+diffaculty do
  1619. if target ~= nil then
  1620. lookAt = (target.Position - script.Parent.Torso.Position).unit
  1621. end
  1622. Fire(lookAt)
  1623. wait(.1)
  1624. end
  1625.  
  1626. GasterBlaster()
  1627. wait(math.random(.1,1))
  1628. GasterBlaster()
  1629. end
  1630. end
  1631. wait()
  1632. script.Parent.Torso.Magic:Play()
  1633. script.Parent:MoveTo(script.Parent.Torso.Position+Vector3.new(math.random(-30,30),math.random(0,0),math.random(-30,30)))
  1634. wait(5-diffaculty*.1)
  1635. if (target.Position - script.Parent.Torso.Position).magnitude > 150 then
  1636. script.Parent:MoveTo(target.Position+Vector3.new(math.random(-70,70),math.random(0,0),math.random(-70,70)))
  1637. end
  1638. else
  1639. diffaculty = 0
  1640. script.Parent.Megalovania.Playing = false
  1641. script.Parent.Megalovania.TimePosition = 0
  1642. Talk.Disabled = true
  1643. local Aipath = workspace:FindFirstChild("Ai_Path")
  1644.  
  1645. if Aipath then
  1646. if workspace.Ai_Path:FindFirstChild("a")~=nil then script.Parent.Humanoid.WalkToPart = workspace.Ai_Path.a end
  1647. wait(2)
  1648. if workspace.Ai_Path:FindFirstChild("b")~=nil then script.Parent.Humanoid.WalkToPart = workspace.Ai_Path.b end
  1649. wait(2)
  1650. if workspace.Ai_Path:FindFirstChild("c")~=nil then script.Parent.Humanoid.WalkToPart = workspace.Ai_Path.c end
  1651. wait(2)
  1652. if workspace.Ai_Path:FindFirstChild("d")~=nil then script.Parent.Humanoid.WalkToPart = workspace.Ai_Path.d end
  1653. wait(2)
  1654. else
  1655.  
  1656. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position+Vector3.new(math.random(-60,60),0,math.random(-60,60)))
  1657. wait(1)
  1658. end
  1659. end
  1660. end
  1661. end))
  1662. Script39.Name = "LightScript"
  1663. Script39.Parent = Script38
  1664. table.insert(cors,sandbox(Script39,function()
  1665. debris = game:GetService("Debris")
  1666. Bolt = script.Parent
  1667. damage = script.Damage.Value
  1668.  
  1669. function onTouched(hit)
  1670. if hit.Name ~= "Bullet" and hit.Parent.Name ~= "Sans" then
  1671.  
  1672.  
  1673. debris:AddItem(Bolt,1)
  1674. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1675. if humanoid then
  1676. if hit.Name == "Head" then
  1677. humanoid:TakeDamage(damage*2)
  1678.  
  1679. local ed =script.Effect:Clone()-- RAINBOWS RAINOW
  1680. ed.Parent = hit
  1681. ed.Disabled = false
  1682.  
  1683. end
  1684. if hit.Name~= "Head" then
  1685. humanoid:TakeDamage(damage)
  1686.  
  1687. local ed =script.Effect:Clone()-- RAINBOWS RAINOW
  1688. ed.Parent = hit
  1689. ed.Disabled = false
  1690.  
  1691. end
  1692. end
  1693. if humanoid == nil then
  1694. local humanoid = hit.Parent.Parent:FindFirstChild("Humanoid")
  1695. if humanoid == nil and hit.Name~= "Handle" then
  1696. hit:BreakJoints()
  1697. Bolt:Destroy()
  1698. end
  1699. if humanoid then
  1700. humanoid:TakeDamage(25)
  1701. end
  1702. end
  1703. end
  1704. end
  1705. Bolt.Touched:connect(onTouched)
  1706. end))
  1707. Script39.Disabled = true
  1708. NumberValue40.Name = "Damage"
  1709. NumberValue40.Parent = Script39
  1710. NumberValue40.Value = 1
  1711. Script41.Name = "Effect"
  1712. Script41.Parent = Script39
  1713. table.insert(cors,sandbox(Script41,function()
  1714. local human = script.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1715. wait(1)
  1716. for i=1,5 do
  1717. human:TakeDamage(1)
  1718. wait(.5)
  1719. end
  1720. script:Destroy()
  1721. end))
  1722. Script41.Disabled = true
  1723. SpecialMesh42.Parent = Script38
  1724. SpecialMesh42.MeshId = "rbxassetid://465130937"
  1725. SpecialMesh42.Scale = Vector3.new(0.0199999996, 0.0199999996, 0.0199999996)
  1726. SpecialMesh42.MeshType = Enum.MeshType.FileMesh
  1727. Script43.Name = "Ground_Attack"
  1728. Script43.Parent = Script38
  1729. table.insert(cors,sandbox(Script43,function()
  1730. debris = game:GetService("Debris")
  1731. Bolt = script.Parent
  1732. local damage = script.Damage.Value
  1733. script.Parent.CanCollide = false
  1734. script.SelectionBox.Adornee= script.Parent
  1735. script.Notice.Parent = script.Parent
  1736. script.Parent.Notice:Play()
  1737. active = false
  1738. wait(.3)
  1739. script.Parent.CanCollide = true
  1740. script.Parent.Transparency = 0
  1741. active = true
  1742. script.SelectionBox:Destroy()
  1743. function hitsome(hit)
  1744. if active == true then
  1745. if hit.Name ~= "Bullet" and hit.Parent.Name ~= "Sans" then
  1746.  
  1747.  
  1748. debris:AddItem(Bolt,5)
  1749. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1750. if humanoid then
  1751. if hit.Name == "Head" then
  1752. humanoid:TakeDamage(damage*2)
  1753.  
  1754. local ed =script.Effect:Clone()-- RAINBOWS RAINOW
  1755. ed.Parent = hit
  1756. ed.Disabled = false
  1757.  
  1758. end
  1759. if hit.Name~= "Head" then
  1760. humanoid:TakeDamage(damage)
  1761.  
  1762. local ed =script.Effect:Clone()-- RAINBOWS RAINOW
  1763. ed.Parent = hit
  1764. ed.Disabled = false
  1765.  
  1766. end
  1767. end
  1768. if humanoid == nil then
  1769. local humanoid = hit.Parent.Parent:FindFirstChild("Humanoid")
  1770. if humanoid == nil then
  1771. Bolt:Destroy()
  1772. end
  1773. if humanoid then
  1774. humanoid:TakeDamage(25)
  1775. end
  1776. end
  1777. end
  1778. end
  1779. end
  1780. script.Parent.Touched:connect(hitsome)
  1781.  
  1782. end))
  1783. Script43.Disabled = true
  1784. SelectionBox44.Parent = Script43
  1785. SelectionBox44.SurfaceColor = BrickColor.new("Really red")
  1786. SelectionBox44.SurfaceColor3 = Color3.new(1, 0, 0)
  1787. Sound45.Name = "Notice"
  1788. Sound45.Parent = Script43
  1789. Sound45.SoundId = "rbxassetid://401680588"
  1790. NumberValue46.Name = "Damage"
  1791. NumberValue46.Parent = Script43
  1792. NumberValue46.Value = 1
  1793. Script47.Name = "Effect"
  1794. Script47.Parent = Script43
  1795. table.insert(cors,sandbox(Script47,function()
  1796. local human = script.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1797. wait(1)
  1798. for i=1,5 do
  1799. human:TakeDamage(1)
  1800. wait(.5)
  1801. end
  1802. script:Destroy()
  1803. end))
  1804. Script47.Disabled = true
  1805. Script48.Name = "Stun"
  1806. Script48.Parent = Script38
  1807. table.insert(cors,sandbox(Script48,function()
  1808. local magic =script.Magic
  1809. local SoulGui= script.BlueSoul
  1810. local Humanoid = script.Parent:FindFirstChildOfClass("Humanoid")
  1811. magic.Parent= script.Parent.Torso
  1812. SoulGui.Parent=script.Parent.Torso
  1813.  
  1814.  
  1815.  
  1816. SoulGui.Enabled = true
  1817. magic:Play()
  1818.  
  1819. direction = math.random(1,5)
  1820. if direction == 1 then
  1821. script.Parent.Torso.Velocity = Vector3.new(0,400,0)
  1822. end
  1823. if direction == 2 then
  1824. script.Parent.Torso.Velocity = Vector3.new(0,400,0)
  1825. end
  1826. if direction == 3 then
  1827. script.Parent.Torso.Velocity = Vector3.new(400,0,0)
  1828. end
  1829. if direction == 4 then
  1830. script.Parent.Torso.Velocity = Vector3.new(-400,0,0)
  1831. end
  1832. if direction == 5 then
  1833. script.Parent.Torso.Velocity = Vector3.new(0,0,400)
  1834. end
  1835. wait(3)
  1836.  
  1837. if SoulGui then SoulGui:Destroy() end
  1838. if magic then magic:Destroy() end
  1839. script:Destroy()
  1840. end))
  1841. Script48.Disabled = true
  1842. BillboardGui49.Name = "BlueSoul"
  1843. BillboardGui49.Parent = Script48
  1844. BillboardGui49.Enabled = false
  1845. BillboardGui49.Size = UDim2.new(1, 0, 1, 0)
  1846. BillboardGui49.AlwaysOnTop = true
  1847. ImageLabel50.Name = "HitText"
  1848. ImageLabel50.Parent = BillboardGui49
  1849. ImageLabel50.Position = UDim2.new(-1, 0, -1, 0)
  1850. ImageLabel50.Size = UDim2.new(3, 0, 3, 0)
  1851. ImageLabel50.BackgroundColor = BrickColor.new("Institutional white")
  1852. ImageLabel50.BackgroundColor3 = Color3.new(1, 1, 1)
  1853. ImageLabel50.BackgroundTransparency = 1
  1854. ImageLabel50.Image = "rbxassetid://338425795"
  1855. Sound51.Name = "Magic"
  1856. Sound51.Parent = Script48
  1857. Sound51.SoundId = "rbxassetid://446961725"
  1858. Sound51.Volume = 5
  1859. Script52.Name = "Gaster_Blaster_Main"
  1860. Script52.Parent = Script38
  1861. table.insert(cors,sandbox(Script52,function()
  1862. script:WaitForChild("Charge").Parent = script.Parent
  1863. script:WaitForChild("Fire").Parent = script.Parent
  1864. script:WaitForChild("Mesh").Parent = script.Parent
  1865. script:WaitForChild("ParticleEmitter").Parent = script.Parent
  1866. script:WaitForChild("BodyPosition").Parent = script.Parent
  1867. script.Parent:WaitForChild("BodyPosition").Position = script.Parent.Position
  1868. function findTorso(pos)
  1869. local torso = nil
  1870. local dist = 1000
  1871. local child = workspace:children()
  1872. for i=1, #child do
  1873. if child[i].className == "Model" and child[i].Name ~= "Sans" then
  1874. local h = child[i]:findFirstChildOfClass("Humanoid")
  1875. if h ~= nil then
  1876. local check = child[i]:findFirstChild("Torso")
  1877. if check ~= nil and h.Health > 1 then
  1878. if (check.Position - pos).magnitude < dist then
  1879. torso = check
  1880. dist = (check.Position - pos).magnitude
  1881. end
  1882. end
  1883. end
  1884. end
  1885. end
  1886. return torso
  1887. end
  1888. function Fire(LookAt)
  1889. script.Parent.RotVelocity = Vector3.new(0,0,0)
  1890. wait(.1)
  1891. local ray = Ray.new(script.Parent.CFrame.p, (LookAt - script.Parent.CFrame.p).unit * 450)
  1892. local part, position = workspace:FindPartOnRay(ray, script.Parent, false, true)
  1893.  
  1894. local beam = Instance.new("Part", workspace)
  1895. beam.BrickColor = BrickColor.White()
  1896. beam.FormFactor = "Custom"
  1897. beam.Material = "Neon"
  1898. beam.Transparency = 0.25
  1899. beam.Anchored = true
  1900. beam.Locked = true
  1901. beam.CanCollide = false
  1902.  
  1903. local distance = (script.Parent.CFrame.p - position).magnitude
  1904.  
  1905. --debris:AddItem(beam,.01)
  1906.  
  1907. beam.Size = Vector3.new(0.5, 0.5, distance)
  1908. beam.CFrame = CFrame.new(script.Parent.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1909.  
  1910. game:GetService("Debris"):AddItem(beam, 0.1)
  1911.  
  1912. if part then
  1913. local humanoid = part.Parent:FindFirstChildOfClass("Humanoid")
  1914.  
  1915. if not humanoid then
  1916. humanoid = part.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1917. end
  1918.  
  1919. if humanoid then
  1920. if humanoid.Parent.Name ~= "Sans" then
  1921. humanoid:TakeDamage(15)
  1922. local ed =script.Effect:Clone()-- RAINBOWS RAINOW
  1923. ed.Parent = humanoid
  1924. ed.Disabled = false
  1925. end
  1926. else
  1927. if part.Name~= "Handle" and part.Anchored == false then
  1928. part:BreakJoints()
  1929. part.Velocity = script.Parent.CFrame.lookVector*50
  1930. end
  1931. end
  1932.  
  1933. end
  1934.  
  1935. end
  1936. for i = 1,5 do
  1937. wait()
  1938. local torso = findTorso(script.Parent.Position)
  1939. if torso ~= nil then
  1940. script.Parent.CFrame = CFrame.new(script.Parent.Position, torso.Position)
  1941. local pos = torso.Position
  1942. script.Parent.Charge:Play()
  1943. script.Parent.ParticleEmitter.Enabled = true
  1944. wait(1.12)
  1945. script.Parent.ParticleEmitter.Enabled = false
  1946. script.Parent.Fire:Play()
  1947.  
  1948. for i= 1,10 do
  1949. Fire(pos)
  1950. end
  1951. script.Parent.Position= torso.Position + Vector3.new(math.random(-120,120),math.random(5,20),math.random(-120,120))
  1952. script.Parent.BodyPosition.Position = script.Parent.Position
  1953.  
  1954. end
  1955. end
  1956. wait()
  1957. script.Parent:Destroy()
  1958. end))
  1959. Script52.Disabled = true
  1960. SpecialMesh53.Parent = Script52
  1961. SpecialMesh53.MeshId = "http://www.roblox.com/asset/?id=14028428"
  1962. SpecialMesh53.Offset = Vector3.new(0, 1, 0)
  1963. SpecialMesh53.Scale = Vector3.new(2, 2, 2)
  1964. SpecialMesh53.VertexColor = Vector3.new(1000000, 10000, 10000)
  1965. SpecialMesh53.MeshType = Enum.MeshType.FileMesh
  1966. ParticleEmitter54.Parent = Script52
  1967. ParticleEmitter54.Speed = NumberRange.new(0, 0)
  1968. ParticleEmitter54.Enabled = false
  1969. ParticleEmitter54.LightInfluence = 1
  1970. ParticleEmitter54.EmissionDirection = Enum.NormalId.Front
  1971. ParticleEmitter54.Lifetime = NumberRange.new(1, 1)
  1972. ParticleEmitter54.LockedToPart = true
  1973. BodyPosition55.Parent = Script52
  1974. BodyPosition55.MaxForce = Vector3.new(400000, 400000, 400000)
  1975. BodyPosition55.maxForce = Vector3.new(400000, 400000, 400000)
  1976. Sound56.Name = "Fire"
  1977. Sound56.Parent = Script52
  1978. Sound56.SoundId = "rbxassetid://340722848"
  1979. Sound56.Volume = 5
  1980. Sound57.Name = "Charge"
  1981. Sound57.Parent = Script52
  1982. Sound57.SoundId = "rbxassetid://422747271"
  1983. Sound57.Volume = 2
  1984. Script58.Name = "Effect"
  1985. Script58.Parent = Script52
  1986. table.insert(cors,sandbox(Script58,function()
  1987. local human = script.Parent
  1988. wait(1)
  1989. for i=1,20 do
  1990. human:TakeDamage(1)
  1991. wait(.5)
  1992. end
  1993. script:Destroy()
  1994. end))
  1995. Script58.Disabled = true
  1996. BrickColorValue59.Name = "Team"
  1997. BrickColorValue59.Parent = Model4
  1998. Script60.Name = "Animate"
  1999. Script60.Parent = Model4
  2000. table.insert(cors,sandbox(Script60,function()
  2001. function waitForChild(parent, childName)
  2002. local child = parent:findFirstChild(childName)
  2003. if child then return child end
  2004. while true do
  2005. child = parent.ChildAdded:wait()
  2006. if child.Name==childName then return child end
  2007. end
  2008. end
  2009.  
  2010. local Figure = script.Parent
  2011. local Torso = waitForChild(Figure, "Torso")
  2012. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  2013. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  2014. local RightHip = waitForChild(Torso, "Right Hip")
  2015. local LeftHip = waitForChild(Torso, "Left Hip")
  2016. local Neck = waitForChild(Torso, "Neck")
  2017. local Humanoid = waitForChild(Figure, "Humanoid")
  2018. local pose = "Standing"
  2019.  
  2020. local currentAnim = ""
  2021. local currentAnimTrack = nil
  2022. local currentAnimKeyframeHandler = nil
  2023. local currentAnimSpeed = 1.0
  2024. local animTable = {}
  2025. local animNames = {
  2026. idle = {
  2027. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  2028. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  2029. },
  2030. walk = {
  2031. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  2032. },
  2033. run = {
  2034. { id = "run.xml", weight = 10 }
  2035. },
  2036. jump = {
  2037. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  2038. },
  2039. fall = {
  2040. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  2041. },
  2042. climb = {
  2043. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  2044. },
  2045. toolnone = {
  2046. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  2047. },
  2048. toolslash = {
  2049. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  2050. -- { id = "slash.xml", weight = 10 }
  2051. },
  2052. toollunge = {
  2053. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  2054. },
  2055. wave = {
  2056. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  2057. },
  2058. point = {
  2059. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  2060. },
  2061. dance = {
  2062. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  2063. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  2064. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  2065. },
  2066. dance2 = {
  2067. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  2068. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  2069. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  2070. },
  2071. dance3 = {
  2072. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  2073. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  2074. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  2075. },
  2076. laugh = {
  2077. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  2078. },
  2079. cheer = {
  2080. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  2081. },
  2082. }
  2083.  
  2084. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  2085. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  2086.  
  2087. math.randomseed(tick())
  2088.  
  2089. function configureAnimationSet(name, fileList)
  2090. if (animTable[name] ~= nil) then
  2091. for _, connection in pairs(animTable[name].connections) do
  2092. connection:disconnect()
  2093. end
  2094. end
  2095. animTable[name] = {}
  2096. animTable[name].count = 0
  2097. animTable[name].totalWeight = 0
  2098. animTable[name].connections = {}
  2099.  
  2100. -- check for config values
  2101. local config = script:FindFirstChild(name)
  2102. if (config ~= nil) then
  2103. -- print("Loading anims " .. name)
  2104. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  2105. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  2106. local idx = 1
  2107. for _, childPart in pairs(config:GetChildren()) do
  2108. if (childPart:IsA("Animation")) then
  2109. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  2110. animTable[name][idx] = {}
  2111. animTable[name][idx].anim = childPart
  2112. local weightObject = childPart:FindFirstChild("Weight")
  2113. if (weightObject == nil) then
  2114. animTable[name][idx].weight = 1
  2115. else
  2116. animTable[name][idx].weight = weightObject.Value
  2117. end
  2118. animTable[name].count = animTable[name].count + 1
  2119. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  2120. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  2121. idx = idx + 1
  2122. end
  2123. end
  2124. end
  2125.  
  2126. -- fallback to defaults
  2127. if (animTable[name].count <= 0) then
  2128. for idx, anim in pairs(fileList) do
  2129. animTable[name][idx] = {}
  2130. animTable[name][idx].anim = Instance.new("Animation")
  2131. animTable[name][idx].anim.Name = name
  2132. animTable[name][idx].anim.AnimationId = anim.id
  2133. animTable[name][idx].weight = anim.weight
  2134. animTable[name].count = animTable[name].count + 1
  2135. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  2136. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  2137. end
  2138. end
  2139. end
  2140.  
  2141. -- Setup animation objects
  2142. function scriptChildModified(child)
  2143. local fileList = animNames[child.Name]
  2144. if (fileList ~= nil) then
  2145. configureAnimationSet(child.Name, fileList)
  2146. end
  2147. end
  2148.  
  2149. script.ChildAdded:connect(scriptChildModified)
  2150. script.ChildRemoved:connect(scriptChildModified)
  2151.  
  2152.  
  2153. for name, fileList in pairs(animNames) do
  2154. configureAnimationSet(name, fileList)
  2155. end
  2156.  
  2157. -- ANIMATION
  2158.  
  2159. -- declarations
  2160. local toolAnim = "None"
  2161. local toolAnimTime = 0
  2162.  
  2163. local jumpAnimTime = 0
  2164. local jumpAnimDuration = 0.3
  2165.  
  2166. local toolTransitionTime = 0.1
  2167. local fallTransitionTime = 0.3
  2168. local jumpMaxLimbVelocity = 0.75
  2169.  
  2170. -- functions
  2171.  
  2172. function stopAllAnimations()
  2173. local oldAnim = currentAnim
  2174.  
  2175. -- return to idle if finishing an emote
  2176. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  2177. oldAnim = "idle"
  2178. end
  2179.  
  2180. currentAnim = ""
  2181. if (currentAnimKeyframeHandler ~= nil) then
  2182. currentAnimKeyframeHandler:disconnect()
  2183. end
  2184.  
  2185. if (currentAnimTrack ~= nil) then
  2186. currentAnimTrack:Stop()
  2187. currentAnimTrack:Destroy()
  2188. currentAnimTrack = nil
  2189. end
  2190. return oldAnim
  2191. end
  2192.  
  2193. function setAnimationSpeed(speed)
  2194. if speed ~= currentAnimSpeed then
  2195. currentAnimSpeed = speed
  2196. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  2197. end
  2198. end
  2199.  
  2200. function keyFrameReachedFunc(frameName)
  2201. if (frameName == "End") then
  2202. -- print("Keyframe : ".. frameName)
  2203. local repeatAnim = stopAllAnimations()
  2204. local animSpeed = currentAnimSpeed
  2205. playAnimation(repeatAnim, 0.0, Humanoid)
  2206. setAnimationSpeed(animSpeed)
  2207. end
  2208. end
  2209.  
  2210. -- Preload animations
  2211. function playAnimation(animName, transitionTime, humanoid)
  2212. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  2213. if (animName ~= currentAnim and not idleFromEmote) then
  2214.  
  2215. if (currentAnimTrack ~= nil) then
  2216. currentAnimTrack:Stop(transitionTime)
  2217. currentAnimTrack:Destroy()
  2218. end
  2219.  
  2220. currentAnimSpeed = 1.0
  2221. local roll = math.random(1, animTable[animName].totalWeight)
  2222. local origRoll = roll
  2223. local idx = 1
  2224. while (roll > animTable[animName][idx].weight) do
  2225. roll = roll - animTable[animName][idx].weight
  2226. idx = idx + 1
  2227. end
  2228. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  2229. local anim = animTable[animName][idx].anim
  2230.  
  2231. -- load it to the humanoid; get AnimationTrack
  2232. currentAnimTrack = humanoid:LoadAnimation(anim)
  2233.  
  2234. -- play the animation
  2235. currentAnimTrack:Play(transitionTime)
  2236. currentAnim = animName
  2237.  
  2238. -- set up keyframe name triggers
  2239. if (currentAnimKeyframeHandler ~= nil) then
  2240. currentAnimKeyframeHandler:disconnect()
  2241. end
  2242. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  2243. end
  2244. end
  2245.  
  2246. -------------------------------------------------------------------------------------------
  2247. -------------------------------------------------------------------------------------------
  2248.  
  2249. local toolAnimName = ""
  2250. local toolAnimTrack = nil
  2251. local currentToolAnimKeyframeHandler = nil
  2252.  
  2253. function toolKeyFrameReachedFunc(frameName)
  2254. if (frameName == "End") then
  2255. -- print("Keyframe : ".. frameName)
  2256. local repeatAnim = stopToolAnimations()
  2257. playToolAnimation(repeatAnim, 0.0, Humanoid)
  2258. end
  2259. end
  2260.  
  2261.  
  2262. function playToolAnimation(animName, transitionTime, humanoid)
  2263. if (animName ~= toolAnimName) then
  2264.  
  2265. if (toolAnimTrack ~= nil) then
  2266. toolAnimTrack:Stop()
  2267. toolAnimTrack:Destroy()
  2268. transitionTime = 0
  2269. end
  2270.  
  2271. local roll = math.random(1, animTable[animName].totalWeight)
  2272. local origRoll = roll
  2273. local idx = 1
  2274. while (roll > animTable[animName][idx].weight) do
  2275. roll = roll - animTable[animName][idx].weight
  2276. idx = idx + 1
  2277. end
  2278. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  2279. local anim = animTable[animName][idx].anim
  2280.  
  2281. -- load it to the humanoid; get AnimationTrack
  2282. toolAnimTrack = humanoid:LoadAnimation(anim)
  2283.  
  2284. -- play the animation
  2285. toolAnimTrack:Play(transitionTime)
  2286. toolAnimName = animName
  2287.  
  2288. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  2289. end
  2290. end
  2291.  
  2292. function stopToolAnimations()
  2293. local oldAnim = toolAnimName
  2294.  
  2295. if (currentToolAnimKeyframeHandler ~= nil) then
  2296. currentToolAnimKeyframeHandler:disconnect()
  2297. end
  2298.  
  2299. toolAnimName = ""
  2300. if (toolAnimTrack ~= nil) then
  2301. toolAnimTrack:Stop()
  2302. toolAnimTrack:Destroy()
  2303. toolAnimTrack = nil
  2304. end
  2305.  
  2306.  
  2307. return oldAnim
  2308. end
  2309.  
  2310. -------------------------------------------------------------------------------------------
  2311. -------------------------------------------------------------------------------------------
  2312.  
  2313.  
  2314. function onRunning(speed)
  2315. if speed>0.01 then
  2316. playAnimation("walk", 0.1, Humanoid)
  2317. pose = "Running"
  2318. else
  2319. playAnimation("idle", 0.1, Humanoid)
  2320. pose = "Standing"
  2321. end
  2322. end
  2323.  
  2324. function onDied()
  2325. pose = "Dead"
  2326. end
  2327.  
  2328. function onJumping()
  2329. playAnimation("jump", 0.1, Humanoid)
  2330. jumpAnimTime = jumpAnimDuration
  2331. pose = "Jumping"
  2332. end
  2333.  
  2334. function onClimbing(speed)
  2335. playAnimation("climb", 0.1, Humanoid)
  2336. setAnimationSpeed(speed / 12.0)
  2337. pose = "Climbing"
  2338. end
  2339.  
  2340. function onGettingUp()
  2341. pose = "GettingUp"
  2342. end
  2343.  
  2344. function onFreeFall()
  2345. if (jumpAnimTime <= 0) then
  2346. playAnimation("fall", fallTransitionTime, Humanoid)
  2347. end
  2348. pose = "FreeFall"
  2349. end
  2350.  
  2351. function onFallingDown()
  2352. pose = "FallingDown"
  2353. end
  2354.  
  2355. function onSeated()
  2356. pose = "Seated"
  2357. end
  2358.  
  2359. function onPlatformStanding()
  2360. pose = "PlatformStanding"
  2361. end
  2362.  
  2363. function onSwimming(speed)
  2364. if speed>0 then
  2365. pose = "Running"
  2366. else
  2367. pose = "Standing"
  2368. end
  2369. end
  2370.  
  2371. function getTool()
  2372. for _, kid in ipairs(Figure:GetChildren()) do
  2373. if kid.className == "Tool" then return kid end
  2374. end
  2375. return nil
  2376. end
  2377.  
  2378. function getToolAnim(tool)
  2379. for _, c in ipairs(tool:GetChildren()) do
  2380. if c.Name == "toolanim" and c.className == "StringValue" then
  2381. return c
  2382. end
  2383. end
  2384. return nil
  2385. end
  2386.  
  2387. function animateTool()
  2388.  
  2389. if (toolAnim == "None") then
  2390. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  2391. return
  2392. end
  2393.  
  2394. if (toolAnim == "Slash") then
  2395. playToolAnimation("toolslash", 0, Humanoid)
  2396. return
  2397. end
  2398.  
  2399. if (toolAnim == "Lunge") then
  2400. playToolAnimation("toollunge", 0, Humanoid)
  2401. return
  2402. end
  2403. end
  2404.  
  2405. function moveSit()
  2406. RightShoulder.MaxVelocity = 0.15
  2407. LeftShoulder.MaxVelocity = 0.15
  2408. RightShoulder:SetDesiredAngle(3.14 /2)
  2409. LeftShoulder:SetDesiredAngle(-3.14 /2)
  2410. RightHip:SetDesiredAngle(3.14 /2)
  2411. LeftHip:SetDesiredAngle(-3.14 /2)
  2412. end
  2413.  
  2414. local lastTick = 0
  2415.  
  2416. function move(time)
  2417. local amplitude = 1
  2418. local frequency = 1
  2419. local deltaTime = time - lastTick
  2420. lastTick = time
  2421.  
  2422. local climbFudge = 0
  2423. local setAngles = false
  2424.  
  2425. if (jumpAnimTime > 0) then
  2426. jumpAnimTime = jumpAnimTime - deltaTime
  2427. end
  2428.  
  2429. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  2430. playAnimation("fall", fallTransitionTime, Humanoid)
  2431. elseif (pose == "Seated") then
  2432. stopAllAnimations()
  2433. moveSit()
  2434. return
  2435. elseif (pose == "Running") then
  2436. playAnimation("walk", 0.1, Humanoid)
  2437. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  2438. -- print("Wha " .. pose)
  2439. amplitude = 0.1
  2440. frequency = 1
  2441. setAngles = true
  2442. end
  2443.  
  2444. if (setAngles) then
  2445. desiredAngle = amplitude * math.sin(time * frequency)
  2446.  
  2447. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  2448. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  2449. RightHip:SetDesiredAngle(-desiredAngle)
  2450. LeftHip:SetDesiredAngle(-desiredAngle)
  2451. end
  2452.  
  2453. -- Tool Animation handling
  2454. local tool = getTool()
  2455. if tool then
  2456.  
  2457. animStringValueObject = getToolAnim(tool)
  2458.  
  2459. if animStringValueObject then
  2460. toolAnim = animStringValueObject.Value
  2461. -- message recieved, delete StringValue
  2462. animStringValueObject.Parent = nil
  2463. toolAnimTime = time + .3
  2464. end
  2465.  
  2466. if time > toolAnimTime then
  2467. toolAnimTime = 0
  2468. toolAnim = "None"
  2469. end
  2470.  
  2471. animateTool()
  2472. else
  2473. stopToolAnimations()
  2474. toolAnim = "None"
  2475. toolAnimTime = 0
  2476. end
  2477. end
  2478.  
  2479. -- connect events
  2480. Humanoid.Died:connect(onDied)
  2481. Humanoid.Running:connect(onRunning)
  2482. Humanoid.Jumping:connect(onJumping)
  2483. Humanoid.Climbing:connect(onClimbing)
  2484. Humanoid.GettingUp:connect(onGettingUp)
  2485. Humanoid.FreeFalling:connect(onFreeFall)
  2486. Humanoid.FallingDown:connect(onFallingDown)
  2487. Humanoid.Seated:connect(onSeated)
  2488. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2489. Humanoid.Swimming:connect(onSwimming)
  2490.  
  2491. -- main program
  2492.  
  2493. local runService = game:service("RunService");
  2494.  
  2495. -- initialize to idle
  2496. playAnimation("idle", 0.1, Humanoid)
  2497. pose = "Standing"
  2498.  
  2499. while Figure.Parent~=nil do
  2500. local _, time = wait(0.1)
  2501. move(time)
  2502. end
  2503.  
  2504.  
  2505.  
  2506. end))
  2507. StringValue61.Name = "climb"
  2508. StringValue61.Parent = Script60
  2509. Animation62.Name = "ClimbAnim"
  2510. Animation62.Parent = StringValue61
  2511. Animation62.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  2512. StringValue63.Name = "fall"
  2513. StringValue63.Parent = Script60
  2514. Animation64.Name = "FallAnim"
  2515. Animation64.Parent = StringValue63
  2516. Animation64.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  2517. StringValue65.Name = "idle"
  2518. StringValue65.Parent = Script60
  2519. Animation66.Name = "Animation1"
  2520. Animation66.Parent = StringValue65
  2521. Animation66.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  2522. NumberValue67.Name = "Weight"
  2523. NumberValue67.Parent = Animation66
  2524. NumberValue67.Value = 9
  2525. Animation68.Name = "Animation2"
  2526. Animation68.Parent = StringValue65
  2527. Animation68.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  2528. NumberValue69.Name = "Weight"
  2529. NumberValue69.Parent = Animation68
  2530. NumberValue69.Value = 1
  2531. StringValue70.Name = "jump"
  2532. StringValue70.Parent = Script60
  2533. Animation71.Name = "JumpAnim"
  2534. Animation71.Parent = StringValue70
  2535. Animation71.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  2536. StringValue72.Name = "run"
  2537. StringValue72.Parent = Script60
  2538. Animation73.Name = "RunAnim"
  2539. Animation73.Parent = StringValue72
  2540. Animation73.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  2541. StringValue74.Name = "toolnone"
  2542. StringValue74.Parent = Script60
  2543. Animation75.Name = "ToolNoneAnim"
  2544. Animation75.Parent = StringValue74
  2545. Animation75.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  2546. StringValue76.Name = "walk"
  2547. StringValue76.Parent = Script60
  2548. Animation77.Name = "WalkAnim"
  2549. Animation77.Parent = StringValue76
  2550. Animation77.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  2551. Script78.Name = "TalkScript"
  2552. Script78.Parent = Model4
  2553. table.insert(cors,sandbox(Script78,function()
  2554. --Credit to minecraftbeast78 for script.
  2555. chatnum = 1
  2556. Chats = {"our reports showed a massive anomaly in the timespace continuum. timelines jumping left and right, stopping and starting","until suddenly, everything ends.","heh heh heh... that's your fault isn't it?","you can't understand how this feels.","knowing that one day, without any warning... it's all going to be reset.","look. i gave up trying to go back a long time ago.","and getting to the surface doesn't really appeal anymore, either.","cause even if we do... we'll just end up right back here, without any memory of it, right?","to be blunt... it makes it kind of hard to give it my all.","or is that just a poor excuse for being lazy...? hell if i know. ","all i know is... seeing what comes next... i can't afford not to care anymore.",} --[[
  2557.  
  2558. Add chats above.
  2559. Put a comma between each chat and put each chat in quotes. ]]
  2560.  
  2561. Color = "Blue" --[[
  2562.  
  2563. Add color above.
  2564. Make sure it is Blue, Green, or Red.
  2565. Also, the first letter needs to be capitalized. ]]
  2566.  
  2567. WaitTime = 15 --[[
  2568.  
  2569. Add the amount of time until another chat appears.
  2570. The chat will disappear automatically after 6 to 7 seconds.
  2571. There is no need to mess with anything below. ]]
  2572. function chat(part, string)
  2573. ch = game:GetService("Chat"):Chat(part, string, Color)
  2574. script.Parent.Head.Voice:Play()
  2575. wait(3)
  2576. script.Parent.Head.Voice:Stop()
  2577. end
  2578.  
  2579. while wait(WaitTime) do
  2580. chat(script.Parent.Head, Chats[chatnum])
  2581. chatnum = chatnum+1
  2582. if chatnum > #Chats then
  2583. chatnum = 1
  2584. end
  2585. end
  2586.  
  2587.  
  2588.  
  2589.  
  2590. end))
  2591. Script78.Disabled = true
  2592. Script79.Name = "TalkScript2"
  2593. Script79.Parent = Model4
  2594. table.insert(cors,sandbox(Script79,function()
  2595. --Credit to minecraftbeast78 for script.
  2596. chatnum = 1
  2597. Chats = {"sounds strange, but before all this i was secretly hoping we could be friends. i always thought the anomaly was doing this cause they were unhappy." ,"and when they got what they wanted, they would stop all this.","and maybe all they needed was... i dunno. some good food, some bad laughs, some nice friends.","but that's ridiculous, right? yeah, you're the type of person who won't EVER be happy.","you'll keep consuming timelines over and over, until... well. hey. take it from me, kid. someday... you gotta learn when to QUIT.","and that day's TODAY","cause... y'see... all this fighting is really tiring me out.","and if you keep pushing me... then i'll be forced to use my special attack.","yeah, my special attack. sound familiar? well, get ready. cause after the next move, i'm going to use it. so, if you don't want to see it, now would be a good time to die. "} --[[
  2598.  
  2599. Add chats above.
  2600. Put a comma between each chat and put each chat in quotes. ]]
  2601.  
  2602. Color = "Blue" --[[
  2603.  
  2604. Add color above.
  2605. Make sure it is Blue, Green, or Red.
  2606. Also, the first letter needs to be capitalized. ]]
  2607.  
  2608. WaitTime = 15 --[[
  2609.  
  2610. Add the amount of time until another chat appears.
  2611. The chat will disappear automatically after 6 to 7 seconds.
  2612. There is no need to mess with anything below. ]]
  2613. function chat(part, string)
  2614. ch = game:GetService("Chat"):Chat(part, string, Color)
  2615. script.Parent.Head.Voice:Play()
  2616. wait(3)
  2617. script.Parent.Head.Voice:Stop()
  2618. end
  2619.  
  2620. while wait(WaitTime) do
  2621. chat(script.Parent.Head, Chats[chatnum])
  2622. chatnum = chatnum+1
  2623. if chatnum > #Chats then
  2624. chatnum = 1
  2625. end
  2626. end
  2627.  
  2628.  
  2629.  
  2630.  
  2631. end))
  2632. Script79.Disabled = true
  2633. Sound80.Name = "Megalovania"
  2634. Sound80.Parent = Model4
  2635. Sound80.SoundId = "rbxassetid://306370481"
  2636. for i,v in pairs(mas:GetChildren()) do
  2637. v.Parent = game:GetService("Players").LocalPlayer.Character
  2638. pcall(function() v:MakeJoints() end)
  2639. end
  2640. mas:Destroy()
  2641. for i,v in pairs(cors) do
  2642. spawn(function()
  2643. pcall(v)
  2644. end)
  2645. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement