Advertisement
AOM-GU-PRO

Templates

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