Advertisement
Void_scripter0

epic soda

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