Advertisement
PierceTheCakeKeeper

Soda edit FE

May 5th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.86 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER/EDIT BY AgentVK
  3. --|| thank u Shack luv u xd
  4. --\\====================================================//--
  5.  
  6. -- This script has been converted to FE by iPxter
  7.  
  8.  
  9. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  10. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  11. do
  12. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  13. script.Parent = Player.Character
  14.  
  15. --RemoteEvent for communicating
  16. local Event = Instance.new("RemoteEvent")
  17. Event.Name = "UserInput_Event"
  18.  
  19. --Fake event to make stuff like Mouse.KeyDown work
  20. local function fakeEvent()
  21. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  22. t.connect = t.Connect
  23. return t
  24. end
  25.  
  26. --Creating fake input objects with fake variables
  27. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  28. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  29. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  30. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  31. end}
  32. --Merged 2 functions into one by checking amount of arguments
  33. CAS.UnbindAction = CAS.BindAction
  34.  
  35. --This function will trigger the events that have been :Connect()'ed
  36. local function te(self,ev,...)
  37. local t = m[ev]
  38. if t and t._fakeEvent and t.Function then
  39. t.Function(...)
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=Player then return end
  47. if io.isMouse then
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. else
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. for _,t in pairs(CAS.Actions) do
  56. for _,k in pairs(t.Keys) do
  57. if k==io.KeyCode then
  58. t.Function(t.Name,io.UserInputState,io)
  59. end
  60. end
  61. end
  62. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  63. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  64. end
  65. end)
  66. Event.Parent = NLS([==[
  67. local Player = game:GetService("Players").LocalPlayer
  68. local Event = script:WaitForChild("UserInput_Event")
  69.  
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local Mouse = Player:GetMouse()
  80. local h,t
  81. --Give the server mouse data 30 times every second, but only if the values changed
  82. --If player is not moving their mouse, client won't fire events
  83. while wait(1/30) do
  84. if h~=Mouse.Hit or t~=Mouse.Target then
  85. h,t=Mouse.Hit,Mouse.Target
  86. Event:FireServer({isMouse=true,Target=t,Hit=h})
  87. end
  88. end]==],Player.Character)
  89. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  90. end
  91.  
  92. Player = owner
  93. PlayerGui = Player.PlayerGui
  94. Cam = workspace.CurrentCamera
  95. Backpack = Player.Backpack
  96. Character = Player.Character
  97. Humanoid = Character.Humanoid
  98. RootPart = Character["HumanoidRootPart"]
  99. Torso = Character["Torso"]
  100. Head = Character["Head"]
  101. RightArm = Character["Right Arm"]
  102. LeftArm = Character["Left Arm"]
  103. RightLeg = Character["Right Leg"]
  104. LeftLeg = Character["Left Leg"]
  105. RootJoint = RootPart["RootJoint"]
  106. Neck = Torso["Neck"]
  107. RightShoulder = Torso["Right Shoulder"]
  108. LeftShoulder = Torso["Left Shoulder"]
  109. RightHip = Torso["Right Hip"]
  110. LeftHip = Torso["Left Hip"]
  111.  
  112.  
  113. IT = Instance.new
  114. CF = CFrame.new
  115. VT = Vector3.new
  116. RAD = math.rad
  117. C3 = Color3.new
  118. UD2 = UDim2.new
  119. BRICKC = BrickColor.new
  120. ANGLES = CFrame.Angles
  121. EULER = CFrame.fromEulerAnglesXYZ
  122. COS = math.cos
  123. ACOS = math.acos
  124. SIN = math.sin
  125. ASIN = math.asin
  126. ABS = math.abs
  127. MRANDOM = math.random
  128. FLOOR = math.floor
  129.  
  130. local naeeym2 = Instance.new("BillboardGui",Character)
  131. naeeym2.AlwaysOnTop = true
  132. naeeym2.Size = UDim2.new(5,35,2,35)
  133. naeeym2.StudsOffset = Vector3.new(0,3,0)
  134. naeeym2.Adornee = Character.Head
  135. naeeym2.Name = "Name"
  136. naeeym2.PlayerToHideFrom = Player
  137. local tecks2 = Instance.new("TextLabel",naeeym2)
  138. tecks2.BackgroundTransparency = 1
  139. tecks2.TextScaled = true
  140. tecks2.BorderSizePixel = 0
  141. tecks2.Text = Player.Name
  142. tecks2.Font = "Fantasy"
  143. tecks2.TextSize = 20
  144. tecks2.TextStrokeTransparency = 1
  145. tecks2.TextColor3 = Color3.new(0,0,0)
  146. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  147. tecks2.Size = UDim2.new(1,0,0.5,0)
  148. tecks2.Parent = naeeym2
  149.  
  150. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  151. local NEWMESH = IT(MESH)
  152. if MESH == "SpecialMesh" then
  153. NEWMESH.MeshType = MESHTYPE
  154. if MESHID ~= "nil" and MESHID ~= "" then
  155. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  156. end
  157. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  158. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  159. end
  160. end
  161. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  162. NEWMESH.Scale = SCALE
  163. NEWMESH.Parent = PARENT
  164. return NEWMESH
  165. end
  166.  
  167. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  168. local NEWPART = IT("Part")
  169. NEWPART.formFactor = FORMFACTOR
  170. NEWPART.Reflectance = REFLECTANCE
  171. NEWPART.Transparency = TRANSPARENCY
  172. NEWPART.CanCollide = false
  173. NEWPART.Locked = true
  174. NEWPART.Anchored = true
  175. if ANCHOR == false then
  176. NEWPART.Anchored = false
  177. end
  178. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  179. NEWPART.Name = NAME
  180. NEWPART.Size = SIZE
  181. NEWPART.Position = Torso.Position
  182. NEWPART.Material = MATERIAL
  183. NEWPART:BreakJoints()
  184. NEWPART.Parent = PARENT
  185. return NEWPART
  186. end
  187.  
  188. --//=================================\\
  189. --|| CUSTOMIZATION
  190. --\\=================================//
  191.  
  192. Class_Name = "SODA"
  193. Weapon_Name = "Add-ons"
  194.  
  195. Custom_Colors = {
  196. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  197. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  198.  
  199. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  200. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  201. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  202. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  203. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  204.  
  205. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  206. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  207. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  208. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  209. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  210. }
  211.  
  212.  
  213. Player_Size = 1 --Size of the player.
  214. Animation_Speed = 3
  215. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  216.  
  217. local Speed = 16
  218. local Effects2 = {}
  219.  
  220. --//=================================\\
  221. --|| END OF CUSTOMIZATION
  222. --\\=================================//
  223.  
  224. local function weldBetween(a, b)
  225. local weldd = Instance.new("ManualWeld")
  226. weldd.Part0 = a
  227. weldd.Part1 = b
  228. weldd.C0 = CFrame.new()
  229. weldd.C1 = b.CFrame:inverse() * a.CFrame
  230. weldd.Parent = a
  231. return weldd
  232. end
  233.  
  234. --//=================================\\
  235. --|| USEFUL VALUES
  236. --\\=================================//
  237.  
  238. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  239. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  240. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  241. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  242. local CHANGEDEFENSE = 0
  243. local CHANGEDAMAGE = 0
  244. local CHANGEMOVEMENT = 0
  245. local ANIM = "Idle"
  246. local ATTACK = false
  247. local EQUIPPED = false
  248. local HOLD = false
  249. local COMBO = 1
  250. local Rooted = false
  251. local SINE = 0
  252. local KEYHOLD = false
  253. local CHANGE = 2 / Animation_Speed
  254. local WALKINGANIM = false
  255. local WALK = 0
  256. local VALUE1 = false
  257. local VALUE2 = false
  258. local ROBLOXIDLEANIMATION = IT("Animation")
  259. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  260. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  261. --ROBLOXIDLEANIMATION.Parent = Humanoid
  262. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  263. WEAPONGUI.Name = "Weapon GUI"
  264. local Weapon = IT("Model")
  265. Weapon.Name = Weapon_Name
  266. local Effects = IT("Folder", Weapon)
  267. Effects.Name = "Effects"
  268. local Minions = IT("Model",Character)
  269. Minions.Name = "MinionFolder"
  270. local ANIMATOR = Humanoid.Animator
  271. local ANIMATE = Character.Animate
  272. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  273. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  274. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  275. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  276. local UNANCHOR = true
  277.  
  278. local SKILLTEXTCOLOR = BRICKC"Burnt Sienna".Color
  279. --//=================================\\
  280. --\\=================================//
  281.  
  282.  
  283. --//=================================\\
  284. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  285. --\\=================================//
  286.  
  287. ArtificialHB = Instance.new("BindableEvent", script)
  288. ArtificialHB.Name = "ArtificialHB"
  289.  
  290. script:WaitForChild("ArtificialHB")
  291.  
  292. frame = Frame_Speed
  293. tf = 0
  294. allowframeloss = false
  295. tossremainder = false
  296. lastframe = tick()
  297. script.ArtificialHB:Fire()
  298.  
  299. game:GetService("RunService").Heartbeat:connect(function(s, p)
  300. tf = tf + s
  301. if tf >= frame then
  302. if allowframeloss then
  303. script.ArtificialHB:Fire()
  304. lastframe = tick()
  305. else
  306. for i = 1, math.floor(tf / frame) do
  307. script.ArtificialHB:Fire()
  308. end
  309. lastframe = tick()
  310. end
  311. if tossremainder then
  312. tf = 0
  313. else
  314. tf = tf - frame * math.floor(tf / frame)
  315. end
  316. end
  317. end)
  318.  
  319. --//=================================\\
  320. --\\=================================//
  321.  
  322.  
  323.  
  324.  
  325.  
  326. --//=================================\\
  327. --|| SOME FUNCTIONS
  328. --\\=================================//
  329.  
  330. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  331. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  332. end
  333.  
  334. function PositiveAngle(NUMBER)
  335. if NUMBER >= 0 then
  336. NUMBER = 0
  337. end
  338. return NUMBER
  339. end
  340.  
  341. function NegativeAngle(NUMBER)
  342. if NUMBER <= 0 then
  343. NUMBER = 0
  344. end
  345. return NUMBER
  346. end
  347.  
  348. function Swait(NUMBER)
  349. if NUMBER == 0 or NUMBER == nil then
  350. ArtificialHB.Event:wait()
  351. else
  352. for i = 1, NUMBER do
  353. ArtificialHB.Event:wait()
  354. end
  355. end
  356. end
  357.  
  358. function QuaternionFromCFrame(cf)
  359. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  360. local trace = m00 + m11 + m22
  361. if trace > 0 then
  362. local s = math.sqrt(1 + trace)
  363. local recip = 0.5 / s
  364. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  365. else
  366. local i = 0
  367. if m11 > m00 then
  368. i = 1
  369. end
  370. if m22 > (i == 0 and m00 or m11) then
  371. i = 2
  372. end
  373. if i == 0 then
  374. local s = math.sqrt(m00 - m11 - m22 + 1)
  375. local recip = 0.5 / s
  376. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  377. elseif i == 1 then
  378. local s = math.sqrt(m11 - m22 - m00 + 1)
  379. local recip = 0.5 / s
  380. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  381. elseif i == 2 then
  382. local s = math.sqrt(m22 - m00 - m11 + 1)
  383. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  384. end
  385. end
  386. end
  387.  
  388. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  389. local xs, ys, zs = x + x, y + y, z + z
  390. local wx, wy, wz = w * xs, w * ys, w * zs
  391. local xx = x * xs
  392. local xy = x * ys
  393. local xz = x * zs
  394. local yy = y * ys
  395. local yz = y * zs
  396. local zz = z * zs
  397. 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))
  398. end
  399.  
  400. function QuaternionSlerp(a, b, t)
  401. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  402. local startInterp, finishInterp;
  403. if cosTheta >= 0.0001 then
  404. if (1 - cosTheta) > 0.0001 then
  405. local theta = ACOS(cosTheta)
  406. local invSinTheta = 1 / SIN(theta)
  407. startInterp = SIN((1 - t) * theta) * invSinTheta
  408. finishInterp = SIN(t * theta) * invSinTheta
  409. else
  410. startInterp = 1 - t
  411. finishInterp = t
  412. end
  413. else
  414. if (1 + cosTheta) > 0.0001 then
  415. local theta = ACOS(-cosTheta)
  416. local invSinTheta = 1 / SIN(theta)
  417. startInterp = SIN((t - 1) * theta) * invSinTheta
  418. finishInterp = SIN(t * theta) * invSinTheta
  419. else
  420. startInterp = t - 1
  421. finishInterp = t
  422. end
  423. end
  424. 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
  425. end
  426.  
  427. function Clerp(a, b, t)
  428. local qa = {QuaternionFromCFrame(a)}
  429. local qb = {QuaternionFromCFrame(b)}
  430. local ax, ay, az = a.x, a.y, a.z
  431. local bx, by, bz = b.x, b.y, b.z
  432. local _t = 1 - t
  433. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  434. end
  435.  
  436. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  437. local frame = IT("Frame")
  438. frame.BackgroundTransparency = TRANSPARENCY
  439. frame.BorderSizePixel = BORDERSIZEPIXEL
  440. frame.Position = POSITION
  441. frame.Size = SIZE
  442. frame.BackgroundColor3 = COLOR
  443. frame.BorderColor3 = BORDERCOLOR
  444. frame.Name = NAME
  445. frame.Parent = PARENT
  446. return frame
  447. end
  448.  
  449. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  450. local label = IT("TextLabel")
  451. label.BackgroundTransparency = 1
  452. label.Size = UD2(1, 0, 1, 0)
  453. label.Position = UD2(0, 0, 0, 0)
  454. label.TextColor3 = TEXTCOLOR
  455. label.TextStrokeTransparency = STROKETRANSPARENCY
  456. label.TextTransparency = TRANSPARENCY
  457. label.FontSize = TEXTFONTSIZE
  458. label.Font = TEXTFONT
  459. label.BorderSizePixel = BORDERSIZEPIXEL
  460. label.TextScaled = false
  461. label.Text = TEXT
  462. label.Name = NAME
  463. label.Parent = PARENT
  464. return label
  465. end
  466.  
  467. function NoOutlines(PART)
  468. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  469. end
  470.  
  471.  
  472. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  473. local NEWWELD = IT(TYPE)
  474. NEWWELD.Part0 = PART0
  475. NEWWELD.Part1 = PART1
  476. NEWWELD.C0 = C0
  477. NEWWELD.C1 = C1
  478. NEWWELD.Parent = PARENT
  479. return NEWWELD
  480. end
  481.  
  482. function CreateSound(ID, PARENT, VOLUME, PITCH)
  483. local NEWSOUND = nil
  484. coroutine.resume(coroutine.create(function()
  485. NEWSOUND = IT("Sound", PARENT)
  486. NEWSOUND.Volume = VOLUME
  487. NEWSOUND.Pitch = PITCH
  488. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  489. Swait()
  490. NEWSOUND:play()
  491. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  492. end))
  493. return NEWSOUND
  494. end
  495.  
  496. function CFrameFromTopBack(at, top, back)
  497. local right = top:Cross(back)
  498. 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)
  499. end
  500.  
  501. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  502. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  503. local mesh = IT("SpecialMesh",wave)
  504. mesh.MeshType = "FileMesh"
  505. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  506. mesh.Scale = SIZE
  507. mesh.Offset = VT(0,0,-SIZE.X/8)
  508. wave.CFrame = CFRAME
  509. coroutine.resume(coroutine.create(function(PART)
  510. for i = 1, WAIT do
  511. Swait()
  512. mesh.Scale = mesh.Scale + GROW
  513. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  514. if DOESROT == true then
  515. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  516. end
  517. wave.Transparency = wave.Transparency + (0.5/WAIT)
  518. if wave.Transparency > 0.99 then
  519. wave:remove()
  520. end
  521. end
  522. end))
  523. end
  524.  
  525. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  526. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  527. local mesh = IT("SpecialMesh",wave)
  528. mesh.MeshType = "FileMesh"
  529. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  530. mesh.Scale = SIZE
  531. mesh.Offset = VT(0,0,-SIZE.X/8)
  532. wave.CFrame = CFRAME
  533. coroutine.resume(coroutine.create(function(PART)
  534. for i = 1, WAIT do
  535. Swait()
  536. mesh.Scale = mesh.Scale + GROW
  537. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  538. if DOESROT == true then
  539. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  540. end
  541. wave.Transparency = wave.Transparency + (0.5/WAIT)
  542. if wave.Transparency > 0.99 then
  543. wave:remove()
  544. end
  545. end
  546. end))
  547. end
  548.  
  549. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  550. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  551. local mesh = IT("SpecialMesh",wave)
  552. mesh.MeshType = "FileMesh"
  553. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  554. mesh.Scale = SIZE
  555. wave.CFrame = CFRAME
  556. coroutine.resume(coroutine.create(function(PART)
  557. for i = 1, WAIT do
  558. Swait()
  559. mesh.Scale = mesh.Scale + GROW
  560. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  561. if DOESROT == true then
  562. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  563. end
  564. wave.Transparency = wave.Transparency + (0.5/WAIT)
  565. if wave.Transparency > 0.99 then
  566. wave:remove()
  567. end
  568. end
  569. end))
  570. end
  571.  
  572. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  573. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  574. local mesh = IT("SpecialMesh",wave)
  575. mesh.MeshType = "Sphere"
  576. mesh.Scale = SIZE
  577. mesh.Offset = VT(0,0,0)
  578. wave.CFrame = CFRAME
  579. coroutine.resume(coroutine.create(function(PART)
  580. for i = 1, WAIT do
  581. Swait()
  582. mesh.Scale = mesh.Scale + GROW
  583. wave.Transparency = wave.Transparency + (1/WAIT)
  584. if wave.Transparency > 0.99 then
  585. wave:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. function MakeForm(PART,TYPE)
  592. if TYPE == "Cyl" then
  593. local MSH = IT("CylinderMesh",PART)
  594. elseif TYPE == "Ball" then
  595. local MSH = IT("SpecialMesh",PART)
  596. MSH.MeshType = "Sphere"
  597. elseif TYPE == "Wedge" then
  598. local MSH = IT("SpecialMesh",PART)
  599. MSH.MeshType = "Wedge"
  600. end
  601. end
  602.  
  603. function CheckTableForString(Table, String)
  604. for i, v in pairs(Table) do
  605. if string.find(string.lower(String), string.lower(v)) then
  606. return true
  607. end
  608. end
  609. return false
  610. end
  611.  
  612. function CheckIntangible(Hit)
  613. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  614. if Hit and Hit.Parent then
  615. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  616. return true
  617. end
  618. end
  619. return false
  620. end
  621.  
  622. Debris = game:GetService("Debris")
  623.  
  624. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  625. local Direction = CFrame.new(StartPos, Vec).lookVector
  626. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  627. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  628. if RayHit and CheckIntangible(RayHit) then
  629. if DelayIfHit then
  630. wait()
  631. end
  632. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  633. end
  634. return RayHit, RayPos, RayNormal
  635. end
  636.  
  637. function turnto(position)
  638. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  639. end
  640.  
  641. --//=================================\\
  642. --|| SPEECH
  643. --\\=================================//
  644.  
  645. function chatfunc(text,waitt)
  646. local chat = coroutine.wrap(function()
  647. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  648. Character:FindFirstChild("TalkingBillBoard"):destroy()
  649. end
  650. local naeeym2 = Instance.new("BillboardGui",Character)
  651. naeeym2.Size = UDim2.new(0,100,0,40)
  652. naeeym2.StudsOffset = Vector3.new(0,5,0)
  653. naeeym2.Adornee = Character.Head
  654. naeeym2.Name = "TalkingBillBoard"
  655. naeeym2.AlwaysOnTop = true
  656. local tecks2 = Instance.new("TextLabel",naeeym2)
  657. tecks2.BackgroundTransparency = 1
  658. tecks2.BorderSizePixel = 0
  659. tecks2.Text = ""
  660. tecks2.Font = "SciFi"
  661. tecks2.TextSize = 30
  662. tecks2.TextStrokeTransparency = 1
  663. tecks2.TextColor3 = SKILLTEXTCOLOR
  664. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  665. tecks2.Size = UDim2.new(1,0,0.5,0)
  666. for i = 1,string.len(text),1 do
  667. tecks2.Text = string.sub(text,1,i)
  668. Swait()
  669. end
  670. wait(waitt)
  671. coroutine.resume(coroutine.create(function()
  672. for i = 1, 10 do
  673. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  674. Swait()
  675. end
  676. naeeym2:Destroy()
  677. end))
  678. end)
  679. chat()
  680. end
  681.  
  682. --//=================================\\
  683. --|| WEAPON CREATION
  684. --\\=================================//
  685.  
  686. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  687. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10470609", "10470600", VT(1,1,1), VT(0,0,0))
  688. 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))
  689.  
  690. for _, c in pairs(Weapon:GetChildren()) do
  691. if c.ClassName == "Part" then
  692. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  693. end
  694. end
  695.  
  696. Weapon.Parent = Character
  697.  
  698. Humanoid.Died:connect(function()
  699. ATTACK = true
  700. end)
  701.  
  702. Minions = IT("Model",Character)
  703. Minions.Name = "MinionFolder"
  704.  
  705. print(Class_Name.." loaded.")
  706.  
  707. 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")
  708. 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")
  709. 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")
  710.  
  711. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] SO-DAsh", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 1")
  712. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Little Soda Bomb", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 2")
  713. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V] SODA ALLAHU AKBAR!", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 3")
  714. --//=================================\\
  715. --|| DAMAGE FUNCTIONS
  716. --\\=================================//
  717.  
  718. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  719. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  720. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  721. local BODYGYRO = IT("BodyGyro", STATPART)
  722. local BODYPOSITION = IT("BodyPosition", STATPART)
  723. BODYPOSITION.P = 2000
  724. BODYPOSITION.D = 100
  725. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  726. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  727. game:GetService("Debris"):AddItem(STATPART ,5)
  728. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  729. BILLBOARDGUI.Adornee = STATPART
  730. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  731. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  732. BILLBOARDGUI.AlwaysOnTop = false
  733. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  734. TEXTLABEL.BackgroundTransparency = 1
  735. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  736. TEXTLABEL.Text = TEXT
  737. TEXTLABEL.Font = "SciFi"
  738. TEXTLABEL.FontSize="Size42"
  739. TEXTLABEL.TextColor3 = COLOR
  740. TEXTLABEL.TextStrokeTransparency = 1
  741. TEXTLABEL.TextScaled = true
  742. TEXTLABEL.TextWrapped = true
  743. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  744. if LABELTYPE == "Normal" then
  745. for i = 1, 30 do
  746. Swait()
  747. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  748. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  749. end
  750. elseif LABELTYPE == "Debuff" then
  751. for i = 1, 30 do
  752. Swait()
  753. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  754. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  755. end
  756. elseif LABELTYPE == "Shock" then
  757. local ORIGIN = STATPART.Position
  758. for i = 1, 30 do
  759. Swait()
  760. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  761. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  762. end
  763. end
  764. THEPART.Parent = nil
  765. end),STATPART, BODYPOSITION, TEXTLABEL)
  766. end
  767. --//=================================\\
  768. --|| DAMAGING
  769. --\\=================================//
  770.  
  771. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  772. local dmg = math.random(min,max)
  773. for i,v in ipairs(workspace:GetChildren()) do
  774. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  775. local body = v:GetChildren()
  776. for part = 1, #body do
  777. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  778. if(body[part].Position - position).Magnitude < radius then
  779. if v.ClassName == "Model" then
  780. if v:FindFirstChild("Humanoid") then
  781. if v.Humanoid.Health ~= 0 then
  782. if CanBeDodgedByJumping == true then
  783. if body[part].Position.Y < position.Y+5 then
  784. if math.random(1,100) < critrate+1 then
  785. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  786. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  787. else
  788. v.Humanoid.Health = v.Humanoid.Health - dmg
  789. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  790. end
  791. local defence = Instance.new("BoolValue",v)
  792. defence.Name = ("HitBy"..Player.Name)
  793. game:GetService("Debris"):AddItem(defence, 0.01)
  794. end
  795. else
  796. if beserk == true then
  797. v.Humanoid.Health = 0
  798. end
  799. if math.random(1,100) < critrate+1 then
  800. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  801. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  802. else
  803. v.Humanoid.Health = v.Humanoid.Health - dmg
  804. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  805. end
  806. local defence = Instance.new("BoolValue",v)
  807. defence.Name = ("HitBy"..Player.Name)
  808. game:GetService("Debris"):AddItem(defence, 0.01)
  809. end
  810. end
  811. end
  812. end
  813. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  814. end
  815. end
  816. end
  817. if v.ClassName == "Part" then
  818. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  819. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  820. end
  821. end
  822. end
  823. end
  824. end
  825.  
  826. function Sink(position,radius)
  827. for i,v in ipairs(workspace:GetChildren()) do
  828. if v:FindFirstChild("Hit2By"..Player.Name) == nil then
  829. local body = v:GetChildren()
  830. for part = 1, #body do
  831. if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  832. if(body[part].Position - position).Magnitude < radius then
  833. if v.ClassName == "Model" then
  834. if v:FindFirstChild("Humanoid") then
  835. local defence = Instance.new("BoolValue",v)
  836. defence.Name = ("Hit2By"..Player.Name)
  837. if v.Humanoid.Health ~= 0 then
  838. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  839. if TORS ~= nil then
  840. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v)
  841. coroutine.resume(coroutine.create(function()
  842. if HITFLOOR2 ~= nil then
  843. TORS.Anchored = true
  844. table.insert(Effects2,{v})
  845. repeat
  846. Swait()
  847. TORS.CFrame = TORS.CFrame * CF(0,-1,0)
  848. until TORS.Position.Y<position.Y-4
  849. v:remove()
  850. end
  851. end))
  852. end
  853. end
  854. end
  855. end
  856. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  857. end
  858. end
  859. end
  860. end
  861. end
  862. end
  863.  
  864.  
  865. function killnearest(position,range,maxstrength)
  866. for i,v in ipairs(workspace:GetChildren()) do
  867. local body = v:GetChildren()
  868. for part = 1, #body do
  869. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  870. if(body[part].Position - position).Magnitude < range then
  871. if v.ClassName == "Model" then
  872. v:BreakJoints()
  873. end
  874. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  875. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  876. end
  877. end
  878. end
  879. if v.ClassName == "Part" then
  880. if v.Anchored == false and (v.Position - position).Magnitude < range then
  881. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  882. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  883. end
  884. end
  885. end
  886. end
  887.  
  888. --//=================================\\
  889. --|| ATTACK FUNCTIONS AND STUFF
  890. --\\=================================//
  891.  
  892.  
  893. function findNearestTorso(pos)
  894. local list = game.Workspace:children()
  895. local torso = nil
  896. local dist = 1000
  897. local temp = nil
  898. local human = nil
  899. local temp2 = nil
  900. for x = 1, #list do
  901. temp2 = list[x]
  902. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= pos.Parent) then
  903. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  904. human = temp2:findFirstChildOfClass("Humanoid")
  905. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  906. if (temp.Position - pos.Position).magnitude < dist then
  907. torso = temp
  908. dist = (temp.Position - pos.Position).magnitude
  909. end
  910. end
  911. end
  912. end
  913. return torso,dist
  914. end
  915.  
  916.  
  917.  
  918. function CreateBody()
  919. local zombie = IT("Model",Effects)
  920. zombie.Name = "Possessed"
  921. local tors = IT("Part",zombie)
  922. tors.Name = "Torso"
  923. tors.Size = Torso.Size
  924. tors.CFrame = RootPart.CFrame * CF(math.random(-5,5),0,-5)
  925. tors.Color = C3(0,0.5,0.5)
  926. local heed = IT("Part",zombie)
  927. heed.Size = Head.Size
  928. heed.CFrame = tors.CFrame * CF(0,1.5,0)
  929. heed.Name = "Head"
  930. heed.Color = C3(255/255, 230/255, 194/255)
  931. local face = IT("Decal",heed)
  932. face.Texture = "http://www.roblox.com/asset/?id=149118644"
  933. weldBetween(tors,heed)
  934. local headmesh = IT("SpecialMesh",heed)
  935. headmesh.Scale = VT(1.25,1.25,1.25)
  936. local limb = IT("Part",zombie)
  937. limb.Size = VT(1,2,1)
  938. limb.Name = "Left Arm"
  939. limb.CFrame = tors.CFrame * CF(-1.5,0,0)
  940. limb.Color = C3(255/255, 230/255, 194/255)
  941. weldBetween(tors,limb)
  942. local limb = IT("Part",zombie)
  943. limb.Size = VT(1,2,1)
  944. limb.Name = "Right Arm"
  945. limb.CFrame = tors.CFrame * CF(1.5,0,0)
  946. limb.Color = C3(255/255, 230/255, 194/255)
  947. weldBetween(tors,limb)
  948. local limb = IT("Part",zombie)
  949. limb.Size = VT(1,2,1)
  950. limb.Name = "Right Leg"
  951. limb.CFrame = tors.CFrame * CF(0.5,-2,0)
  952. limb.Color = C3(0,0.5,0.5)
  953. weldBetween(tors,limb)
  954. local limb = IT("Part",zombie)
  955. limb.Size = VT(1,2,1)
  956. limb.Name = "Left Leg"
  957. limb.CFrame = tors.CFrame * CF(-0.5,-2,0)
  958. limb.Color = C3(0,0.5,0.5)
  959. weldBetween(tors,limb)
  960. local hooman = IT("Humanoid",zombie)
  961. return zombie
  962. end
  963.  
  964.  
  965. local asd = Instance.new("ParticleEmitter")
  966. asd.Color = ColorSequence.new(Color3.new(0, 0, 0))
  967. asd.LightEmission = .1
  968. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  969. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 4),NumberSequenceKeypoint.new(1, 8)})
  970. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  971. asd.Transparency = bbb
  972. asd.Size = aaa
  973. asd.ZOffset = .9
  974. asd.Acceleration = Vector3.new(0, 0, 0)
  975. asd.LockedToPart = false
  976. asd.EmissionDirection = "Back"
  977. asd.Lifetime = NumberRange.new(1, 2)
  978. asd.Rotation = NumberRange.new(-100, 100)
  979. asd.RotSpeed = NumberRange.new(-100, 100)
  980. asd.Speed = NumberRange.new(6)
  981. asd.Enabled = false
  982. asd.Drag = 3
  983. asd.VelocitySpread = 10000
  984.  
  985. function poofcloud(pos,amount)
  986. local prt = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "Poof", VT(0,0,0))
  987. prt.Anchored = true
  988. prt.CFrame = CF(pos)
  989. local prtcl = asd:Clone()
  990. prtcl.Parent = prt
  991. prtcl:Emit(amount)
  992. CreateSound("966888080", prt, 6, (math.random(12,16)/10))
  993. coroutine.resume(coroutine.create(function()
  994. wait(3)
  995. prt:remove()
  996. end))
  997. end
  998.  
  999.  
  1000.  
  1001. function Vanish()
  1002. tecks2.TextTransparency = 1
  1003. poofcloud(Torso.Position,50)
  1004. g = Character:GetChildren()
  1005. for i = 1, #g do
  1006. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1007. g[i].Transparency = 1
  1008. Head.face.Transparency = 1
  1009. elseif g[i].ClassName == "Accessory" then
  1010. g[i].Handle.Transparency = 1
  1011. end
  1012. end
  1013. g = Weapon:GetChildren()
  1014. for i = 1, #g do
  1015. if g[i].ClassName == "Part" then
  1016. g[i].Transparency = 1
  1017. end
  1018. end
  1019. end
  1020.  
  1021. function Appear()
  1022. tecks2.TextTransparency = 0
  1023. poofcloud(Torso.Position,50)
  1024. g = Character:GetChildren()
  1025. for i = 1, #g do
  1026. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1027. g[i].Transparency = 0
  1028. Head.face.Transparency = 0
  1029. elseif g[i].ClassName == "Accessory" then
  1030. g[i].Handle.Transparency = 0
  1031. end
  1032. end
  1033. g = Weapon:GetChildren()
  1034. for i = 1, #g do
  1035. if g[i].ClassName == "Part" then
  1036. g[i].Transparency = 0
  1037. end
  1038. end
  1039. end
  1040.  
  1041.  
  1042.  
  1043. function DenialPossession()
  1044. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1045. local HITBODY = Mouse.Target.Parent
  1046. local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1047. local HUMAN = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1048. if TORS ~= nil and HUMAN ~= nil then
  1049. ATTACK = true
  1050. Rooted = true
  1051. TORS.Anchored = true
  1052. RootPart.CFrame = TORS.CFrame * CF(0,0,2)
  1053. for i=0, 1, 0.1 / Animation_Speed do
  1054. Swait()
  1055. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1056. 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.5 / Animation_Speed)
  1057. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.2, -0.8) * ANGLES(RAD(125), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1058. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.8) * ANGLES(RAD(125), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1059. 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(-15), RAD(-15)), 0.5 / Animation_Speed)
  1060. 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(15), RAD(-15)), 0.5 / Animation_Speed)
  1061. end
  1062. CreateSound("289315275", TORS, 10, 3)
  1063. for i = 1, 25 do
  1064. if HITBODY:FindFirstChild("Head") then
  1065. Swait()
  1066. MagicSphere(VT(0.2,0.2,i/5),35,CF(HITBODY.Head.CFrame*CF(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1)).p,HITBODY.Head.Position),C3(1,1,1),VT(0.001,0.001,0),0.5)
  1067. if HITBODY.Head:FindFirstChildOfClass("Decal") then
  1068. HITBODY.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=186465390"
  1069. end
  1070. end
  1071. end
  1072. local CLONE = HITBODY:Clone()
  1073. if CLONE ~= nil then
  1074. CLONE.Parent = Minions
  1075. CLONE:FindFirstChildOfClass("Humanoid").DisplayDistanceType = "None"
  1076. TORS = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso")
  1077. TORS.Anchored = false
  1078. if CLONE.Head:FindFirstChildOfClass("Decal") then
  1079. CLONE.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=16904401"
  1080. end
  1081. coroutine.resume(coroutine.create(function()
  1082. while wait() do
  1083. local MAN = CLONE:FindFirstChildOfClass("Humanoid")
  1084. if MAN.Health ~= 0 then
  1085. local target,dist = findNearestTorso(TORS)
  1086. if target ~= nil then
  1087. MAN:MoveTo(target.Position)
  1088. if dist < 7 then
  1089. if MRANDOM(1,5) == 1 then
  1090. AoEDamage(TORS.Position,4,5,25,5,0,1,1.5,false)
  1091. end
  1092. end
  1093. end
  1094. else
  1095. CLONE.Parent = workspace
  1096. Debris:AddItem(CLONE,5)
  1097. end
  1098. end
  1099. end))
  1100. HITBODY:BreakJoints()
  1101. HITBODY.Parent = nil
  1102. else
  1103. local CLONE = CreateBody()
  1104. CLONE.Torso.CFrame = TORS.CFrame
  1105. CLONE.Parent = Minions
  1106. CLONE:FindFirstChildOfClass("Humanoid").DisplayDistanceType = "None"
  1107. TORS = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso")
  1108. TORS.Anchored = false
  1109. if CLONE.Head:FindFirstChildOfClass("Decal") then
  1110. CLONE.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=16904401"
  1111. end
  1112. for _, c in pairs(HITBODY:GetChildren()) do
  1113. if c.ClassName ~= "Part" and c.ClassName ~= "MeshPart" then
  1114. c.Parent = CLONE
  1115. end
  1116. end
  1117. coroutine.resume(coroutine.create(function()
  1118. while wait() do
  1119. local MAN = CLONE:FindFirstChildOfClass("Humanoid")
  1120. if MAN.Health ~= 0 then
  1121. local target,dist = findNearestTorso(TORS)
  1122. if target ~= nil then
  1123. MAN:MoveTo(target.Position)
  1124. if dist < 7 then
  1125. if MRANDOM(1,5) == 1 then
  1126. AoEDamage(TORS.Position,4,5,25,5,0,1,1.5,false)
  1127. end
  1128. end
  1129. end
  1130. else
  1131. CLONE.Parent = workspace
  1132. Debris:AddItem(CLONE,5)
  1133. end
  1134. end
  1135. end))
  1136. HITBODY:BreakJoints()
  1137. HITBODY.Parent = nil
  1138. end
  1139. ATTACK = false
  1140. Rooted = false
  1141. end
  1142. end
  1143. end
  1144.  
  1145.  
  1146. function Drincc()
  1147. ATTACK = true
  1148. Rooted = true
  1149. for i=0, 1, 0.1 / Animation_Speed do
  1150. Swait()
  1151. 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)
  1152. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1153. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1154. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1155. 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)
  1156. 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)
  1157. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  1158. end
  1159. if MRANDOM(1,5) == 1 then
  1160. CreateSound("1107256445", Effects, 10, 1)
  1161. CreateSound("1107256445", Effects, 10, 1)
  1162. CreateSound("1107256445", Effects, 10, 1)
  1163. CreateSound("1107256445", Effects, 10, 1)
  1164. Swait(200)
  1165. CreateSound("363808674", Torso, 10, 1.3)
  1166. for i=0, 10, 0.1 / Animation_Speed do
  1167. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1168. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1169. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1170. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1171. 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)
  1172. 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)
  1173. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1174. end
  1175. Swait(150)
  1176. chatfunc("wat da hell?",2)
  1177. Swait(200)
  1178. else
  1179. CreateSound("399762682", Torso, 4, 1)
  1180. Swait(150)
  1181. for i=0, 1.3, 0.1 / Animation_Speed do
  1182. Swait()
  1183. 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)
  1184. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  1185. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1186. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1187. 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)
  1188. 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)
  1189. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1190. end
  1191. for i=0, 1.3, 0.1 / Animation_Speed do
  1192. Swait()
  1193. 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)
  1194. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.25 / Animation_Speed)
  1195. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1196. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1197. 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)
  1198. 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)
  1199. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1200. end
  1201. end
  1202. ATTACK = false
  1203. Rooted = false
  1204. end
  1205.  
  1206.  
  1207.  
  1208.  
  1209. function CastProperRay(StartPos, Vec, Length, Ignore)
  1210. local Direction = CFrame.new(StartPos, Vec).lookVector
  1211. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1212. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1213. return RayHit, RayPos, RayNormal
  1214. end
  1215. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1216. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1217. local mesh = IT("SpecialMesh",wave)
  1218. mesh.MeshType = "Sphere"
  1219. mesh.Scale = SIZE
  1220. mesh.Offset = VT(0,0,0)
  1221. wave.CFrame = CFRAME
  1222. coroutine.resume(coroutine.create(function(PART)
  1223. for i = 1, WAIT do
  1224. Swait()
  1225. mesh.Scale = mesh.Scale + GROW
  1226. wave.Transparency = wave.Transparency + (1/WAIT)
  1227. if wave.Transparency > 0.99 then
  1228. wave:remove()
  1229. end
  1230. end
  1231. end))
  1232. end
  1233.  
  1234.  
  1235. function Debree(POS,SWAIT)
  1236. coroutine.resume(coroutine.create(function()
  1237. local HOLDER = IT("Model",Effects)
  1238. HOLDER.Name = "Debree"
  1239. local HITFLOOR = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1240. MagicSphere(VT(15,1,15),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  1241. MagicSphere(VT(13,1,13),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  1242. MagicSphere(VT(12,1,12),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  1243. repeat Swait() until HITFLOOR ~= nil
  1244. local O = 0
  1245. for i = 1, 18 do
  1246. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  1247. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  1248. O = O - (45/4)/5+i/4
  1249. coroutine.resume(coroutine.create(function()
  1250. Swait(SWAIT)
  1251. for i = 1, 60 do
  1252. Swait()
  1253. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  1254. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  1255. end
  1256. for i = 1, 50 do
  1257. Swait()
  1258. Part.Size = Part.Size * 0.9
  1259. end
  1260. end))
  1261. end
  1262. local O = 0
  1263. for i = 1, 18 do
  1264. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  1265. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  1266. O = O + (45/4)/5-i/4
  1267. coroutine.resume(coroutine.create(function()
  1268. Swait(SWAIT)
  1269. for i = 1, 60 do
  1270. Swait()
  1271. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  1272. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  1273. end
  1274. for i = 1, 50 do
  1275. Swait()
  1276. Part.Size = Part.Size * 0.9
  1277. end
  1278. end))
  1279. end
  1280. Swait(SWAIT+110)
  1281. HOLDER:remove()
  1282. end))
  1283. end
  1284.  
  1285.  
  1286.  
  1287.  
  1288. function WarpVector()
  1289. ATTACK = false
  1290. Rooted = true
  1291.  
  1292. Debree(CF(RootPart.Position)*CF(0,-2.8,0).p,75)
  1293. UNANCHOR = false
  1294.  
  1295. RootPart.Anchored = true
  1296. for i=0, 2, 0.1 / Animation_Speed do
  1297. Swait()
  1298. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1299. 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.5 / Animation_Speed)
  1300. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1301. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1302. 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.5 / Animation_Speed)
  1303. 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.5 / Animation_Speed)
  1304. end
  1305.  
  1306. local POS = RootPart.Position
  1307. RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2.8,0).p,POS)
  1308. Debree(CF(RootPart.Position)*CF(0,-2.5,0).p,150)
  1309. for i=0, 2, 0.1 / Animation_Speed do
  1310. Swait()
  1311. 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)
  1312. 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.5 / Animation_Speed)
  1313. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1314. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1315. 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.5 / Animation_Speed)
  1316. 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.5 / Animation_Speed)
  1317. end
  1318. UNANCHOR = true
  1319. ATTACK = false
  1320. Rooted = false
  1321. end
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327. function SodaRush()
  1328. Rooted = true
  1329. ATTACK = true
  1330. local soundeffect = IT("Sound",HandlePart)
  1331. soundeffect.SoundId = "rbxassetid://188703219"
  1332. soundeffect.Looped = true
  1333. soundeffect.Volume = 10
  1334. soundeffect.Playing = true
  1335. for i=0, 2, 0.1 / Animation_Speed do
  1336. Swait()
  1337. 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)
  1338. 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)
  1339. 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)
  1340. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1341. 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)
  1342. 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)
  1343. end
  1344. soundeffect:remove()
  1345. Swait()
  1346. for i=0, 2, 0.1 / Animation_Speed do
  1347. 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)
  1348. 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)
  1349. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1350. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1351. 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)
  1352. 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)
  1353. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90-45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1354. end
  1355. CreateSound("907668984", HandlePart, 10, 2)
  1356. for i = 1, 85 do
  1357. Swait()
  1358. turnto(Mouse.Hit.p)
  1359. MagicSphere(VT(2,2,2),15,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  1360. MagicSphere(VT(1,1,1),25,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  1361. RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
  1362. killnearest(Torso.Position,5,75)
  1363. end
  1364. for i=0, 2, 0.1 / Animation_Speed do
  1365. 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)
  1366. 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)
  1367. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1368. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1369. 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)
  1370. 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)
  1371. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1372. end
  1373. ATTACK = false
  1374. Rooted = false
  1375. end
  1376.  
  1377. function clerp(a, b, t)
  1378. return a:lerp(b, t)
  1379. end
  1380.  
  1381. function newBezier(startpos, pos2, pos3, endpos, t)
  1382. local A = clerp(startpos, pos2, t)
  1383. local B = clerp(pos2, pos3, t)
  1384. local C = clerp(pos3, endpos, t)
  1385. local lerp1 = clerp(A, B, t)
  1386. local lerp2 = clerp(B, C, t)
  1387. local cubic = clerp(lerp1, lerp2, t)
  1388. return cubic
  1389. end
  1390.  
  1391. function SodaBomb()
  1392. Rooted = true
  1393. ATTACK = true
  1394. local soundeffect = IT("Sound",HandlePart)
  1395. soundeffect.SoundId = "rbxassetid://188703219"
  1396. soundeffect.Looped = true
  1397. soundeffect.Volume = 10
  1398. soundeffect.Playing = true
  1399. for i=0, 1.5, 0.1 / Animation_Speed do
  1400. Swait()
  1401. 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)
  1402. 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)
  1403. 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)
  1404. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1405. 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)
  1406. 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)
  1407. end
  1408. soundeffect:remove()
  1409. local BOMB = HandlePart:Clone()
  1410. BOMB.Parent = Effects
  1411. BOMB.Size = VT(1,1,1)
  1412. BOMB.CanCollide = true
  1413. HandlePart.Transparency = 1
  1414. CreateSound("907668984", BOMB, 10, 2)
  1415. local WELD = weldBetween(RightArm,BOMB)
  1416. for i=0, 2, 0.1 / Animation_Speed do
  1417. Swait()
  1418. turnto(Mouse.Hit.p)
  1419. 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)
  1420. 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)
  1421. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1422. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1423. 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)
  1424. 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)
  1425. end
  1426. for i=0, 0.1, 0.1 / Animation_Speed do
  1427. Swait()
  1428. 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)
  1429. 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)
  1430. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  1431. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  1432. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  1433. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  1434. end
  1435. CreateSound("1112042117", BOMB, 10, 1)
  1436. WELD:remove()
  1437. local ROCK = BOMB
  1438. local POS = ROCK.Position
  1439. ROCK.Anchored = true
  1440. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  1441. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  1442. for i = 0, 1, 0.07 do
  1443. Swait()
  1444. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  1445. end
  1446. ROCK.Anchored = false
  1447. ROCK.CanCollide = true
  1448. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Reddish brown",VT(3,0.2,3),0.5)
  1449. MagicSphere(VT(1,1,1),25,CF(ROCK.Position),"Pine Cone",VT(3,3,3))
  1450. MagicSphere(VT(0.5,0.5,0.5),25,CF(ROCK.Position),"Reddish brown",VT(3,3,3))
  1451. killnearest(ROCK.Position,25,35)
  1452. ROCK.Anchored = true
  1453. ROCK.CanCollide = false
  1454. ROCK.Transparency = 1
  1455. CreateSound("691216625", ROCK, 10, 2)
  1456. Debris:AddItem(ROCK,5)
  1457. for i=0, 1.6, 0.1 / Animation_Speed do
  1458. Swait()
  1459. 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)
  1460. 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)
  1461. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  1462. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  1463. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  1464. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  1465. end
  1466. Swait(15)
  1467. HandlePart.Transparency = 0
  1468. ATTACK = false
  1469. Rooted = false
  1470. end
  1471.  
  1472. function SodaNOOK()
  1473. Rooted = true
  1474. ATTACK = true
  1475. chatfunc("Allahu Akbar?.",1)
  1476. local soundeffect = IT("Sound",HandlePart)
  1477. soundeffect.SoundId = "rbxassetid://188703219"
  1478. soundeffect.Looped = true
  1479. soundeffect.Volume = 10
  1480. soundeffect.Playing = true
  1481. for i=0, 0, 0.1 / Animation_Speed do
  1482. Swait()
  1483. 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)
  1484. 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)
  1485. 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)
  1486. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1487. 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)
  1488. 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)
  1489. end
  1490. soundeffect:remove()
  1491. Character:BreakJoints()
  1492. local Explosion = IT("Explosion",Effects)
  1493. Explosion.Position = HandlePart.Position
  1494. Explosion.BlastPressure = 5000000
  1495. local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0))
  1496. PRT.CanCollide = false
  1497. PRT.CFrame = CF(HandlePart.Position)
  1498. Debris:AddItem(PRT,10)
  1499. CreateSound("2248511", Effects, 10, 0.2)
  1500. MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"Pine Cone",VT(6,2,6))
  1501. MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Reddish brown",VT(6,2,6))
  1502. MagicSphere(VT(5,5,5),250,PRT.CFrame,"Pine Cone",VT(5,15,5))
  1503. MagicSphere(VT(4,4,4),250,PRT.CFrame,"Reddish brown",VT(5,15,5))
  1504. CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"Reddish brown",VT(5,1,5))
  1505. CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6))
  1506. CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3))
  1507. for i = 1, 250 do
  1508. Swait()
  1509. killnearest(PRT.Position,750000,75)
  1510. end
  1511. ATTACK = false
  1512. Rooted = false
  1513. end
  1514.  
  1515. --//=================================\\
  1516. --|| ASSIGN THINGS TO KEYS
  1517. --\\=================================//
  1518.  
  1519. function MouseDown(Mouse)
  1520. if ATTACK == false then
  1521. end
  1522. end
  1523.  
  1524. function MouseUp(Mouse)
  1525. HOLD = false
  1526. end
  1527.  
  1528. function KeyDown(Key)
  1529. KEYHOLD = true
  1530. if Rooted == false then
  1531. if Key == "z" and ATTACK == false then
  1532. SodaRush()
  1533. end
  1534.  
  1535. if Key == "c" and ATTACK == false then
  1536. WarpVector()
  1537. end
  1538.  
  1539.  
  1540.  
  1541. if Key == "f" and ATTACK == false then
  1542. if VALUE1 == false then
  1543. Vanish()
  1544. VALUE1 = true
  1545. elseif VALUE1 == true then
  1546. Appear()
  1547. VALUE1 = false
  1548. end
  1549. end
  1550.  
  1551.  
  1552.  
  1553. if Key == "g" and ATTACK == false then
  1554. DenialPossession()
  1555. end
  1556.  
  1557. if Key == "h" and ATTACK == false then
  1558. Minions:ClearAllChildren()
  1559. end
  1560.  
  1561.  
  1562.  
  1563. if Key == "b" and ATTACK == false then
  1564. SodaBomb()
  1565. end
  1566.  
  1567. if Key == "v" and ATTACK == false then
  1568. SodaNOOK()
  1569. end
  1570.  
  1571. if Key == "t" and ATTACK == false then
  1572. Drincc()
  1573. end
  1574. end
  1575. end
  1576.  
  1577. function KeyUp(Key)
  1578. KEYHOLD = false
  1579. end
  1580.  
  1581. Mouse.Button1Down:connect(function(NEWKEY)
  1582. MouseDown(NEWKEY)
  1583. end)
  1584. Mouse.Button1Up:connect(function(NEWKEY)
  1585. MouseUp(NEWKEY)
  1586. end)
  1587. Mouse.KeyDown:connect(function(NEWKEY)
  1588. KeyDown(NEWKEY)
  1589. end)
  1590. Mouse.KeyUp:connect(function(NEWKEY)
  1591. KeyUp(NEWKEY)
  1592. end)
  1593.  
  1594. --//=================================\\
  1595. --\\=================================//
  1596.  
  1597.  
  1598. function unanchor()
  1599. if UNANCHOR == true then
  1600. g = Character:GetChildren()
  1601. for i = 1, #g do
  1602. if g[i].ClassName == "Part" then
  1603. g[i].Anchored = false
  1604. end
  1605. end
  1606. end
  1607. end
  1608.  
  1609.  
  1610. --//=================================\\
  1611. --|| WRAP THE WHOLE SCRIPT UP
  1612. --\\=================================//
  1613.  
  1614. Humanoid.Changed:connect(function(Jump)
  1615. if Jump == "Jump" and (Disable_Jump == true) then
  1616. Humanoid.Jump = false
  1617. end
  1618. end)
  1619.  
  1620. while true do
  1621. Swait()
  1622. ANIMATE.Parent = nil
  1623. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1624. IDLEANIMATION:Play()
  1625. SINE = SINE + CHANGE
  1626. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1627. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1628. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1629. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1630. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1631. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1632. ANIM = "Jump"
  1633. if ATTACK == false then
  1634. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1635. 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)
  1636. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1637. 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)
  1638. 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)
  1639. 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)
  1640. end
  1641. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1642. ANIM = "Fall"
  1643. if ATTACK == false then
  1644. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1645. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1646. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1647. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1648. 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)
  1649. 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)
  1650. end
  1651. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1652. ANIM = "Idle"
  1653. if ATTACK == false then
  1654. 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)
  1655. 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)
  1656. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1657. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1658. 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)
  1659. 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)
  1660. end
  1661. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1662. ANIM = "Walk"
  1663. WALK = WALK + 1 / Animation_Speed
  1664. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1665. WALK = 0
  1666. if WALKINGANIM == true then
  1667. WALKINGANIM = false
  1668. elseif WALKINGANIM == false then
  1669. WALKINGANIM = true
  1670. end
  1671. end
  1672. --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)
  1673. --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)
  1674. if ATTACK == false then
  1675. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1676. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1677. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1678. 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)
  1679. 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)
  1680. 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)
  1681. end
  1682. end
  1683. if #Effects2>0 then
  1684. for e=1,#Effects2 do
  1685. if Effects2[e]~=nil then
  1686. local Thing=Effects2[e]
  1687. if Thing~=nil then
  1688. local Part=Thing[1]
  1689. local Mode=Thing[2]
  1690. local Delay=Thing[3]
  1691. local IncX=Thing[4]
  1692. local IncY=Thing[5]
  1693. local IncZ=Thing[6]
  1694. local Part2=Thing[8]
  1695. if Thing[1].Transparency<=1 then
  1696. if Thing[2]=="Block1" then
  1697. Thing[1].CFrame=Thing[1].CFrame
  1698. Mesh=Thing[1].Mesh
  1699. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1700. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1701. elseif Thing[2]=="Cylinder" then
  1702. Mesh=Thing[1].Mesh
  1703. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1704. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1705. elseif Thing[2]=="Blood" then
  1706. Mesh=Thing[7]
  1707. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1708. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1709. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1710. elseif Thing[2]=="Elec" then
  1711. Mesh=Thing[1].Mesh
  1712. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1713. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1714. elseif Thing[2]=="Disappear" then
  1715. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1716. end
  1717. else
  1718. Part.Parent=nil
  1719. table.remove(Effects2,e)
  1720. end
  1721. end
  1722. end
  1723. end
  1724. end
  1725. unanchor()
  1726. Humanoid.MaxHealth = "inf"
  1727. Humanoid.Health = "inf"
  1728. if Rooted == false then
  1729. Disable_Jump = false
  1730. Humanoid.WalkSpeed = Speed
  1731. elseif Rooted == true then
  1732. Disable_Jump = true
  1733. Humanoid.WalkSpeed = 0
  1734. end
  1735. end
  1736.  
  1737. --//=================================\\
  1738. --\\=================================//
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744. --//====================================================\\--
  1745. --|| END OF SCRIPT
  1746. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement