Advertisement
PierceTheCakeKeeper

Poisoned lance FE

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