Advertisement
Guest User

Untitled

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