Advertisement
ericdesouza

Untitled

Apr 6th, 2018
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.86 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.5,1.5,1.5), 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. for i=0, 1, 0.1 / Animation_Speed do
  651. Swait()
  652. 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)
  653. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  654. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  655. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  656. 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)
  657. 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)
  658. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  659. end
  660. if MRANDOM(1,5) == 1 then
  661. CreateSound("1107256445", Effects, 10, 1)
  662. CreateSound("1107256445", Effects, 10, 1)
  663. CreateSound("1107256445", Effects, 10, 1)
  664. CreateSound("1107256445", Effects, 10, 1)
  665. Swait(200)
  666. CreateSound("363808674", Torso, 10, 1.3)
  667. for i=0, 10, 0.1 / Animation_Speed do
  668. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  669. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  670. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  671. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  672. 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)
  673. 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)
  674. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  675. end
  676. Swait(150)
  677. chatfunc("What the fucc is in this bomb",2)
  678. Swait(200)
  679. else
  680. CreateSound("399762682", Torso, 4, 1)
  681. Swait(150)
  682. for i=0, 1.3, 0.1 / Animation_Speed do
  683. Swait()
  684. 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)
  685. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  686. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  687. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  688. 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)
  689. 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)
  690. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  691. end
  692. for i=0, 1.3, 0.1 / Animation_Speed do
  693. Swait()
  694. 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)
  695. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.25 / Animation_Speed)
  696. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  697. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  698. 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)
  699. 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)
  700. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  701. end
  702. end
  703. ATTACK = false
  704. Rooted = false
  705. end
  706.  
  707. function SodaRush()
  708. Rooted = true
  709. ATTACK = true
  710. local soundeffect = IT("Sound",HandlePart)
  711. soundeffect.SoundId = "rbxassetid://188703219"
  712. soundeffect.Looped = true
  713. soundeffect.Volume = 10
  714. soundeffect.Playing = true
  715. chatfunc("Taste my power!",2)
  716. for i=0, 2, 0.1 / Animation_Speed do
  717. Swait()
  718. 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)
  719. 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)
  720. 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)
  721. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  722. 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)
  723. 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)
  724. end
  725. soundeffect:remove()
  726. Swait()
  727. for i=0, 2, 0.1 / Animation_Speed do
  728. 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)
  729. 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)
  730. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  731. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  732. 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)
  733. 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)
  734. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90-45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  735. end
  736. CreateSound("907668984", HandlePart, 10, 2)
  737. for i = 1, 85 do
  738. Swait()
  739. turnto(Mouse.Hit.p)
  740. MagicSphere(VT(2,2,2),15,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  741. MagicSphere(VT(1,1,1),25,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  742. RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
  743. killnearest(Torso.Position,5,75)
  744. end
  745. for i=0, 2, 0.1 / Animation_Speed do
  746. 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)
  747. 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)
  748. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  749. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  750. 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)
  751. 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)
  752. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  753. end
  754. ATTACK = false
  755. Rooted = false
  756. end
  757.  
  758. function clerp(a, b, t)
  759. return a:lerp(b, t)
  760. end
  761.  
  762. function newBezier(startpos, pos2, pos3, endpos, t)
  763. local A = clerp(startpos, pos2, t)
  764. local B = clerp(pos2, pos3, t)
  765. local C = clerp(pos3, endpos, t)
  766. local lerp1 = clerp(A, B, t)
  767. local lerp2 = clerp(B, C, t)
  768. local cubic = clerp(lerp1, lerp2, t)
  769. return cubic
  770. end
  771.  
  772. function SodaBomb()
  773. Rooted = true
  774. ATTACK = true
  775. chatfunc("I will explode you..",2)
  776. local soundeffect = IT("Sound",HandlePart)
  777. soundeffect.SoundId = "rbxassetid://188703219"
  778. soundeffect.Looped = true
  779. soundeffect.Volume = 10
  780. soundeffect.Playing = true
  781. for i=0, 1.5, 0.1 / Animation_Speed do
  782. Swait()
  783. 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)
  784. 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)
  785. 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)
  786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  787. 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)
  788. 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)
  789. end
  790. soundeffect:remove()
  791. local BOMB = HandlePart:Clone()
  792. BOMB.Parent = Effects
  793. BOMB.Size = VT(1,1,1)
  794. BOMB.CanCollide = true
  795. HandlePart.Transparency = 1
  796. CreateSound("907668984", BOMB, 10, 2)
  797. local WELD = weldBetween(RightArm,BOMB)
  798. for i=0, 2, 0.1 / Animation_Speed do
  799. Swait()
  800. turnto(Mouse.Hit.p)
  801. 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)
  802. 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)
  803. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  804. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  805. 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)
  806. 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)
  807. end
  808. for i=0, 0.1, 0.1 / Animation_Speed do
  809. Swait()
  810. 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)
  811. 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)
  812. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  813. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  814. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  815. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  816. end
  817. CreateSound("1112042117", BOMB, 10, 1)
  818. WELD:remove()
  819. local ROCK = BOMB
  820. local POS = ROCK.Position
  821. ROCK.Anchored = true
  822. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  823. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  824. for i = 0, 1, 0.07 do
  825. Swait()
  826. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  827. end
  828. ROCK.Anchored = false
  829. ROCK.CanCollide = true
  830. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Reddish brown",VT(3,0.2,3),0.5)
  831. MagicSphere(VT(1,1,1),25,CF(ROCK.Position),"Pine Cone",VT(3,3,3))
  832. MagicSphere(VT(0.5,0.5,0.5),25,CF(ROCK.Position),"Reddish brown",VT(3,3,3))
  833. killnearest(ROCK.Position,25,35)
  834. ROCK.Anchored = true
  835. ROCK.CanCollide = false
  836. ROCK.Transparency = 1
  837. CreateSound("691216625", ROCK, 10, 2)
  838. Debris:AddItem(ROCK,5)
  839. for i=0, 1.6, 0.1 / Animation_Speed do
  840. Swait()
  841. 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)
  842. 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)
  843. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  844. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  845. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  846. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  847. end
  848. Swait(15)
  849. HandlePart.Transparency = 0
  850. ATTACK = false
  851. Rooted = false
  852. end
  853.  
  854. function SodaNOOK()
  855. Rooted = true
  856. ATTACK = true
  857. chatfunc("ITS OVER 9000!!!!",5)
  858. local soundeffect = IT("Sound",HandlePart)
  859. soundeffect.SoundId = "rbxassetid://271550300"
  860. soundeffect.Looped = true
  861. soundeffect.Volume = 15
  862. soundeffect.Playing = true
  863. for i=0, 10, 0.1 / Animation_Speed do
  864. Swait()
  865. 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)
  866. 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)
  867. 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)
  868. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  869. 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)
  870. 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)
  871. end
  872. soundeffect:remove()
  873. Character:BreakJoints()
  874. local Explosion = IT("Explosion",Effects)
  875. Explosion.Position = HandlePart.Position
  876. Explosion.BlastPressure = 5000000
  877. local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0))
  878. PRT.CanCollide = false
  879. PRT.CFrame = CF(HandlePart.Position)
  880. Debris:AddItem(PRT,10)
  881. CreateSound("2248511", Effects, 10, 0.2)
  882. MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"Pine Cone",VT(6,2,6))
  883. MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Reddish brown",VT(6,2,6))
  884. MagicSphere(VT(5,5,5),250,PRT.CFrame,"Pine Cone",VT(5,15,5))
  885. MagicSphere(VT(4,4,4),250,PRT.CFrame,"Reddish brown",VT(5,15,5))
  886. CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"Reddish brown",VT(5,1,5))
  887. CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6))
  888. CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3))
  889. for i = 1, 250 do
  890. Swait()
  891. killnearest(PRT.Position,750000,75)
  892. end
  893. ATTACK = false
  894. Rooted = false
  895. end
  896.  
  897. --//=================================\\
  898. --|| ASSIGN THINGS TO KEYS
  899. --\\=================================//
  900.  
  901. function MouseDown(Mouse)
  902. if ATTACK == false then
  903. end
  904. end
  905.  
  906. function MouseUp(Mouse)
  907. HOLD = false
  908. end
  909.  
  910. function KeyDown(Key)
  911. KEYHOLD = true
  912. if Rooted == false then
  913. if Key == "z" and ATTACK == false then
  914. SodaRush()
  915. end
  916.  
  917. if Key == "b" and ATTACK == false then
  918. SodaBomb()
  919. end
  920.  
  921. if Key == "c" and ATTACK == false then
  922. SodaNOOK()
  923. end
  924.  
  925. if Key == "t" and ATTACK == false then
  926. Drincc()
  927. end
  928. end
  929. end
  930.  
  931. function KeyUp(Key)
  932. KEYHOLD = false
  933. end
  934.  
  935. Mouse.Button1Down:connect(function(NEWKEY)
  936. MouseDown(NEWKEY)
  937. end)
  938. Mouse.Button1Up:connect(function(NEWKEY)
  939. MouseUp(NEWKEY)
  940. end)
  941. Mouse.KeyDown:connect(function(NEWKEY)
  942. KeyDown(NEWKEY)
  943. end)
  944. Mouse.KeyUp:connect(function(NEWKEY)
  945. KeyUp(NEWKEY)
  946. end)
  947.  
  948. --//=================================\\
  949. --\\=================================//
  950.  
  951.  
  952. function unanchor()
  953. if UNANCHOR == true then
  954. g = Character:GetChildren()
  955. for i = 1, #g do
  956. if g[i].ClassName == "Part" then
  957. g[i].Anchored = false
  958. end
  959. end
  960. end
  961. end
  962.  
  963.  
  964. --//=================================\\
  965. --|| WRAP THE WHOLE SCRIPT UP
  966. --\\=================================//
  967.  
  968. Humanoid.Changed:connect(function(Jump)
  969. if Jump == "Jump" and (Disable_Jump == true) then
  970. Humanoid.Jump = false
  971. end
  972. end)
  973.  
  974. while true do
  975. Swait()
  976. ANIMATE.Parent = nil
  977. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  978. IDLEANIMATION:Play()
  979. SINE = SINE + CHANGE
  980. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  981. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  982. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  983. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  984. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  985. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  986. ANIM = "Jump"
  987. if ATTACK == false then
  988. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  989. 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)
  990. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  991. 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)
  992. 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)
  993. 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)
  994. end
  995. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  996. ANIM = "Fall"
  997. if ATTACK == false then
  998. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  999. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1000. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1001. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1002. 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)
  1003. 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)
  1004. end
  1005. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1006. ANIM = "Idle"
  1007. if ATTACK == false then
  1008. 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)
  1009. 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)
  1010. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1011. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1012. 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)
  1013. 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)
  1014. end
  1015. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1016. ANIM = "Walk"
  1017. WALK = WALK + 1 / Animation_Speed
  1018. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1019. WALK = 0
  1020. if WALKINGANIM == true then
  1021. WALKINGANIM = false
  1022. elseif WALKINGANIM == false then
  1023. WALKINGANIM = true
  1024. end
  1025. end
  1026. --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)
  1027. --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)
  1028. if ATTACK == false then
  1029. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1030. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1031. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1032. 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)
  1033. 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)
  1034. 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)
  1035. end
  1036. end
  1037. if #Effects2>0 then
  1038. for e=1,#Effects2 do
  1039. if Effects2[e]~=nil then
  1040. local Thing=Effects2[e]
  1041. if Thing~=nil then
  1042. local Part=Thing[1]
  1043. local Mode=Thing[2]
  1044. local Delay=Thing[3]
  1045. local IncX=Thing[4]
  1046. local IncY=Thing[5]
  1047. local IncZ=Thing[6]
  1048. local Part2=Thing[8]
  1049. if Thing[1].Transparency<=1 then
  1050. if Thing[2]=="Block1" then
  1051. Thing[1].CFrame=Thing[1].CFrame
  1052. Mesh=Thing[1].Mesh
  1053. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1054. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1055. elseif Thing[2]=="Cylinder" then
  1056. Mesh=Thing[1].Mesh
  1057. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1058. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1059. elseif Thing[2]=="Blood" then
  1060. Mesh=Thing[7]
  1061. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  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]=="Elec" then
  1065. Mesh=Thing[1].Mesh
  1066. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1067. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1068. elseif Thing[2]=="Disappear" then
  1069. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1070. end
  1071. else
  1072. Part.Parent=nil
  1073. table.remove(Effects2,e)
  1074. end
  1075. end
  1076. end
  1077. end
  1078. end
  1079. unanchor()
  1080. Humanoid.MaxHealth = "inf"
  1081. Humanoid.Health = "inf"
  1082. if Rooted == false then
  1083. Disable_Jump = false
  1084. Humanoid.WalkSpeed = Speed
  1085. elseif Rooted == true then
  1086. Disable_Jump = true
  1087. Humanoid.WalkSpeed = 0
  1088. end
  1089. end
  1090.  
  1091. --//=================================\\
  1092. --\\=================================//
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098. --//====================================================\\--
  1099. --|| END OF SCRIPT
  1100. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement