Advertisement
sin3715

Untitled

Apr 21st, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.27 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. chara = player.Character
  3. debby = game.Debris
  4. Mouse = player:GetMouse()
  5. rs = game:GetService("RunService").RenderStepped
  6.  
  7. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  8. function PlayNuke()
  9. part = Instance.new("Part", game.Players.LocalPlayer.Character.Head)
  10. part.Position = game.Players.LocalPlayer.Character.Head.Position
  11. part.Anchored = false
  12. part.CanCollide = false
  13. part.Rotation = Vector3.new(-90,0,0)
  14. game.Lighting.FogColor = Color3.new(255,255,255)
  15. game.Lighting.FogEnd = 1
  16. Nuking = Instance.new("Sound")
  17. Nuking.Name = "BAAM"
  18. Nuking.Parent = part
  19. Nuking.Volume = 1000
  20. Nuking.SoundId = "rbxassetid://165970390"
  21. Nuking:Play()
  22. wait(0.1)
  23. Nuking:Play()
  24. wait(0.1)
  25. Nuking:Play()
  26. wait(0.1)
  27. Nuking:Play()
  28. wait(0.1)
  29. Nuking:Play()
  30. bomb = Instance.new("Explosion", game.Players.LocalPlayer.Character.Head)
  31. bomb.Position = part.Position
  32. bomb.BlastRadius = 9999999
  33. bomb.BlastPressure = 300000
  34. part.Transparency = 1
  35. boom = Instance.new("Part", game.Players.LocalPlayer.Character.Head)
  36. boom.Anchored = true
  37. boom.CanCollide = false
  38. boom.Position = part.Position
  39. mesh1 = Instance.new("SpecialMesh", boom)
  40. mesh1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  41. boom.BrickColor = BrickColor.new("Bright yellow")
  42. boom.Material = "Neon"
  43. boom.Rotation = Vector3.new(90,0,0)
  44. boom.Transparency = 0.8
  45. p1 = Instance.new("Part", game.Players.LocalPlayer.Character.Head)
  46. p1.Anchored = true
  47. p1.Transparency = 0.5
  48. p1.CanCollide = false
  49. p1.Size = Vector3.new(0.2,0.2,0.2)
  50. p1.BrickColor = BrickColor.new("Yellow")
  51. p1.Material = "Neon"
  52. p1.Position = part.position
  53. p2 = Instance.new("Part", game.Players.LocalPlayer.Character.Head)
  54. p2.Anchored = true
  55. p2.Transparency = 0.5
  56. p2.CanCollide = false
  57. p2.Size = Vector3.new(0.2,0.2,0.2)
  58. p2.BrickColor = BrickColor.new("New Yeller")
  59. p2.Material = "Neon"
  60. p2.Position = part.position
  61. m1 = Instance.new("CylinderMesh",p2)
  62. m1.Scale = Vector3.new(60,10000,60)
  63. m2 = Instance.new("CylinderMesh",p2)
  64. m2.Scale = Vector3.new(350,10000,350)
  65. for i = 1,750 do
  66. wait()
  67. game.Lighting.FogEnd = game.Lighting.FogEnd + 2000
  68. boom.Rotation = boom.Rotation + Vector3.new(0,0,1)
  69. mesh1.Scale = mesh1.Scale - Vector3.new(3,3,4.5)
  70. end
  71. game.Lighting.FogEnd = 100000000
  72. part:destroy()
  73. p2:destroy()
  74. boom:destroy()
  75. m2:destroy()
  76. end
  77.  
  78. New = function(Object, Parent, Name, Data)
  79. local Object = Instance.new(Object)
  80. for Index, Value in pairs(Data or {}) do
  81. Object[Index] = Value
  82. end
  83. Object.Parent = Parent
  84. Object.Name = Name
  85. return Object
  86. end
  87.  
  88. Can = New("Part",chara,"Can",{Size = Vector3.new(0.800000012, 1.20000005, 0.800000012),CFrame = CFrame.new(-30.8000011, 1.60000002, -33, 0.707107842, 0, -0.70710814, 0, 1, 0, 0.70710814, 0, 0.707107842),})
  89. CanMesh = New("SpecialMesh",Can,"CanMesh",{Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005),MeshId = "http://www.roblox.com/asset/?id=10470609",TextureId = "rbxassetid://24970256",MeshType = Enum.MeshType.FileMesh,})
  90. Weld = New("ManualWeld",Can,"Weld",{Part0 = Can,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, 0.707107842, 0, 0.70710814, 0, 1, 0, -0.70710814, 0, 0.707107842),C1 = CFrame.new(-0.300001144, -1, -0.100000024, 1, 0, 0, 0, 0, 1, -0, -1, -0),})
  91.  
  92. --Sounds--
  93. function LoadSnd(id,loop,vol,pit)
  94. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  95. return snd
  96. end
  97. DrinkSnd = LoadSnd(491214142,true,1,1)
  98. StartUpSnd = LoadSnd(10721950,false,1,1)
  99. SwingSnd = LoadSnd(158037267,false,1,1)
  100.  
  101. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  102. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  103. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  104. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  105. return TEff
  106. end
  107.  
  108. --Clerp Animations--
  109. TC = chara.HumanoidRootPart.RootJoint
  110. HC = chara.Torso.Neck
  111. RAC = chara.Torso["Right Shoulder"]
  112. LAC = chara.Torso["Left Shoulder"]
  113. RLC = chara.Torso["Right Hip"]
  114. LLC = chara.Torso["Left Hip"]
  115. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  116. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  117. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  118. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  119. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  120. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  121. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  122. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  123. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  124. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  125. RW = Instance.new("Weld",HC.Parent)
  126. RW.Part1 = HC.Parent
  127. RW.Part0 = chara["Right Arm"]
  128. RW.C0 = RWF
  129.  
  130. function clerp(a,b,c)
  131. return a:lerp(b,c)
  132. end
  133.  
  134. --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  135. --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
  136. --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  137. --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
  138.  
  139. RW.C0 = RWF
  140.  
  141. --Idle Clerp--
  142. IRWF = (RWF - Vector3.new(-.2,0,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-20),0)
  143.  
  144. function res()
  145. RW.C0 = IRWF
  146. end
  147. res()
  148. del = false
  149. normalwel = Weld.C0
  150. function onButton1Down()
  151. if del == false then
  152. del = true
  153. for i = 0,1,.2 do
  154. rs:wait()
  155. RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.3,.1,-.7)) * CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(-70),math.rad(20)),i)
  156. HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),i)
  157. end
  158. Weld.C0 = CFrame.new(0, 0, 0, -0.122617364, -0.0738587826, 0.989701807, -0.81083709, 0.582491338, -0.0569874756, -0.572283864, -0.809474528, -0.13131094)
  159. DrinkSnd:Play()
  160. wait(2)
  161. DrinkSnd:Stop()
  162. Weld.C0 = normalwel
  163. for i = 0,1,.2 do
  164. rs:wait()
  165. RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.3,.1,-.7)) * CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(-70),math.rad(20)),1-i)
  166. HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),1-i)
  167. end
  168. PlayNuke()
  169. SwingSnd:Play()
  170. for i = 0,1,.25 do
  171. rs:wait()
  172. RW.C0 = clerp(IRWF,(RWF - Vector3.new(0,-1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-190),0,0),i)
  173. end
  174. local fcan = Can:Clone()
  175. fcan.Weld:Destroy()
  176. fcan.Parent = workspace
  177. fcan.Position = Can.Position
  178. local bfos = Instance.new("BodyVelocity",fcan)
  179. bfos.P = 1000
  180. bfos.MaxForce = Vector3.new(1000,1000,1000)
  181. bfos.Velocity = Vector3.new(0,10,0) + chara.Head.CFrame.lookVector*-30
  182. debby:AddItem(bfos,.1)
  183. coroutine.resume(coroutine.create(function()
  184. wait(10)
  185. for i = 0,1,.1 do
  186. wait(.1)
  187. fcan.Transparency = i
  188. end
  189. fcan:Destroy()
  190. end))
  191. Can.Transparency = 1
  192. wait(1)
  193. for i = 0,1,.2 do
  194. rs:wait()
  195. RW.C0 = clerp(RWF,(RWF - Vector3.new(0,-1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-190),0,0),1-i)
  196. end
  197. wait(1)
  198. StartUpSnd:Play()
  199. for i = 0,1,.1 do
  200. wait(.1)
  201. Can.Transparency = 1-i
  202. end
  203. for i = 0,1,.2 do
  204. rs:wait()
  205. RW.C0 = clerp(RWF,IRWF,i)
  206. end
  207. del = false
  208. end
  209. end
  210.  
  211. --Mouse Activation--
  212. if Mouse then
  213. Mouse.Button1Down:connect(onButton1Down)
  214. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement