Advertisement
Basykung7845

Test

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