Advertisement
ericdesouza

The bomb script

Mar 17th, 2018
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.20 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48.  
  49. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  50. ff.Visible = false
  51.  
  52.  
  53.  
  54. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  55. local NEWMESH = IT(MESH)
  56. if MESH == "SpecialMesh" then
  57. NEWMESH.MeshType = MESHTYPE
  58. if MESHID ~= "nil" and MESHID ~= "" then
  59. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  60. end
  61. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  62. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  63. end
  64. end
  65. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  66. NEWMESH.Scale = SCALE
  67. NEWMESH.Parent = PARENT
  68. return NEWMESH
  69. end
  70.  
  71. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  72. local NEWPART = IT("Part")
  73. NEWPART.formFactor = FORMFACTOR
  74. NEWPART.Reflectance = REFLECTANCE
  75. NEWPART.Transparency = TRANSPARENCY
  76. NEWPART.CanCollide = false
  77. NEWPART.Locked = true
  78. NEWPART.Anchored = true
  79. if ANCHOR == false then
  80. NEWPART.Anchored = false
  81. end
  82. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  83. NEWPART.Name = NAME
  84. NEWPART.Size = SIZE
  85. NEWPART.Position = Torso.Position
  86. NEWPART.Material = MATERIAL
  87. NEWPART:BreakJoints()
  88. NEWPART.Parent = PARENT
  89. return NEWPART
  90. end
  91.  
  92. --//=================================\\
  93. --|| CUSTOMIZATION
  94. --\\=================================//
  95.  
  96. Class_Name = "SODA"
  97. Weapon_Name = "Add-ons"
  98.  
  99. Custom_Colors = {
  100. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  101. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  102.  
  103. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  104. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  105. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  106. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  107. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  108.  
  109. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  110. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  111. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  112. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  113. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  114. }
  115.  
  116.  
  117. Player_Size = 1 --Size of the player.
  118. Animation_Speed = 3
  119. Frame_Speed = 1 / 30 -- (1 / 20) OR (1 / 30)
  120.  
  121. local Speed = 16
  122. local Effects2 = {}
  123.  
  124. --//=================================\\
  125. --|| END OF CUSTOMIZATION
  126. --\\=================================//
  127.  
  128. local function weldBetween(a, b)
  129. local weldd = Instance.new("ManualWeld")
  130. weldd.Part0 = a
  131. weldd.Part1 = b
  132. weldd.C0 = CFrame.new()
  133. weldd.C1 = b.CFrame:inverse() * a.CFrame
  134. weldd.Parent = a
  135. return weldd
  136. end
  137.  
  138. --//=================================\\
  139. --|| USEFUL VALUES
  140. --\\=================================//
  141.  
  142. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  143. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  144. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  145. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  146. local CHANGEDEFENSE = 0
  147. local CHANGEDAMAGE = 0
  148. local CHANGEMOVEMENT = 0
  149. local ANIM = "Idle"
  150. local ATTACK = false
  151. local EQUIPPED = false
  152. local HOLD = false
  153. local COMBO = 1
  154. local Rooted = false
  155. local SINE = 0
  156. local KEYHOLD = false
  157. local CHANGE = 2 / Animation_Speed
  158. local WALKINGANIM = false
  159. local WALK = 0
  160. local VALUE1 = false
  161. local VALUE2 = false
  162. local ROBLOXIDLEANIMATION = IT("Animation")
  163. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  164. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  165. --ROBLOXIDLEANIMATION.Parent = Humanoid
  166. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  167. WEAPONGUI.Name = "Weapon GUI"
  168. local Weapon = IT("Model")
  169. Weapon.Name = Weapon_Name
  170. local Effects = IT("Folder", Weapon)
  171. Effects.Name = "Effects"
  172. local ANIMATOR = Humanoid.Animator
  173. local ANIMATE = Character.Animate
  174. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  175. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  176. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  177. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  178. local UNANCHOR = true
  179.  
  180. local SKILLTEXTCOLOR = BRICKC"Burnt Sienna".Color
  181. --//=================================\\
  182. --\\=================================//
  183.  
  184.  
  185. --//=================================\\
  186. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  187. --\\=================================//
  188.  
  189. ArtificialHB = Instance.new("BindableEvent", script)
  190. ArtificialHB.Name = "ArtificialHB"
  191.  
  192. script:WaitForChild("ArtificialHB")
  193.  
  194. frame = Frame_Speed
  195. tf = 0
  196. allowframeloss = false
  197. tossremainder = false
  198. lastframe = tick()
  199. script.ArtificialHB:Fire()
  200.  
  201. game:GetService("RunService").Heartbeat:connect(function(s, p)
  202. tf = tf + s
  203. if tf >= frame then
  204. if allowframeloss then
  205. script.ArtificialHB:Fire()
  206. lastframe = tick()
  207. else
  208. for i = 1, math.floor(tf / frame) do
  209. script.ArtificialHB:Fire()
  210. end
  211. lastframe = tick()
  212. end
  213. if tossremainder then
  214. tf = 0
  215. else
  216. tf = tf - frame * math.floor(tf / frame)
  217. end
  218. end
  219. end)
  220.  
  221. --//=================================\\
  222. --\\=================================//
  223.  
  224.  
  225.  
  226.  
  227.  
  228. --//=================================\\
  229. --|| SOME FUNCTIONS
  230. --\\=================================//
  231.  
  232. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  233. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  234. end
  235.  
  236. function PositiveAngle(NUMBER)
  237. if NUMBER >= 0 then
  238. NUMBER = 0
  239. end
  240. return NUMBER
  241. end
  242.  
  243. function NegativeAngle(NUMBER)
  244. if NUMBER <= 0 then
  245. NUMBER = 0
  246. end
  247. return NUMBER
  248. end
  249.  
  250. function Swait(NUMBER)
  251. if NUMBER == 0 or NUMBER == nil then
  252. ArtificialHB.Event:wait()
  253. else
  254. for i = 1, NUMBER do
  255. ArtificialHB.Event:wait()
  256. end
  257. end
  258. end
  259.  
  260. function QuaternionFromCFrame(cf)
  261. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  262. local trace = m00 + m11 + m22
  263. if trace > 0 then
  264. local s = math.sqrt(1 + trace)
  265. local recip = 0.5 / s
  266. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  267. else
  268. local i = 0
  269. if m11 > m00 then
  270. i = 1
  271. end
  272. if m22 > (i == 0 and m00 or m11) then
  273. i = 2
  274. end
  275. if i == 0 then
  276. local s = math.sqrt(m00 - m11 - m22 + 1)
  277. local recip = 0.5 / s
  278. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  279. elseif i == 1 then
  280. local s = math.sqrt(m11 - m22 - m00 + 1)
  281. local recip = 0.5 / s
  282. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  283. elseif i == 2 then
  284. local s = math.sqrt(m22 - m00 - m11 + 1)
  285. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  286. end
  287. end
  288. end
  289.  
  290. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  291. local xs, ys, zs = x + x, y + y, z + z
  292. local wx, wy, wz = w * xs, w * ys, w * zs
  293. local xx = x * xs
  294. local xy = x * ys
  295. local xz = x * zs
  296. local yy = y * ys
  297. local yz = y * zs
  298. local zz = z * zs
  299. 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))
  300. end
  301.  
  302. function QuaternionSlerp(a, b, t)
  303. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  304. local startInterp, finishInterp;
  305. if cosTheta >= 0.0001 then
  306. if (1 - cosTheta) > 0.0001 then
  307. local theta = ACOS(cosTheta)
  308. local invSinTheta = 1 / SIN(theta)
  309. startInterp = SIN((1 - t) * theta) * invSinTheta
  310. finishInterp = SIN(t * theta) * invSinTheta
  311. else
  312. startInterp = 1 - t
  313. finishInterp = t
  314. end
  315. else
  316. if (1 + cosTheta) > 0.0001 then
  317. local theta = ACOS(-cosTheta)
  318. local invSinTheta = 1 / SIN(theta)
  319. startInterp = SIN((t - 1) * theta) * invSinTheta
  320. finishInterp = SIN(t * theta) * invSinTheta
  321. else
  322. startInterp = t - 1
  323. finishInterp = t
  324. end
  325. end
  326. 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
  327. end
  328.  
  329. function Clerp(a, b, t)
  330. local qa = {QuaternionFromCFrame(a)}
  331. local qb = {QuaternionFromCFrame(b)}
  332. local ax, ay, az = a.x, a.y, a.z
  333. local bx, by, bz = b.x, b.y, b.z
  334. local _t = 1 - t
  335. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  336. end
  337.  
  338. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  339. local frame = IT("Frame")
  340. frame.BackgroundTransparency = TRANSPARENCY
  341. frame.BorderSizePixel = BORDERSIZEPIXEL
  342. frame.Position = POSITION
  343. frame.Size = SIZE
  344. frame.BackgroundColor3 = COLOR
  345. frame.BorderColor3 = BORDERCOLOR
  346. frame.Name = NAME
  347. frame.Parent = PARENT
  348. return frame
  349. end
  350.  
  351. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  352. local label = IT("TextLabel")
  353. label.BackgroundTransparency = 1
  354. label.Size = UD2(1, 0, 1, 0)
  355. label.Position = UD2(0, 0, 0, 0)
  356. label.TextColor3 = TEXTCOLOR
  357. label.TextStrokeTransparency = STROKETRANSPARENCY
  358. label.TextTransparency = TRANSPARENCY
  359. label.FontSize = TEXTFONTSIZE
  360. label.Font = TEXTFONT
  361. label.BorderSizePixel = BORDERSIZEPIXEL
  362. label.TextScaled = false
  363. label.Text = TEXT
  364. label.Name = NAME
  365. label.Parent = PARENT
  366. return label
  367. end
  368.  
  369. function NoOutlines(PART)
  370. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  371. end
  372.  
  373.  
  374. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  375. local NEWWELD = IT(TYPE)
  376. NEWWELD.Part0 = PART0
  377. NEWWELD.Part1 = PART1
  378. NEWWELD.C0 = C0
  379. NEWWELD.C1 = C1
  380. NEWWELD.Parent = PARENT
  381. return NEWWELD
  382. end
  383.  
  384. function CreateSound(ID, PARENT, VOLUME, PITCH)
  385. local NEWSOUND = nil
  386. coroutine.resume(coroutine.create(function()
  387. NEWSOUND = IT("Sound", PARENT)
  388. NEWSOUND.Volume = VOLUME
  389. NEWSOUND.Pitch = PITCH
  390. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  391. Swait()
  392. NEWSOUND:play()
  393. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  394. end))
  395. return NEWSOUND
  396. end
  397.  
  398. function CFrameFromTopBack(at, top, back)
  399. local right = top:Cross(back)
  400. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  401. end
  402.  
  403. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  404. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  405. local mesh = IT("SpecialMesh",wave)
  406. mesh.MeshType = "FileMesh"
  407. mesh.MeshId = "http://www.roblox.com/asset/?id=471124075"
  408. mesh.Scale = SIZE
  409. mesh.Offset = VT(0,0,-SIZE.X/8)
  410. wave.CFrame = CFRAME
  411. coroutine.resume(coroutine.create(function(PART)
  412. for i = 1, WAIT do
  413. Swait()
  414. mesh.Scale = mesh.Scale + GROW
  415. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  416. if DOESROT == true then
  417. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  418. end
  419. wave.Transparency = wave.Transparency + (0.5/WAIT)
  420. if wave.Transparency > 0.99 then
  421. wave:remove()
  422. end
  423. end
  424. end))
  425. end
  426.  
  427. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  428. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  429. local mesh = IT("SpecialMesh",wave)
  430. mesh.MeshType = "FileMesh"
  431. mesh.MeshId = "http://www.roblox.com/asset/?id=945061799"
  432. mesh.Scale = SIZE
  433. mesh.Offset = VT(0,0,-SIZE.X/8)
  434. wave.CFrame = CFRAME
  435. coroutine.resume(coroutine.create(function(PART)
  436. for i = 1, WAIT do
  437. Swait()
  438. mesh.Scale = mesh.Scale + GROW
  439. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  440. if DOESROT == true then
  441. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  442. end
  443. wave.Transparency = wave.Transparency + (0.5/WAIT)
  444. if wave.Transparency > 0.99 then
  445. wave:remove()
  446. end
  447. end
  448. end))
  449. end
  450.  
  451. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  452. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  453. local mesh = IT("SpecialMesh",wave)
  454. mesh.MeshType = "FileMesh"
  455. mesh.MeshId = "http://www.roblox.com/asset/?id=907871510"
  456. mesh.Scale = SIZE
  457. wave.CFrame = CFRAME
  458. coroutine.resume(coroutine.create(function(PART)
  459. for i = 1, WAIT do
  460. Swait()
  461. mesh.Scale = mesh.Scale + GROW
  462. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  463. if DOESROT == true then
  464. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  465. end
  466. wave.Transparency = wave.Transparency + (0.5/WAIT)
  467. if wave.Transparency > 0.99 then
  468. wave:remove()
  469. end
  470. end
  471. end))
  472. end
  473.  
  474. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  475. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  476. local mesh = IT("SpecialMesh",wave)
  477. mesh.MeshType = "Sphere"
  478. mesh.Scale = SIZE
  479. mesh.Offset = VT(0,0,0)
  480. wave.CFrame = CFRAME
  481. coroutine.resume(coroutine.create(function(PART)
  482. for i = 1, WAIT do
  483. Swait()
  484. mesh.Scale = mesh.Scale + GROW
  485. wave.Transparency = wave.Transparency + (1/WAIT)
  486. if wave.Transparency > 0.99 then
  487. wave:remove()
  488. end
  489. end
  490. end))
  491. end
  492.  
  493. function MakeForm(PART,TYPE)
  494. if TYPE == "Cyl" then
  495. local MSH = IT("CylinderMesh",PART)
  496. elseif TYPE == "Ball" then
  497. local MSH = IT("SpecialMesh",PART)
  498. MSH.MeshType = "Sphere"
  499. elseif TYPE == "Wedge" then
  500. local MSH = IT("SpecialMesh",PART)
  501. MSH.MeshType = "Wedge"
  502. end
  503. end
  504.  
  505. function CheckTableForString(Table, String)
  506. for i, v in pairs(Table) do
  507. if string.find(string.lower(String), string.lower(v)) then
  508. return true
  509. end
  510. end
  511. return false
  512. end
  513.  
  514. function CheckIntangible(Hit)
  515. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  516. if Hit and Hit.Parent then
  517. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  518. return true
  519. end
  520. end
  521. return false
  522. end
  523.  
  524. Debris = game:GetService("Debris")
  525.  
  526. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  527. local Direction = CFrame.new(StartPos, Vec).lookVector
  528. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  529. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  530. if RayHit and CheckIntangible(RayHit) then
  531. if DelayIfHit then
  532. wait()
  533. end
  534. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  535. end
  536. return RayHit, RayPos, RayNormal
  537. end
  538.  
  539. function turnto(position)
  540. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  541. end
  542.  
  543. --//=================================\\
  544. --|| SPEECH
  545. --\\=================================//
  546.  
  547. function chatfunc(text,waitt)
  548. local chat = coroutine.wrap(function()
  549. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  550. Character:FindFirstChild("TalkingBillBoard"):destroy()
  551. end
  552. local naeeym2 = Instance.new("BillboardGui",Character)
  553. naeeym2.Size = UDim2.new(0,100,0,40)
  554. naeeym2.StudsOffset = Vector3.new(0,5,0)
  555. naeeym2.Adornee = Character.Head
  556. naeeym2.Name = "TalkingBillBoard"
  557. naeeym2.AlwaysOnTop = true
  558. local tecks2 = Instance.new("TextLabel",naeeym2)
  559. tecks2.BackgroundTransparency = 1
  560. tecks2.BorderSizePixel = 0
  561. tecks2.Text = ""
  562. tecks2.Font = "SciFi"
  563. tecks2.TextSize = 30
  564. tecks2.TextStrokeTransparency = 1
  565. tecks2.TextColor3 = SKILLTEXTCOLOR
  566. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  567. tecks2.Size = UDim2.new(1,0,0.5,0)
  568. for i = 1,string.len(text),1 do
  569. tecks2.Text = string.sub(text,1,i)
  570. Swait()
  571. end
  572. wait(waitt)
  573. coroutine.resume(coroutine.create(function()
  574. for i = 1, 10 do
  575. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  576. Swait()
  577. end
  578. naeeym2:Destroy()
  579. end))
  580. end)
  581. chat()
  582. end
  583.  
  584. --//=================================\\
  585. --|| WEAPON CREATION
  586. --\\=================================//
  587.  
  588. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  589. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh","11563093", "11563076", VT(1,1,1), VT(0,0,0))
  590. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  591.  
  592. for _, c in pairs(Weapon:GetChildren()) do
  593. if c.ClassName == "Part" then
  594. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  595. end
  596. end
  597.  
  598. Weapon.Parent = Character
  599.  
  600. Humanoid.Died:connect(function()
  601. ATTACK = true
  602. end)
  603.  
  604. print(Class_Name.." loaded.")
  605.  
  606. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  607. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  608. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  609. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.0, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  610.  
  611. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] bomb rush", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 1")
  612. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Explosive bomb", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 2")
  613. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] NUKE BOMB", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 3")
  614. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[DEAD] SELF DESTRUCT", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 3")
  615.  
  616. --//=================================\\
  617. --|| DAMAGING
  618. --\\=================================//
  619.  
  620. function killnearest(position,range,maxstrength)
  621. for i,v in ipairs(workspace:GetChildren()) do
  622. local body = v:GetChildren()
  623. for part = 1, #body do
  624. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  625. if(body[part].Position - position).Magnitude < range then
  626. if v.ClassName == "Model" then
  627. v:BreakJoints()
  628. end
  629. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  630. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  631. end
  632. end
  633. end
  634. if v.ClassName == "Part" then
  635. if v.Anchored == false and (v.Position - position).Magnitude < range then
  636. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  637. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  638. end
  639. end
  640. end
  641. end
  642.  
  643. --//=================================\\
  644. --|| ATTACK FUNCTIONS AND STUFF
  645. --\\=================================//
  646.  
  647. function Drincc()
  648. ATTACK = true
  649. Rooted = true
  650. CreateSound("271550300", Effects, 10, 1)
  651. for i=0, 1, 0.1 / Animation_Speed do
  652. Swait()
  653. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  654. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  655. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  656. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  657. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  658. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  659. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  660. end
  661. if MRANDOM(1,5) == 1 then
  662. CreateSound("1107256445", Effects, 10, 1)
  663. CreateSound("1107256445", Effects, 10, 1)
  664. CreateSound("1107256445", Effects, 10, 1)
  665. CreateSound("1107256445", Effects, 10, 1)
  666. Swait(200)
  667. CreateSound("363808674", Torso, 10, 1.3)
  668. for i=0, 10, 0.1 / Animation_Speed do
  669. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  670. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  671. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  672. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  673. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  674. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  675. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  676. end
  677. Swait(150)
  678. chatfunc("What the fucc is in this bomb",2)
  679. Swait(200)
  680. else
  681. CreateSound("399762682", Torso, 4, 1)
  682. CreateSound("271550300", Torso, 10, 1)
  683. Swait(150)
  684. for i=0, 1.3, 0.1 / Animation_Speed do
  685. Swait()
  686. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  692. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  693. end
  694. for i=0, 1.3, 0.1 / Animation_Speed do
  695. Swait()
  696. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  697. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.25 / Animation_Speed)
  698. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  699. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  700. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  701. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  702. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  703. end
  704. end
  705. ATTACK = false
  706. Rooted = false
  707. end
  708.  
  709. function SodaRush()
  710. Rooted = true
  711. ATTACK = true
  712. CreateSound("271550300", Torso, 10, 1)
  713. local soundeffect = IT("Sound",HandlePart)
  714. soundeffect.SoundId = "rbxassetid://271550300"
  715. soundeffect.Looped = true
  716. soundeffect.Volume = 10
  717. soundeffect.Playing = true
  718. chatfunc("Taste my power!",2)
  719. for i=0, 2, 0.1 / Animation_Speed do
  720. Swait()
  721. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  722. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  723. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90 - 75 * SIN(SINE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  724. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  725. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  726. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  727. end
  728. soundeffect:remove()
  729. Swait()
  730. for i=0, 2, 0.1 / Animation_Speed do
  731. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.15 / Animation_Speed)
  732. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  733. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  734. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  735. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  736. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  737. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90-45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  738. end
  739. CreateSound("907668984", HandlePart, 10, 2)
  740. for i = 1, 85 do
  741. Swait()
  742. turnto(Mouse.Hit.p)
  743. MagicSphere(VT(2,2,2),15,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  744. MagicSphere(VT(1,1,1),25,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  745. RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
  746. killnearest(Torso.Position,5,75)
  747. end
  748. for i=0, 2, 0.1 / Animation_Speed do
  749. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  750. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  751. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  752. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  753. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  754. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  755. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  756. end
  757. ATTACK = false
  758. Rooted = false
  759. end
  760.  
  761. function clerp(a, b, t)
  762. return a:lerp(b, t)
  763. end
  764.  
  765. function newBezier(startpos, pos2, pos3, endpos, t)
  766. local A = clerp(startpos, pos2, t)
  767. local B = clerp(pos2, pos3, t)
  768. local C = clerp(pos3, endpos, t)
  769. local lerp1 = clerp(A, B, t)
  770. local lerp2 = clerp(B, C, t)
  771. local cubic = clerp(lerp1, lerp2, t)
  772. return cubic
  773. end
  774.  
  775. function SodaBomb()
  776. Rooted = true
  777. ATTACK = true
  778. CreateSound("271550300", Torso, 10, 1)
  779. chatfunc("I will explode you..",2)
  780. local soundeffect = IT("Sound",HandlePart)
  781. soundeffect.SoundId = "rbxassetid://271550300"
  782. soundeffect.Looped = true
  783. soundeffect.Volume = 10
  784. soundeffect.Playing = true
  785. for i=0, 1.5, 0.1 / Animation_Speed do
  786. Swait()
  787. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  788. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  789. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90 - 75 * SIN(SINE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  790. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  791. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  792. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  793. end
  794. soundeffect:remove()
  795. local BOMB = HandlePart:Clone()
  796. BOMB.Parent = Effects
  797. BOMB.Size = VT(1,1,1)
  798. BOMB.CanCollide = true
  799. HandlePart.Transparency = 1
  800. CreateSound("907668984", BOMB, 10, 2)
  801. local WELD = weldBetween(RightArm,BOMB)
  802. for i=0, 2, 0.1 / Animation_Speed do
  803. Swait()
  804. turnto(Mouse.Hit.p)
  805. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  806. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  807. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  808. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  809. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  810. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  811. end
  812. for i=0, 0.1, 0.1 / Animation_Speed do
  813. Swait()
  814. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1)
  815. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 1)
  816. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  817. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  818. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  819. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  820. end
  821. CreateSound("1112042117", BOMB, 10, 1)
  822. WELD:remove()
  823. local ROCK = BOMB
  824. local POS = ROCK.Position
  825. ROCK.Anchored = true
  826. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  827. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  828. for i = 0, 1, 0.07 do
  829. Swait()
  830. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  831. end
  832. ROCK.Anchored = false
  833. ROCK.CanCollide = true
  834. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Reddish brown",VT(3,0.2,3),0.5)
  835. MagicSphere(VT(1,1,1),25,CF(ROCK.Position),"Pine Cone",VT(3,3,3))
  836. MagicSphere(VT(0.5,0.5,0.5),25,CF(ROCK.Position),"Reddish brown",VT(3,3,3))
  837. killnearest(ROCK.Position,25,35)
  838. ROCK.Anchored = true
  839. ROCK.CanCollide = false
  840. ROCK.Transparency = 1
  841. CreateSound("691216625", ROCK, 10, 2)
  842. Debris:AddItem(ROCK,5)
  843. for i=0, 1.6, 0.1 / Animation_Speed do
  844. Swait()
  845. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1)
  846. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 1)
  847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  849. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  851. end
  852. Swait(15)
  853. HandlePart.Transparency = 0
  854. ATTACK = false
  855. Rooted = false
  856. end
  857.  
  858. function SodaNOOK()
  859. Rooted = true
  860. ATTACK = true
  861. local soundeffect = IT("Sound",HandlePart)
  862. soundeffect.SoundId = "rbxassetid://271550300"
  863. soundeffect.Looped = true
  864. soundeffect.Volume = 10
  865. soundeffect.Playing = true
  866. chatfunc("ITS OVER 9000!!!!",5)
  867. local soundeffect = IT("Sound",HandlePart)
  868. soundeffect.SoundId = "rbxassetid://188703219"
  869. soundeffect.Looped = true
  870. soundeffect.Volume = 10
  871. soundeffect.Playing = true
  872. for i=0, 10, 0.1 / Animation_Speed do
  873. Swait()
  874. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  875. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  876. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90 - 120 * SIN(SINE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  877. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  878. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  879. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  880. end
  881. soundeffect:remove()
  882. Character:BreakJoints()
  883. local Explosion = IT("Explosion",Effects)
  884. Explosion.Position = HandlePart.Position
  885. Explosion.BlastPressure = 5000000
  886. local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0))
  887. PRT.CanCollide = false
  888. PRT.CFrame = CF(HandlePart.Position)
  889. Debris:AddItem(PRT,10)
  890. CreateSound("2248511", Effects, 10, 0.2)
  891. MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"Pine Cone",VT(6,2,6))
  892. MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Reddish brown",VT(6,2,6))
  893. MagicSphere(VT(5,5,5),250,PRT.CFrame,"Pine Cone",VT(5,15,5))
  894. MagicSphere(VT(4,4,4),250,PRT.CFrame,"Reddish brown",VT(5,15,5))
  895. CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"Reddish brown",VT(5,1,5))
  896. CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6))
  897. CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3))
  898. for i = 1, 250 do
  899. Swait()
  900. killnearest(PRT.Position,750000,75)
  901. end
  902. ATTACK = false
  903. Rooted = false
  904. end
  905.  
  906. --//=================================\\
  907. --|| ASSIGN THINGS TO KEYS
  908. --\\=================================//
  909.  
  910. function MouseDown(Mouse)
  911. if ATTACK == false then
  912. end
  913. end
  914.  
  915. function MouseUp(Mouse)
  916. HOLD = false
  917. end
  918.  
  919. function KeyDown(Key)
  920. KEYHOLD = true
  921. if Rooted == false then
  922. if Key == "z" and ATTACK == false then
  923. SodaRush()
  924. end
  925.  
  926. if Key == "b" and ATTACK == false then
  927. SodaBomb()
  928. end
  929.  
  930. if Key == "c" and ATTACK == false then
  931. SodaNOOK()
  932. end
  933.  
  934. if Key == "t" and ATTACK == false then
  935. Drincc()
  936. end
  937. end
  938. end
  939.  
  940. function KeyUp(Key)
  941. KEYHOLD = false
  942. end
  943.  
  944. Mouse.Button1Down:connect(function(NEWKEY)
  945. MouseDown(NEWKEY)
  946. end)
  947. Mouse.Button1Up:connect(function(NEWKEY)
  948. MouseUp(NEWKEY)
  949. end)
  950. Mouse.KeyDown:connect(function(NEWKEY)
  951. KeyDown(NEWKEY)
  952. end)
  953. Mouse.KeyUp:connect(function(NEWKEY)
  954. KeyUp(NEWKEY)
  955. end)
  956.  
  957. --//=================================\\
  958. --\\=================================//
  959.  
  960.  
  961. function unanchor()
  962. if UNANCHOR == true then
  963. g = Character:GetChildren()
  964. for i = 1, #g do
  965. if g[i].ClassName == "Part" then
  966. g[i].Anchored = false
  967. end
  968. end
  969. end
  970. end
  971.  
  972.  
  973. --//=================================\\
  974. --|| WRAP THE WHOLE SCRIPT UP
  975. --\\=================================//
  976.  
  977. Humanoid.Changed:connect(function(Jump)
  978. if Jump == "Jump" and (Disable_Jump == true) then
  979. Humanoid.Jump = false
  980. end
  981. end)
  982.  
  983. while true do
  984. Swait()
  985. ANIMATE.Parent = nil
  986. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  987. IDLEANIMATION:Play()
  988. SINE = SINE + CHANGE
  989. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  990. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  991. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  992. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  993. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  994. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  995. ANIM = "Jump"
  996. if ATTACK == false then
  997. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  998. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  999. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1000. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1001. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1002. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1003. end
  1004. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1005. ANIM = "Fall"
  1006. if ATTACK == false then
  1007. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1008. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1011. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1012. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1013. end
  1014. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1015. ANIM = "Idle"
  1016. if ATTACK == false then
  1017. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1018. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1019. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1020. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1021. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1022. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1023. end
  1024. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1025. ANIM = "Walk"
  1026. WALK = WALK + 1 / Animation_Speed
  1027. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1028. WALK = 0
  1029. if WALKINGANIM == true then
  1030. WALKINGANIM = false
  1031. elseif WALKINGANIM == false then
  1032. WALKINGANIM = true
  1033. end
  1034. end
  1035. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1036. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1037. if ATTACK == false then
  1038. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1039. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1042. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-60 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1043. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-60 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1044. end
  1045. end
  1046. if #Effects2>0 then
  1047. for e=1,#Effects2 do
  1048. if Effects2[e]~=nil then
  1049. local Thing=Effects2[e]
  1050. if Thing~=nil then
  1051. local Part=Thing[1]
  1052. local Mode=Thing[2]
  1053. local Delay=Thing[3]
  1054. local IncX=Thing[4]
  1055. local IncY=Thing[5]
  1056. local IncZ=Thing[6]
  1057. local Part2=Thing[8]
  1058. if Thing[1].Transparency<=1 then
  1059. if Thing[2]=="Block1" then
  1060. Thing[1].CFrame=Thing[1].CFrame
  1061. Mesh=Thing[1].Mesh
  1062. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1063. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1064. elseif Thing[2]=="Cylinder" then
  1065. Mesh=Thing[1].Mesh
  1066. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1067. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1068. elseif Thing[2]=="Blood" then
  1069. Mesh=Thing[7]
  1070. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1071. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1072. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1073. elseif Thing[2]=="Elec" then
  1074. Mesh=Thing[1].Mesh
  1075. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1076. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1077. elseif Thing[2]=="Disappear" then
  1078. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1079. end
  1080. else
  1081. Part.Parent=nil
  1082. table.remove(Effects2,e)
  1083. end
  1084. end
  1085. end
  1086. end
  1087. end
  1088. unanchor()
  1089. Humanoid.MaxHealth = "inf"
  1090. Humanoid.Health = "inf"
  1091. if Rooted == false then
  1092. Disable_Jump = false
  1093. Humanoid.WalkSpeed = Speed
  1094. elseif Rooted == true then
  1095. Disable_Jump = true
  1096. Humanoid.WalkSpeed = 0
  1097. end
  1098. end
  1099.  
  1100. --//=================================\\
  1101. --\\=================================//
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107. --//====================================================\\--
  1108. --|| END OF SCRIPT
  1109. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement