Christoffer07700Extr

Shackluster's Soda

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