Advertisement
EdgyHedgehog

Creep FE

Sep 29th, 2018
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.66 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. --//====================================================\\--
  84. --|| CREATED BY SHACKLUSTER
  85. --\\====================================================//--
  86.  
  87.  
  88.  
  89. wait(0.2)
  90.  
  91.  
  92.  
  93. Player = owner
  94. PlayerGui = Player.PlayerGui
  95. Cam = workspace.CurrentCamera
  96. Backpack = Player.Backpack
  97. Character = Player.Character
  98. Humanoid = Character.Humanoid
  99. RootPart = Character["HumanoidRootPart"]
  100. Torso = Character["Torso"]
  101. Head = Character["Head"]
  102. RightArm = Character["Right Arm"]
  103. LeftArm = Character["Left Arm"]
  104. RightLeg = Character["Right Leg"]
  105. LeftLeg = Character["Left Leg"]
  106. RootJoint = RootPart["RootJoint"]
  107. Neck = Torso["Neck"]
  108. RightShoulder = Torso["Right Shoulder"]
  109. LeftShoulder = Torso["Left Shoulder"]
  110. RightHip = Torso["Right Hip"]
  111. LeftHip = Torso["Left Hip"]
  112. local sick = Instance.new("Sound",Character)
  113. sick.SoundId = "rbxassetid://815335430"
  114. sick.Looped = true
  115. sick.Pitch = 1
  116. sick.Volume = 2
  117. sick:Play()
  118. Humanoid.DisplayDistanceType = "None"
  119. script.Name = "CREEP"
  120.  
  121. IT = Instance.new
  122. CF = CFrame.new
  123. VT = Vector3.new
  124. RAD = math.rad
  125. C3 = Color3.new
  126. UD2 = UDim2.new
  127. BRICKC = BrickColor.new
  128. ANGLES = CFrame.Angles
  129. EULER = CFrame.fromEulerAnglesXYZ
  130. COS = math.cos
  131. ACOS = math.acos
  132. SIN = math.sin
  133. ASIN = math.asin
  134. ABS = math.abs
  135. MRANDOM = math.random
  136. FLOOR = math.floor
  137.  
  138. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  139. local NEWMESH = IT(MESH)
  140. if MESH == "SpecialMesh" then
  141. NEWMESH.MeshType = MESHTYPE
  142. if MESHID ~= "nil" and MESHID ~= "" then
  143. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  144. end
  145. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  146. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  147. end
  148. end
  149. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  150. NEWMESH.Scale = SCALE
  151. NEWMESH.Parent = PARENT
  152. return NEWMESH
  153. end
  154.  
  155. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  156. local NEWPART = IT("Part")
  157. NEWPART.formFactor = FORMFACTOR
  158. NEWPART.Reflectance = REFLECTANCE
  159. NEWPART.Transparency = TRANSPARENCY
  160. NEWPART.CanCollide = false
  161. NEWPART.Locked = true
  162. NEWPART.Anchored = true
  163. if ANCHOR == false then
  164. NEWPART.Anchored = false
  165. end
  166. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  167. NEWPART.Name = NAME
  168. NEWPART.Size = SIZE
  169. NEWPART.Position = Torso.Position
  170. NEWPART.Material = MATERIAL
  171. NEWPART:BreakJoints()
  172. NEWPART.Parent = PARENT
  173. return NEWPART
  174. end
  175.  
  176. --//=================================\\
  177. --|| CUSTOMIZATION
  178. --\\=================================//
  179.  
  180. Player_Size = 2 --Size of the player.
  181. Animation_Speed = 3
  182. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  183.  
  184. local Speed = 16
  185. local Effects2 = {}
  186.  
  187. --//=================================\\
  188. --|| END OF CUSTOMIZATION
  189. --\\=================================//
  190.  
  191. local function weldBetween(a, b)
  192. local weldd = Instance.new("ManualWeld")
  193. weldd.Part0 = a
  194. weldd.Part1 = b
  195. weldd.C0 = CFrame.new()
  196. weldd.C1 = b.CFrame:inverse() * a.CFrame
  197. weldd.Parent = a
  198. return weldd
  199. end
  200.  
  201. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  202. if TYPE == "Gem" then
  203. local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  204. acs.Anchored = false
  205. acs.CanCollide = false
  206. acs.CFrame = PART.CFrame
  207. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  208. weldBetween(PART,acs)
  209. elseif TYPE == "Skull" then
  210. local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  211. acs.Anchored = false
  212. acs.CanCollide = false
  213. acs.CFrame = PART.CFrame
  214. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  215. weldBetween(PART,acs)
  216. elseif TYPE == "Eye" then
  217. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  218. acs.Anchored = false
  219. acs.CanCollide = false
  220. acs.CFrame = PART.CFrame
  221. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  222. weldBetween(PART,acs)
  223. end
  224. end
  225.  
  226. --//=================================\\
  227. --|| USEFUL VALUES
  228. --\\=================================//
  229.  
  230. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  231. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  232. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  233. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  234. local CHANGEDEFENSE = 0
  235. local CHANGEDAMAGE = 0
  236. local CHANGEMOVEMENT = 0
  237. local ANIM = "Idle"
  238. local ATTACK = false
  239. local EQUIPPED = false
  240. local HOLD = false
  241. local COMBO = 1
  242. local Rooted = false
  243. local SINE = 0
  244. local KEYHOLD = false
  245. local CHANGE = 2 / Animation_Speed
  246. local WALKINGANIM = false
  247. local WALK = 0
  248. local VALUE1 = false
  249. local VALUE2 = false
  250. local ROBLOXIDLEANIMATION = IT("Animation")
  251. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  252. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  253. --ROBLOXIDLEANIMATION.Parent = Humanoid
  254. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  255. WEAPONGUI.Name = "Weapon GUI"
  256. local Weapon = IT("Model")
  257. Weapon.Name = "Adds"
  258. local Effects = IT("Folder", Weapon)
  259. Effects.Name = "Effects"
  260. local ANIMATOR = Humanoid.Animator
  261. local ANIMATE = Character.Animate
  262. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  263. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  264. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  265. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  266. local UNANCHOR = true
  267. local TAUNTS = {"368794227","368794903","368794985"}
  268.  
  269. local SKILLTEXTCOLOR = C3(0,0,0)
  270.  
  271. --//=================================\\
  272. --\\=================================//
  273.  
  274.  
  275. --//=================================\\
  276. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  277. --\\=================================//
  278.  
  279. ArtificialHB = Instance.new("BindableEvent", script)
  280. ArtificialHB.Name = "ArtificialHB"
  281.  
  282. script:WaitForChild("ArtificialHB")
  283.  
  284. frame = Frame_Speed
  285. tf = 0
  286. allowframeloss = false
  287. tossremainder = false
  288. lastframe = tick()
  289. script.ArtificialHB:Fire()
  290.  
  291. game:GetService("RunService").Heartbeat:connect(function(s, p)
  292. tf = tf + s
  293. if tf >= frame then
  294. if allowframeloss then
  295. script.ArtificialHB:Fire()
  296. lastframe = tick()
  297. else
  298. for i = 1, math.floor(tf / frame) do
  299. script.ArtificialHB:Fire()
  300. end
  301. lastframe = tick()
  302. end
  303. if tossremainder then
  304. tf = 0
  305. else
  306. tf = tf - frame * math.floor(tf / frame)
  307. end
  308. end
  309. end)
  310.  
  311. --//=================================\\
  312. --\\=================================//
  313.  
  314.  
  315.  
  316.  
  317.  
  318. --//=================================\\
  319. --|| SOME FUNCTIONS
  320. --\\=================================//
  321.  
  322. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  323. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  324. end
  325.  
  326. function PositiveAngle(NUMBER)
  327. if NUMBER >= 0 then
  328. NUMBER = 0
  329. end
  330. return NUMBER
  331. end
  332.  
  333. function NegativeAngle(NUMBER)
  334. if NUMBER <= 0 then
  335. NUMBER = 0
  336. end
  337. return NUMBER
  338. end
  339.  
  340. function Swait(NUMBER)
  341. if NUMBER == 0 or NUMBER == nil then
  342. ArtificialHB.Event:wait()
  343. else
  344. for i = 1, NUMBER do
  345. ArtificialHB.Event:wait()
  346. end
  347. end
  348. end
  349.  
  350. function QuaternionFromCFrame(cf)
  351. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  352. local trace = m00 + m11 + m22
  353. if trace > 0 then
  354. local s = math.sqrt(1 + trace)
  355. local recip = 0.5 / s
  356. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  357. else
  358. local i = 0
  359. if m11 > m00 then
  360. i = 1
  361. end
  362. if m22 > (i == 0 and m00 or m11) then
  363. i = 2
  364. end
  365. if i == 0 then
  366. local s = math.sqrt(m00 - m11 - m22 + 1)
  367. local recip = 0.5 / s
  368. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  369. elseif i == 1 then
  370. local s = math.sqrt(m11 - m22 - m00 + 1)
  371. local recip = 0.5 / s
  372. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  373. elseif i == 2 then
  374. local s = math.sqrt(m22 - m00 - m11 + 1)
  375. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  376. end
  377. end
  378. end
  379.  
  380. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  381. local xs, ys, zs = x + x, y + y, z + z
  382. local wx, wy, wz = w * xs, w * ys, w * zs
  383. local xx = x * xs
  384. local xy = x * ys
  385. local xz = x * zs
  386. local yy = y * ys
  387. local yz = y * zs
  388. local zz = z * zs
  389. 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))
  390. end
  391.  
  392. function QuaternionSlerp(a, b, t)
  393. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  394. local startInterp, finishInterp;
  395. if cosTheta >= 0.0001 then
  396. if (1 - cosTheta) > 0.0001 then
  397. local theta = ACOS(cosTheta)
  398. local invSinTheta = 1 / SIN(theta)
  399. startInterp = SIN((1 - t) * theta) * invSinTheta
  400. finishInterp = SIN(t * theta) * invSinTheta
  401. else
  402. startInterp = 1 - t
  403. finishInterp = t
  404. end
  405. else
  406. if (1 + cosTheta) > 0.0001 then
  407. local theta = ACOS(-cosTheta)
  408. local invSinTheta = 1 / SIN(theta)
  409. startInterp = SIN((t - 1) * theta) * invSinTheta
  410. finishInterp = SIN(t * theta) * invSinTheta
  411. else
  412. startInterp = t - 1
  413. finishInterp = t
  414. end
  415. end
  416. 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
  417. end
  418.  
  419. function Clerp(a, b, t)
  420. local qa = {QuaternionFromCFrame(a)}
  421. local qb = {QuaternionFromCFrame(b)}
  422. local ax, ay, az = a.x, a.y, a.z
  423. local bx, by, bz = b.x, b.y, b.z
  424. local _t = 1 - t
  425. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  426. end
  427.  
  428. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  429. local frame = IT("Frame")
  430. frame.BackgroundTransparency = TRANSPARENCY
  431. frame.BorderSizePixel = BORDERSIZEPIXEL
  432. frame.Position = POSITION
  433. frame.Size = SIZE
  434. frame.BackgroundColor3 = COLOR
  435. frame.BorderColor3 = BORDERCOLOR
  436. frame.Name = NAME
  437. frame.Parent = PARENT
  438. return frame
  439. end
  440.  
  441. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  442. local label = IT("TextLabel")
  443. label.BackgroundTransparency = 1
  444. label.Size = UD2(1, 0, 1, 0)
  445. label.Position = UD2(0, 0, 0, 0)
  446. label.TextColor3 = TEXTCOLOR
  447. label.TextStrokeTransparency = STROKETRANSPARENCY
  448. label.TextTransparency = TRANSPARENCY
  449. label.FontSize = TEXTFONTSIZE
  450. label.Font = TEXTFONT
  451. label.BorderSizePixel = BORDERSIZEPIXEL
  452. label.TextScaled = false
  453. label.Text = TEXT
  454. label.Name = NAME
  455. label.Parent = PARENT
  456. return label
  457. end
  458.  
  459. function NoOutlines(PART)
  460. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  461. end
  462.  
  463.  
  464. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  465. local NEWWELD = IT(TYPE)
  466. NEWWELD.Part0 = PART0
  467. NEWWELD.Part1 = PART1
  468. NEWWELD.C0 = C0
  469. NEWWELD.C1 = C1
  470. NEWWELD.Parent = PARENT
  471. return NEWWELD
  472. end
  473.  
  474. function CreateSound(ID, PARENT, VOLUME, PITCH)
  475. local NEWSOUND = nil
  476. coroutine.resume(coroutine.create(function()
  477. NEWSOUND = IT("Sound", PARENT)
  478. NEWSOUND.Volume = VOLUME
  479. NEWSOUND.Pitch = PITCH
  480. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  481. Swait()
  482. NEWSOUND:play()
  483. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  484. end))
  485. return NEWSOUND
  486. end
  487.  
  488. function CFrameFromTopBack(at, top, back)
  489. local right = top:Cross(back)
  490. 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)
  491. end
  492.  
  493. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  494. local wave = CreatePart(3, Effects, "Neon", 0, 0.9, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  495. local mesh = IT("SpecialMesh",wave)
  496. mesh.MeshType = "Sphere"
  497. mesh.Scale = SIZE
  498. mesh.Offset = VT(0,0,0)
  499. wave.CFrame = CFRAME
  500. coroutine.resume(coroutine.create(function(PART)
  501. for i = 1, WAIT do
  502. Swait()
  503. mesh.Scale = mesh.Scale + GROW
  504. wave.Transparency = wave.Transparency + (0.1/WAIT)
  505. if wave.Transparency > 0.99 then
  506. wave:remove()
  507. end
  508. end
  509. end))
  510. end
  511.  
  512. function MakeForm(PART,TYPE)
  513. if TYPE == "Cyl" then
  514. local MSH = IT("CylinderMesh",PART)
  515. elseif TYPE == "Ball" then
  516. local MSH = IT("SpecialMesh",PART)
  517. MSH.MeshType = "Sphere"
  518. elseif TYPE == "Wedge" then
  519. local MSH = IT("SpecialMesh",PART)
  520. MSH.MeshType = "Wedge"
  521. end
  522. end
  523.  
  524. function CheckTableForString(Table, String)
  525. for i, v in pairs(Table) do
  526. if string.find(string.lower(String), string.lower(v)) then
  527. return true
  528. end
  529. end
  530. return false
  531. end
  532.  
  533. function CheckIntangible(Hit)
  534. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  535. if Hit and Hit.Parent then
  536. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  537. return true
  538. end
  539. end
  540. return false
  541. end
  542.  
  543. Debris = game:GetService("Debris")
  544.  
  545. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  546. local Direction = CFrame.new(StartPos, Vec).lookVector
  547. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  548. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  549. if RayHit and CheckIntangible(RayHit) then
  550. if DelayIfHit then
  551. wait()
  552. end
  553. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  554. end
  555. return RayHit, RayPos, RayNormal
  556. end
  557.  
  558. function turnto(position)
  559. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  560. end
  561.  
  562. --//=================================\\
  563. --|| SPEECH
  564. --\\=================================//
  565.  
  566. function chatfunc(text,waitt)
  567. local chat = coroutine.wrap(function()
  568. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  569. Character:FindFirstChild("TalkingBillBoard"):destroy()
  570. end
  571. local naeeym2 = Instance.new("BillboardGui",Character)
  572. naeeym2.Size = UDim2.new(0,100,0,40)
  573. naeeym2.StudsOffset = Vector3.new(0,5,0)
  574. naeeym2.Adornee = Character.Head
  575. naeeym2.Name = "TalkingBillBoard"
  576. naeeym2.AlwaysOnTop = true
  577. local tecks2 = Instance.new("TextLabel",naeeym2)
  578. tecks2.BackgroundTransparency = 1
  579. tecks2.BorderSizePixel = 0
  580. tecks2.Text = ""
  581. tecks2.Font = "SciFi"
  582. tecks2.TextSize = 30
  583. tecks2.TextStrokeTransparency = 1
  584. tecks2.TextColor3 = SKILLTEXTCOLOR
  585. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  586. tecks2.Size = UDim2.new(1,0,0.5,0)
  587. for i = 1,string.len(text),1 do
  588. tecks2.Text = string.sub(text,1,i)
  589. Swait()
  590. end
  591. wait(waitt)
  592. coroutine.resume(coroutine.create(function()
  593. for i = 1, 10 do
  594. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  595. Swait()
  596. end
  597. naeeym2:Destroy()
  598. end))
  599. end)
  600. chat()
  601. end
  602.  
  603. --//=================================\\
  604. --|| WEAPON CREATION
  605. --\\=================================//
  606.  
  607. if Player_Size ~= 1 then
  608. RootPart.Size = RootPart.Size * Player_Size
  609. Torso.Size = Torso.Size * Player_Size
  610. Head.Size = Head.Size * Player_Size
  611. RightArm.Size = RightArm.Size * Player_Size
  612. LeftArm.Size = LeftArm.Size * Player_Size
  613. RightLeg.Size = RightLeg.Size * Player_Size
  614. LeftLeg.Size = LeftLeg.Size * Player_Size
  615. RootJoint.Parent = RootPart
  616. Neck.Parent = Torso
  617. RightShoulder.Parent = Torso
  618. LeftShoulder.Parent = Torso
  619. RightHip.Parent = Torso
  620. LeftHip.Parent = Torso
  621.  
  622. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  623. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  624. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  625. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  626. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  627. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  628. --if Disable_Moving_Arms == false then
  629. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  630. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  631. --else
  632. --RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  633. --LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  634. --end
  635. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  636. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  637. 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))
  638. 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))
  639. end
  640.  
  641. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  642. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  643. MakeForm(part,"Ball")
  644. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  645. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  646. MakeForm(part,"Ball")
  647. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  648. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  649. MakeForm(part,"Ball")
  650. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
  651. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  652. MakeForm(part,"Ball")
  653. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
  654. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,0.6) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  655. MakeForm(part,"Ball")
  656. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
  657. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  658. MakeForm(part,"Ball")
  659. local CLAW1 = part
  660. CLAW1.CanCollide = true
  661. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  662. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(-0.50,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  663. MakeForm(part,"Ball")
  664.  
  665. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  666. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  667. MakeForm(part,"Ball")
  668. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  669. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  670. MakeForm(part,"Ball")
  671. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  672. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  673. MakeForm(part,"Ball")
  674. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
  675. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  676. MakeForm(part,"Ball")
  677. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
  678. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,0.6) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  679. MakeForm(part,"Ball")
  680. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
  681. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  682. MakeForm(part,"Ball")
  683. local CLAW2 = part
  684. CLAW2.CanCollide = true
  685. local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
  686. local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(0.50,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  687. MakeForm(part,"Ball")
  688.  
  689. for _, c in pairs(Weapon:GetChildren()) do
  690. if c.ClassName == "Part" then
  691. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  692. end
  693. end
  694.  
  695. Weapon.Parent = Character
  696.  
  697. Humanoid.Died:connect(function()
  698. ATTACK = true
  699. end)
  700.  
  701. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  702. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  703. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  704.  
  705. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shriek", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  706. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Devour", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  707. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Neck snap", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  708.  
  709. --//=================================\\
  710. --|| DAMAGE FUNCTIONS
  711. --\\=================================//
  712.  
  713. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  714. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  715. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  716. local BODYGYRO = IT("BodyGyro", STATPART)
  717. local BODYPOSITION = IT("BodyPosition", STATPART)
  718. BODYPOSITION.P = 2000
  719. BODYPOSITION.D = 100
  720. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  721. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  722. game:GetService("Debris"):AddItem(STATPART ,5)
  723. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  724. BILLBOARDGUI.Adornee = STATPART
  725. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  726. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  727. BILLBOARDGUI.AlwaysOnTop = false
  728. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  729. TEXTLABEL.BackgroundTransparency = 1
  730. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  731. TEXTLABEL.Text = TEXT
  732. TEXTLABEL.Font = "SciFi"
  733. TEXTLABEL.FontSize="Size42"
  734. TEXTLABEL.TextColor3 = COLOR
  735. TEXTLABEL.TextStrokeTransparency = 1
  736. TEXTLABEL.TextScaled = true
  737. TEXTLABEL.TextWrapped = true
  738. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  739. if LABELTYPE == "Normal" then
  740. for i = 1, 30 do
  741. Swait()
  742. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  743. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  744. end
  745. elseif LABELTYPE == "Debuff" then
  746. for i = 1, 30 do
  747. Swait()
  748. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  749. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  750. end
  751. elseif LABELTYPE == "Shock" then
  752. local ORIGIN = STATPART.Position
  753. for i = 1, 30 do
  754. Swait()
  755. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  756. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  757. end
  758. end
  759. THEPART.Parent = nil
  760. end),STATPART, BODYPOSITION, TEXTLABEL)
  761. end
  762.  
  763. --//=================================\\
  764. --|| DAMAGING
  765. --\\=================================//
  766.  
  767. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  768. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  769. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  770. local dmg = math.random(min,max)
  771. if humanoid.Health > 0 then
  772. if beserk == true then
  773. humanoid.Health = 0
  774. else
  775. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], hit, 3, MRANDOM(7, 12) / 10)
  776. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  777. if math.random(1,100) < critrate+1 then
  778. humanoid.Health = humanoid.Health - dmg*critmultiplier
  779. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  780. else
  781. humanoid.Health = humanoid.Health - dmg
  782. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  783. end
  784. local defence = Instance.new("BoolValue",hit.Parent)
  785. defence.Name = ("HitBy"..Player.Name)
  786. game:GetService("Debris"):AddItem(defence, 0.5)
  787. end
  788. end
  789. end
  790. end
  791.  
  792. function AoEStun(POS,RANGE,LAST)
  793. for i,v in ipairs(workspace:GetChildren()) do
  794. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  795. local body = v:GetChildren()
  796. for part = 1, #body do
  797. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  798. if(body[part].Position - POS).Magnitude < RANGE then
  799. if v.ClassName == "Model" then
  800. if v:FindFirstChild("Humanoid") then
  801. if v.Humanoid.Health ~= 0 then
  802. Stun(v.Humanoid,LAST)
  803. local defence = Instance.new("BoolValue",v)
  804. defence.Name = ("StunnedBy"..Player.Name)
  805. game:GetService("Debris"):AddItem(defence, 0.1)
  806. end
  807. end
  808. end
  809. end
  810. end
  811. end
  812. end
  813. end
  814. end
  815.  
  816. function Stun(HUMANOID,LAST)
  817. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  818. HUMANOID.PlatformStand = true
  819. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  820. defence.Name = ("StunnedBy"..Player.Name)
  821. game:GetService("Debris"):AddItem(defence, LAST)
  822. if HUMANOID.Parent:FindFirstChild("Head") then
  823. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  824. end
  825. coroutine.resume(coroutine.create(function()
  826. Swait(LAST*50)
  827. HUMANOID.PlatformStand = false
  828. end))
  829. end
  830. end
  831.  
  832. --//=================================\\
  833. --|| ATTACK FUNCTIONS AND STUFF
  834. --\\=================================//
  835.  
  836. function AttackTemplate()
  837. ATTACK = true
  838. Rooted = false
  839. for i=0, 1, 0.1 / Animation_Speed do
  840. Swait()
  841. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  842. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  843. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  844. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  845. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  846. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  847. end
  848. ATTACK = false
  849. Rooted = false
  850. end
  851.  
  852. function Strike()
  853. ATTACK = true
  854. Rooted = false
  855. CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Head, 3, 2)
  856. for i=0, 0.5, 0.1 / Animation_Speed do
  857. Swait()
  858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  859. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  862. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed)
  863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed)
  864. end
  865. local HIT1 = CLAW1.Touched:Connect(function(hit)
  866. dealdamage(hit,25,65,6,false,5,2)
  867. end)
  868. local HIT2 = CLAW2.Touched:Connect(function(hit)
  869. dealdamage(hit,25,65,6,false,5,2)
  870. end)
  871. for i=0, 0.5, 0.1 / Animation_Speed do
  872. Swait()
  873. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  874. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  875. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15*2, 0.5*2, -1) * ANGLES(RAD(55), RAD(75), RAD(-22)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  876. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, 0.5*2, -1) * ANGLES(RAD(55), RAD(-75), RAD(22)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  877. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-5)), 0.75 / Animation_Speed)
  878. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-25)), 0.75 / Animation_Speed)
  879. end
  880. HIT1:disconnect()
  881. HIT2:disconnect()
  882. ATTACK = false
  883. Rooted = false
  884. end
  885.  
  886. function Shriek()
  887. ATTACK = true
  888. Rooted = false
  889. for i=0, 2.5, 0.1 / Animation_Speed do
  890. Swait()
  891. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  892. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  893. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  894. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  895. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  896. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  897. end
  898. Rooted = true
  899. CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Effects, 10, 1)
  900. for i=0, 4, 0.1 / Animation_Speed do
  901. Swait()
  902. AoEStun(Head.Position,40,12)
  903. MagicSphere(VT(0,0,0),5,Head.CFrame,"Pearl",VT(15,15,15))
  904. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4*2, -0.65*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(55), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  905. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-35+MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,1))), 1)
  906. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(-15), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  907. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(-15), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  908. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(15)), 0.75 / Animation_Speed)
  909. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-55)), 0.75 / Animation_Speed)
  910. end
  911. ATTACK = false
  912. Rooted = false
  913. end
  914.  
  915. local asd = Instance.new("ParticleEmitter")
  916. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  917. asd.LightEmission = .1
  918. asd.Size = NumberSequence.new(0.2)
  919. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  920. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  921. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  922. asd.Transparency = bbb
  923. asd.Size = aaa
  924. asd.ZOffset = .9
  925. asd.Acceleration = Vector3.new(0, -15, 0)
  926. asd.LockedToPart = false
  927. asd.EmissionDirection = "Back"
  928. asd.Lifetime = NumberRange.new(1, 2)
  929. asd.Rotation = NumberRange.new(-100, 100)
  930. asd.RotSpeed = NumberRange.new(-100, 100)
  931. asd.Speed = NumberRange.new(2,6)
  932. asd.Enabled = false
  933. asd.VelocitySpread = 5
  934.  
  935. function getbloody(victim,amount)
  936. local PART = IT("Part",Effects)
  937. PART.Transparency = 1
  938. PART.Size = victim.Size
  939. PART.Anchored = true
  940. PART.CanCollide = false
  941. PART.CFrame = CF(victim.Position,victim.CFrame*CF(0,1,0).p)
  942. local HITPLAYERSOUNDS = {"356551938","264486467"}
  943. Debris:AddItem(PART,5)
  944. local prtcl = asd:Clone()
  945. prtcl.Parent = PART
  946. prtcl:Emit(amount*10)
  947. end
  948.  
  949. function Devour()
  950. ATTACK = true
  951. Rooted = false
  952. local TORS = nil
  953. local WELD = nil
  954. local HIT1 = CLAW1.Touched:Connect(function(hit)
  955. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  956. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  957. if TORS ~= nil then
  958. UNANCHOR = false
  959. Rooted = true
  960. RootPart.Anchored = true
  961. WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
  962. end
  963. end
  964. end)
  965. for i=1, 45 do
  966. Swait()
  967. if TORS ~= nil then
  968. break
  969. end
  970. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  971. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  974. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  975. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  976. end
  977. HIT1:disconnect()
  978. if TORS ~= nil then
  979. for i=0, 2, 0.1 / Animation_Speed do
  980. Swait()
  981. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  982. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  983. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  984. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  985. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  986. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  987. end
  988. for i=0, 0.3, 0.1 / Animation_Speed do
  989. Swait()
  990. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1.5 / Animation_Speed)
  991. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1.15 / Animation_Speed)
  992. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, -1, -1.5) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  993. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, -1, -1.2) * ANGLES(RAD(160), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1.15 / Animation_Speed)
  994. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1.15 / Animation_Speed)
  995. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1.15 / Animation_Speed)
  996. end
  997. local HITPLAYERSOUNDS2 = {"356551938","264486467"}
  998. if TORS ~= nil then
  999. if TORS.Parent:FindFirstChild("Head") then
  1000. CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], Head, 1, (math.random(8,12)/10))
  1001. CreateSound("230346233", Head, 10, (math.random(5,7)/10))
  1002. getbloody(TORS,4)
  1003. TORS.Parent.Head:remove()
  1004. TORS.Parent:remove()
  1005. for i=0, 1, 0.1 / Animation_Speed do
  1006. Swait()
  1007. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1.5 / Animation_Speed)
  1008. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1.15 / Animation_Speed)
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, -1, -1.2) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, -1, -1.2) * ANGLES(RAD(160), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1.15 / Animation_Speed)
  1011. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1.15 / Animation_Speed)
  1012. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1.15 / Animation_Speed)
  1013. end
  1014. end
  1015. end
  1016. UNANCHOR = true
  1017. end
  1018. ATTACK = false
  1019. Rooted = false
  1020. end
  1021.  
  1022. function Snap()
  1023. ATTACK = true
  1024. Rooted = false
  1025. local TORS = nil
  1026. local WELD = nil
  1027. local HIT1 = CLAW1.Touched:Connect(function(hit)
  1028. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Parent ~= Effects then
  1029. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1030. if TORS ~= nil then
  1031. UNANCHOR = false
  1032. Rooted = true
  1033. RootPart.Anchored = true
  1034. WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
  1035. end
  1036. end
  1037. end)
  1038. for i=1, 45 do
  1039. Swait()
  1040. if TORS ~= nil then
  1041. break
  1042. end
  1043. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1044. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1045. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1047. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1048. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1049. end
  1050. HIT1:disconnect()
  1051. if TORS ~= nil then
  1052. local CLONE = IT("Model",Weapon)
  1053. CLONE.Name = "Corpse"
  1054. for i=0, 2, 0.1 / Animation_Speed do
  1055. Swait()
  1056. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1057. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1058. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1059. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1060. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1061. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1062. end
  1063. for i=0, 2, 0.1 / Animation_Speed do
  1064. Swait()
  1065. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1066. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1067. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1068. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.5) * ANGLES(RAD(80), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1069. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1070. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1071. end
  1072. for i=0, 3, 0.1 / Animation_Speed do
  1073. Swait()
  1074. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1075. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1076. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1077. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(70), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1078. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1079. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1080. end
  1081. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1082. local DummyHead = nil
  1083. local q = TORS.Parent:GetChildren()
  1084. for i = 1,#q do
  1085. if q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then
  1086. q[i].Parent = CLONE
  1087. if q[i].ClassName == "Humanoid" then
  1088. q[i].PlatformStand = true
  1089. end
  1090. if q[i].Name == "Head" then
  1091. DummyHead = CLONE.Head:Clone()
  1092. q[i]:ClearAllChildren()
  1093. q[i].Transparency = 1
  1094. end
  1095. else
  1096. q[i]:remove()
  1097. end
  1098. end
  1099. local TORS2 = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso")
  1100. DummyHead.Parent = Effects
  1101. local WELD1 = CreateWeldOrSnapOrMotor("Weld", DummyHead, LeftArm, DummyHead, CF(0,-2.5,0) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
  1102. local WELD2 = CreateWeldOrSnapOrMotor("Weld", TORS2, RightArm, TORS2, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
  1103. local HITPLAYERSOUNDS2 = {"356551938","264486467"}
  1104. CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], TORS2, 1, (math.random(8,12)/10))
  1105. getbloody(DummyHead,5)
  1106. for i=0, 3, 0.1 / Animation_Speed do
  1107. Swait()
  1108. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1109. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1110. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1111. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(120), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1112. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1113. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1114. end
  1115. for i=0, 1, 0.1 / Animation_Speed do
  1116. Swait()
  1117. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1118. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1119. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1120. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1121. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1122. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1123. end
  1124. WELD1:remove()
  1125. for i=0, 0.5, 0.1 / Animation_Speed do
  1126. Swait()
  1127. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1128. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1129. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1130. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1131. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1132. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1133. end
  1134. local GROWLS = {"368795088","368795352","368795492","368795580"}
  1135. CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10))
  1136. repeat
  1137. Swait()
  1138. turnto(Mouse.Hit.p)
  1139. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1140. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1141. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1142. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1143. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1144. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1145. until HOLD == true
  1146. WELD2:remove()
  1147. local bv = Instance.new("BodyVelocity")
  1148. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1149. bv.velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300
  1150. bv.Parent = TORS2
  1151. bv.Name = "MOVE"
  1152. coroutine.resume(coroutine.create(function()
  1153. local HIT1 = TORS2.Touched:Connect(function(hit)
  1154. dealdamage(hit,25,65,3,false,5,2)
  1155. end)
  1156. Swait(2)
  1157. HIT1:disconnect()
  1158. end))
  1159. Debris:AddItem(bv,0.2)
  1160. TORS2.Velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300
  1161. for i=0, 1, 0.1 / Animation_Speed do
  1162. Swait()
  1163. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1)
  1164. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1)
  1165. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, 0) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1)
  1166. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1)
  1167. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1)
  1168. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1)
  1169. end
  1170. end
  1171. UNANCHOR = true
  1172. ATTACK = false
  1173. Rooted = false
  1174. end
  1175.  
  1176. --//=================================\\
  1177. --|| ASSIGN THINGS TO KEYS
  1178. --\\=================================//
  1179.  
  1180. function MouseDown(Mouse)
  1181. HOLD = true
  1182. if ATTACK == false then
  1183. Strike()
  1184. end
  1185. end
  1186.  
  1187. function MouseUp(Mouse)
  1188. HOLD = false
  1189. end
  1190.  
  1191. function KeyDown(Key)
  1192. KEYHOLD = true
  1193. if Key == "z" and ATTACK == false then
  1194. Shriek()
  1195. end
  1196.  
  1197. if Key == "b" and ATTACK == false then
  1198. Devour()
  1199. end
  1200.  
  1201. if Key == "c" and ATTACK == false then
  1202. Snap()
  1203. end
  1204.  
  1205. if Key == "q" and ATTACK == false then
  1206. if VALUE1 == false then
  1207. VALUE1 = true
  1208. Speed = 75
  1209. CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Effects, 10, 2)
  1210. elseif VALUE1 == true then
  1211. VALUE1 = false
  1212. Speed = 20
  1213. local GROWLS = {"368795088","368795352","368795492","368795580"}
  1214. CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10))
  1215. end
  1216. end
  1217.  
  1218. if Key == "t" and ATTACK == false then
  1219. local GROWLS = {"368795088","368795352","368795492","368795580"}
  1220. CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10))
  1221. end
  1222. end
  1223.  
  1224. function KeyUp(Key)
  1225. KEYHOLD = false
  1226. end
  1227.  
  1228. Mouse.Button1Down:connect(function(NEWKEY)
  1229. MouseDown(NEWKEY)
  1230. end)
  1231. Mouse.Button1Up:connect(function(NEWKEY)
  1232. MouseUp(NEWKEY)
  1233. end)
  1234. Mouse.KeyDown:connect(function(NEWKEY)
  1235. KeyDown(NEWKEY)
  1236. end)
  1237. Mouse.KeyUp:connect(function(NEWKEY)
  1238. KeyUp(NEWKEY)
  1239. end)
  1240.  
  1241. --//=================================\\
  1242. --\\=================================//
  1243.  
  1244.  
  1245. function unanchor()
  1246. if UNANCHOR == true then
  1247. g = Character:GetChildren()
  1248. for i = 1, #g do
  1249. if g[i].ClassName == "Part" then
  1250. g[i].Anchored = false
  1251. end
  1252. end
  1253. end
  1254. end
  1255.  
  1256.  
  1257. --//=================================\\
  1258. --|| WRAP THE WHOLE SCRIPT UP
  1259. --\\=================================//
  1260.  
  1261. Humanoid.Changed:connect(function(Jump)
  1262. if Jump == "Jump" and (Disable_Jump == true) then
  1263. Humanoid.Jump = false
  1264. end
  1265. end)
  1266.  
  1267. createbodypart("Eye","Really red",Head,VT(0, 0.6, -1.2),VT(12,10,4))
  1268. createbodypart("Eye","Really black",Head,VT(0, 0.6, -1.2),VT(7,9,5))
  1269.  
  1270. Speed = 20
  1271.  
  1272. while true do
  1273. Swait()
  1274. ANIMATE.Parent = nil
  1275. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1276. IDLEANIMATION:Play()
  1277. SINE = SINE + CHANGE
  1278. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1279. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1280. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1281. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1282. local WALKSPEEDVALUE = 5
  1283. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1284. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1285. 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)
  1286. 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)
  1287. 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)
  1288. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1289. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1290. 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)
  1291. 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)
  1292. 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)
  1293. end
  1294. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1295. ANIM = "Jump"
  1296. if ATTACK == false then
  1297. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1298. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1299. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(130), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1300. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(130), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1301. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1302. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1303. end
  1304. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil and ATTACK == false then
  1305. ANIM = "Fall"
  1306. if ATTACK == false then
  1307. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1308. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1309. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1310. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1311. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1312. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1313. end
  1314. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1315. ANIM = "Idle"
  1316. if ATTACK == false then
  1317. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1318. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1319. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1320. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1321. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
  1322. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
  1323. if MRANDOM(1,35) == 1 then
  1324. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1)
  1325. end
  1326. end
  1327. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1328. ANIM = "Walk"
  1329. WALK = WALK + 1 / Animation_Speed
  1330. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1331. WALK = 0
  1332. if WALKINGANIM == true then
  1333. WALKINGANIM = false
  1334. elseif WALKINGANIM == false then
  1335. WALKINGANIM = true
  1336. end
  1337. end
  1338. --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)
  1339. --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)
  1340. if ATTACK == false then
  1341. if VALUE1 == false then
  1342. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1343. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1344. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15+60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1345. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1346. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(-15), RAD(25)), 0.15 / Animation_Speed)
  1347. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(15), RAD(-25)), 0.15 / Animation_Speed)
  1348. elseif VALUE1 == true then
  1349. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1350. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-55 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1351. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(35), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1352. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(35), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1353. RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(-15), RAD(65)), 0.15 / Animation_Speed)
  1354. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(15), RAD(-65)), 0.15 / Animation_Speed)
  1355. end
  1356. end
  1357. end
  1358. if #Effects2>0 then
  1359. for e=1,#Effects2 do
  1360. if Effects2[e]~=nil then
  1361. local Thing=Effects2[e]
  1362. if Thing~=nil then
  1363. local Part=Thing[1]
  1364. local Mode=Thing[2]
  1365. local Delay=Thing[3]
  1366. local IncX=Thing[4]
  1367. local IncY=Thing[5]
  1368. local IncZ=Thing[6]
  1369. local Part2=Thing[8]
  1370. if Thing[1].Transparency<=1 then
  1371. if Thing[2]=="Block1" then
  1372. Thing[1].CFrame=Thing[1].CFrame
  1373. Mesh=Thing[1].Mesh
  1374. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1375. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1376. elseif Thing[2]=="Cylinder" then
  1377. Mesh=Thing[1].Mesh
  1378. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1379. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1380. elseif Thing[2]=="Blood" then
  1381. Mesh=Thing[7]
  1382. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1383. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1384. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1385. elseif Thing[2]=="Elec" then
  1386. Mesh=Thing[1].Mesh
  1387. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1388. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1389. elseif Thing[2]=="Disappear" then
  1390. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1391. end
  1392. else
  1393. Part.Parent=nil
  1394. table.remove(Effects2,e)
  1395. end
  1396. end
  1397. end
  1398. end
  1399. end
  1400. unanchor()
  1401. Humanoid.MaxHealth = "inf"
  1402. Humanoid.Health = "inf"
  1403. if Rooted == false then
  1404. Disable_Jump = false
  1405. Humanoid.WalkSpeed = Speed
  1406. elseif Rooted == true then
  1407. Disable_Jump = true
  1408. Humanoid.WalkSpeed = 0
  1409. end
  1410. q = Character:GetChildren()
  1411. for u = 1, #q do
  1412. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1413. q[u]:remove()
  1414. elseif q[u].ClassName == "Shirt" then
  1415. q[u]:Destroy()
  1416. elseif q[u].ClassName == "Pants" then
  1417. q[u]:Destroy()
  1418. elseif q[u].ClassName == "CharacterMesh" then
  1419. q[u]:remove()
  1420. elseif q[u].ClassName == "ShirtGraphic" then
  1421. q[u]:remove()
  1422. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  1423. q[u].Color = Color3.new(0,0,0)
  1424. end
  1425. end
  1426. if Head:FindFirstChild("face") then
  1427. Head.face:remove()
  1428. end
  1429. Humanoid.Name = "REEE"
  1430. end
  1431.  
  1432. --//=================================\\
  1433. --\\=================================//
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439. --//====================================================\\--
  1440. --|| END OF SCRIPT
  1441. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement