Advertisement
DylanD2003

Untitled

Jul 13th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.77 KB | None | 0 0
  1. so = function(id,par,vol,pit)
  2. coroutine.resume(coroutine.create(function()
  3. local sou = Instance.new("Sound",par or workspace)
  4. sou.Volume=vol
  5. sou.Pitch=pit or 1
  6. sou.SoundId=id
  7. swait()
  8. sou:play()
  9. game:GetService("Debris"):AddItem(sou,6)
  10. end))
  11. end
  12. Player=game:GetService("Players").LocalPlayer
  13. Character=Player.Character
  14. PlayerGui=Player.PlayerGui
  15. Backpack=Player.Backpack
  16. Torso=Character.Torso
  17. Head=Character.Head
  18. Humanoid=Character.Humanoid
  19. m=Instance.new('Model',Character)
  20. LeftArm=Character["Left Arm"]
  21. LeftLeg=Character["Left Leg"]
  22. RightArm=Character["Right Arm"]
  23. RightLeg=Character["Right Leg"]
  24. LS=Torso["Left Shoulder"]
  25. LH=Torso["Left Hip"]
  26. RS=Torso["Right Shoulder"]
  27. RH=Torso["Right Hip"]
  28. Face = Head.face
  29. Neck=Torso.Neck
  30. it=Instance.new
  31. attacktype=1
  32. vt=Vector3.new
  33. cf=CFrame.new
  34. euler=CFrame.fromEulerAnglesXYZ
  35. angles=CFrame.Angles
  36. cloaked=false
  37. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  38. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  39. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  40. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  41. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  42. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  43. RootPart=Character.HumanoidRootPart
  44. RootJoint=RootPart.RootJoint
  45. RootCF=euler(-1.57,0,3.14)
  46. attack = false
  47. wait(2)
  48. function clerp(a,b,t)
  49. local qa = {QuaternionFromCFrame(a)}
  50. local qb = {QuaternionFromCFrame(b)}
  51. local ax, ay, az = a.x, a.y, a.z
  52. local bx, by, bz = b.x, b.y, b.z
  53. local _t = 1-t
  54. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  55. end
  56.  
  57. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  58. local trace = m00 + m11 + m22
  59. if trace > 0 then
  60. local s = math.sqrt(1 + trace)
  61. local recip = 0.5/s
  62. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  63. else
  64. local i = 0
  65. if m11 > m00 then
  66. i = 1
  67. end
  68. if m22 > (i == 0 and m00 or m11) then
  69. i = 2
  70. end
  71. if i == 0 then
  72. local s = math.sqrt(m00-m11-m22+1)
  73. local recip = 0.5/s
  74. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  75. elseif i == 1 then
  76. local s = math.sqrt(m11-m22-m00+1)
  77. local recip = 0.5/s
  78. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  79. elseif i == 2 then
  80. local s = math.sqrt(m22-m00-m11+1)
  81. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  82. end
  83. end
  84. end
  85.  
  86. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  87. local xs, ys, zs = x + x, y + y, z + z
  88. local wx, wy, wz = w*xs, w*ys, w*zs
  89. local xx = x*xs
  90. local xy = x*ys
  91. local xz = x*zs
  92. local yy = y*ys
  93. local yz = y*zs
  94. local zz = z*zs
  95. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  96. end
  97.  
  98. function QuaternionSlerp(a, b, t)
  99. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  100. local startInterp, finishInterp;
  101. if cosTheta >= 0.0001 then
  102. if (1 - cosTheta) > 0.0001 then
  103. local theta = math.acos(cosTheta)
  104. local invSinTheta = 1/math.sin(theta)
  105. startInterp = math.sin((1-t)*theta)*invSinTheta
  106. finishInterp = math.sin(t*theta)*invSinTheta
  107. else
  108. startInterp = 1-t
  109. finishInterp = t
  110. end
  111. else
  112. if (1+cosTheta) > 0.0001 then
  113. local theta = math.acos(-cosTheta)
  114. local invSinTheta = 1/math.sin(theta)
  115. startInterp = math.sin((t-1)*theta)*invSinTheta
  116. finishInterp = math.sin(t*theta)*invSinTheta
  117. else
  118. startInterp = t-1
  119. finishInterp = t
  120. end
  121. end
  122. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  123. end
  124. --save shoulders
  125. RSH, LSH=nil, nil
  126. --welds
  127. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  128. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  129. LH=Torso["Left Hip"]
  130. RH=Torso["Right Hip"]
  131. TorsoColor=Torso.BrickColor
  132. player=Player
  133. ch=Character
  134. RSH=ch.Torso["Right Shoulder"]
  135. LSH=ch.Torso["Left Shoulder"]
  136. --
  137. RSH.Parent=nil
  138. LSH.Parent=nil
  139. --
  140. RW.Name="Right Shoulder"
  141. RW.Part0=ch.Torso
  142. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  143. RW.C1=cf(0, 0.5, 0)
  144. RW.Part1=ch["Right Arm"]
  145. RW.Parent=ch.Torso
  146. --
  147. LW.Name="Left Shoulder"
  148. LW.Part0=ch.Torso
  149. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  150. LW.C1=cf(0, 0.5, 0)
  151. LW.Part1=ch["Left Arm"]
  152. LW.Parent=ch.Torso
  153. function swait(num)
  154. if num==0 or num==nil then
  155. game:service'RunService'.Stepped:wait(0)
  156. else
  157. for i=0,num do
  158. game:service'RunService'.Stepped:wait(0)
  159. end
  160. end
  161. end
  162. boom = Instance.new("Part")
  163. moosh = Instance.new("SpecialMesh")
  164. moosh.MeshType = "Sphere"
  165. moosh.Parent = boom
  166. boom.CanCollide = false
  167. boom.Transparency = 0.6
  168. boom.Material = "Neon"
  169. boom.Parent =Torso
  170. boom.Position = Vector3.new(Torso.Position.X,Torso.Position.Y,Torso.Position.Z)
  171. boom.Anchored = true
  172. boom.Size = Vector3.new(0, 0, 0)
  173. wait()
  174. so("http://www.roblox.com/asset/?id=157878578",boom,1,0.9)
  175. moosh.Scale = Vector3.new(20, 20, 20)
  176. wait()
  177. moosh.Scale = Vector3.new(40, 40, 40)
  178. wait()
  179. moosh.Scale = Vector3.new(60, 60, 60)
  180. wait()
  181. moosh.Scale = Vector3.new(80, 80, 80)
  182. wait()
  183. moosh.Scale = Vector3.new(100, 100, 100)
  184. wait()
  185. Humanoid.WalkSpeed = 0
  186. Humanoid.JumpPower = 0
  187. for i=0,1,0.08 do
  188. swait()
  189. Torso.Velocity=RootPart.CFrame.lookVector*-30
  190. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  192. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(15)),.2)
  193. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-65)),.2)
  194. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  195. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  196. end
  197. moosh.Scale = Vector3.new(120, 120, 120)
  198. wait()
  199. for i=0,1,0.05 do
  200. swait()
  201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  202. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-10),math.rad(0)),.4)
  203. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(30)),.2)
  204. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  205. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  206. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  207. end
  208. moosh.Scale = Vector3.new(140, 140, 140)
  209. wait()
  210. moosh.Scale = Vector3.new(160, 160, 160)
  211. wait()
  212. moosh.Scale = Vector3.new(180, 180, 180)
  213. wait()
  214. moosh.Scale = Vector3.new(200, 200, 200)
  215. wait()
  216. boom.Transparency = 0.5
  217. wait()
  218. boom.Transparency = 0.3
  219. wait()
  220. boom.Transparency = 0.1
  221. wait()
  222. boom.Transparency = 0
  223. wait(1)
  224. boom.Transparency = 0
  225. wait()
  226. boom.Transparency = 0.1
  227. wait()
  228. boom.Transparency = 0.3
  229. wait()
  230. boom.Transparency = 0.5
  231. wait()
  232. boom.Transparency = 0.7
  233. wait()
  234. boom.Transparency = 0.9
  235. wait()
  236. boom.Transparency = 1
  237. wait(4)
  238. for i=0,1,0.05 do
  239. swait()
  240. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-40),math.rad(0),math.rad(180)),.2)
  241. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-10),math.rad(0)),.4)
  242. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.2)
  243. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.2)
  244. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  245. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  246. end
  247. for i=0,1,0.05 do
  248. swait()
  249. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(0),math.rad(0),math.rad(180)),.2)
  250. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  251. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  252. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  253. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  254. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  255. end
  256. for i=0,1,0.05 do
  257. swait()
  258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-40),math.rad(0),math.rad(180)),.2)
  259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-10),math.rad(0)),.4)
  260. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(30),math.rad(0)),.2)
  261. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(40),math.rad(30),math.rad(0)),.2)
  262. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  263. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  264. end
  265. for i=0,1,0.05 do
  266. swait()
  267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-10),math.rad(0)),.4)
  269. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(30)),.2)
  270. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  271. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  272. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  273. end
  274. wait(3)
  275. local Fire = it("Sound",Character.Torso)
  276. Fire.SoundId = "rbxassetid://192104941"
  277. Fire.Looped = true
  278. Fire.Pitch = 1
  279. Fire.Volume = 1
  280. local fire = Instance.new("ParticleEmitter", Character.Torso)
  281. fire.Lifetime = NumberRange.new(0.5)
  282. fire.Speed = NumberRange.new(1, 3)
  283. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  284. fire.Rate = 0
  285. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  286. fire.LightEmission = 0.6
  287. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  288. fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  289. Fire:Play()
  290. fire.Enabled = true
  291. fire.Rate =2000
  292. so("http://www.roblox.com/asset/?id=393884633",Head,1,0.9)
  293. for i=0,1,0.05 do
  294. swait()
  295. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  296. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  297. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(210),math.rad(0),math.rad(0)),.2)
  298. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  299. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  300. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  301. end
  302. for i = 0, 0.5, .01 do
  303. for _, hat in pairs(Character:GetChildren()) do
  304. if hat:IsA("Accessory") then
  305. hat.Handle.Transparency = i
  306. end
  307. end
  308.  
  309. Head.face.Texture = "http://www.roblox.com/asset/?id=743116128"
  310. wait(4)
  311. for i=0,1,0.05 do
  312. swait()
  313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  314. end
  315. Humanoid.WalkSpeed = 8
  316. ----------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement