Advertisement
GojiGaming1337

Untitled

May 30th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.64 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. char = Player.Character
  4. script.Name = "Banisher Gun V3 / 1"
  5. maincolor = BrickColor.new("Really red")
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. local rleg = char["Right Leg"]
  10. local hed = char.Head
  11. local torso = char.Torso
  12. local BC = char["Body Colors"]
  13. BC.HeadColor = BrickColor.new("Really black")
  14. BC.LeftArmColor = BrickColor.new("Really black")
  15. BC.LeftLegColor = BrickColor.new("Really black")
  16. BC.RightArmColor = BrickColor.new("Really black")
  17. BC.RightLegColor = BrickColor.new("Really black")
  18. BC.TorsoColor = BrickColor.new("Really black")
  19. --//====================================================\\--
  20. --|| CREATED BY SHACKLUSTER
  21. --\\====================================================//--
  22.  
  23.  
  24. for i,v in pairs(char:children()) do
  25. if v:IsA("Hat") then
  26. v:Destroy()
  27. end
  28. end
  29. for i,v in pairs(char:children()) do
  30. if v:IsA("Accessory") then
  31. v:Destroy()
  32. end
  33. end
  34. for i,v in pairs(char:children()) do
  35. if v:IsA("Hair") then
  36. v:Destroy()
  37. end
  38. end
  39. for i,v in pairs(char:children()) do
  40. if v:IsA("Shirt") then
  41. v:Destroy()
  42. end
  43. end
  44. for i,v in pairs(char:children()) do
  45. if v:IsA("Pants") then
  46. v:Destroy()
  47. end
  48. end
  49.  
  50. local dec2 = Instance.new("Decal", char)
  51. dec2.Face = "Front"
  52. dec2.Texture = "rbxassetid://363697252"
  53. dec2.Parent = char.Head
  54. char.Head.face.Transparency = 1
  55. char.Head.face.Texture = "http://www.roblox.com/asset/?id=0"
  56.  
  57. local eye12 = Instance.new("Part")
  58. eye12.Parent = char
  59. eye12.Size = Vector3.new(0.2, 0.2, 0.2)
  60. eye12.Archivable = true
  61. eye12.Transparency = 0
  62. eye12.Shape = "Ball"
  63. eye12.BrickColor = maincolor
  64. eye12.Material = "Neon"
  65. eye12.CanCollide = false
  66. local mesh2 = Instance.new("SpecialMesh",eye12)
  67. mesh2.MeshType = "Sphere"
  68. mesh2.Scale = Vector3.new(0.75, 1, 1)
  69. local weld1en2 = Instance.new("Weld")
  70. weld1en2.Parent = hed
  71. weld1en2.Part0 = hed
  72. weld1en2.Part1 = eye12
  73. weld1en2.C1 = CFrame.new(0.115, -0.19, 0.5475)
  74. local eye1 = Instance.new("Part")
  75. eye1.Parent = char
  76. eye1.Size = Vector3.new(0.2, 0.2, 0.2)
  77. eye1.Archivable = true
  78. eye1.Transparency = 0
  79. eye1.Shape = "Ball"
  80. eye1.BrickColor = maincolor
  81. eye1.Material = "Neon"
  82. eye1.CanCollide = false
  83. local mesh = Instance.new("SpecialMesh",eye1)
  84. mesh.MeshType = "Sphere"
  85. mesh.Scale = Vector3.new(0.75, 1, 1)
  86. local weld1en = Instance.new("Weld")
  87. weld1en.Parent = hed
  88. weld1en.Part0 = hed
  89. weld1en.Part1 = eye1
  90. weld1en.C1 = CFrame.new(-0.115, -0.19, 0.5475)
  91.  
  92. local top = Instance.new("Shirt")
  93. top.ShirtTemplate = "rbxassetid://165072697"
  94. top.Parent = Character
  95. top.Name = "Cloth"
  96. local bottom = Instance.new("Pants")
  97. bottom.PantsTemplate = "rbxassetid://131957434"
  98. bottom.Parent = Character
  99. bottom.Name = "Cloth"
  100.  
  101. Reaper2 = Instance.new("Model")
  102. Reaper2.Parent = Player.Character
  103. Reaper2.Name = "Reaper2"
  104. rh2 = Instance.new("Part")
  105. rh2.Parent = Reaper2
  106. rh2.BrickColor = maincolor
  107. rh2.Locked = true
  108. rh2.CanCollide = false
  109. mesh2 = Instance.new("SpecialMesh")
  110. rh2.formFactor = "Symmetric"
  111. mesh2.MeshType = "FileMesh"
  112. mesh2.MeshId = "http://www.roblox.com/asset/?id=259399186"
  113. mesh2.Parent = rh2
  114. local weld2 = Instance.new("Weld")
  115. weld2.Parent = rh2
  116. rh2.Transparency = 0
  117. weld2.Part0 = rh2
  118. weld2.Part1 = Player.Character.Head
  119. weld2.C0 = CFrame.new(-0.05, -0.05, -0.1025)*CFrame.Angles(0, 0, 0)
  120.  
  121. local orbe = Instance.new("Part")
  122. orbe.Parent = char
  123. orbe.Size = Vector3.new(0.2, 0.2, 0.2)
  124. orbe.Archivable = true
  125. orbe.Transparency = 1
  126. orbe.BrickColor = maincolor
  127. orbe.Material = "Neon"
  128. orbe.CanCollide = false
  129. local weld1e = Instance.new("Weld")
  130. weld1e.Parent = rleg
  131. weld1e.Part0 = rleg
  132. weld1e.Part1 = orbe
  133. weld1e.C1 = CFrame.new(0, 1.125, 0)
  134. local pt1e = NumberSequenceKeypoint.new(0,0.85,0)
  135. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  136. local effectoe = Instance.new("ParticleEmitter",orbe)
  137. effectoe.LightEmission = 1
  138. effectoe.Texture = "rbxasset://textures/particles/smoke_main.dds"
  139. effectoe.Color = ColorSequence.new(maincolor.Color)
  140. effectoe.Rate = 10000
  141. effectoe.Lifetime = NumberRange.new(1)
  142. effectoe.Size = NumberSequence.new({pt1e,pt2e})
  143. effectoe.Speed = NumberRange.new(0,0)
  144. effectoe.RotSpeed = NumberRange.new(100,100)
  145.  
  146. local orbze = Instance.new("Part")
  147. orbze.Parent = char
  148. orbze.Size = Vector3.new(0.2, 0.2, 0.2)
  149. orbze.Archivable = true
  150. orbze.Transparency = 1
  151. orbze.BrickColor = maincolor
  152. orbze.Material = "Neon"
  153. orbze.CanCollide = false
  154. local weldz1 = Instance.new("Weld")
  155. weldz1.Parent = lleg
  156. weldz1.Part0 = lleg
  157. weldz1.Part1 = orbze
  158. weldz1.C1 = CFrame.new(0, 1.125, 0)
  159. local effectone = Instance.new("ParticleEmitter",orbze)
  160. effectone.LightEmission = 1
  161. effectone.Texture = "rbxasset://textures/particles/smoke_main.dds"
  162. effectone.Color = ColorSequence.new(maincolor.Color)
  163. effectone.Rate = 10000
  164. effectone.Lifetime = NumberRange.new(1)
  165. effectone.Size = NumberSequence.new({pt1e,pt2e})
  166. effectone.Speed = NumberRange.new(0,0)
  167. effectone.RotSpeed = NumberRange.new(100,100)
  168.  
  169. if effolemode == true then
  170. maincolor = BrickColor.new("Really red")
  171. end
  172.  
  173. local orb = Instance.new("Part")
  174. orb.Parent = char
  175. orb.Size = Vector3.new(1, 1, 1)
  176. orb.Archivable = true
  177. orb.Transparency = 1
  178. orb.BrickColor = BrickColor.new("Bright orange")
  179. orb.Material = "Wood"
  180. orb.CanCollide = false
  181. local weld1 = Instance.new("Weld")
  182. weld1.Parent = rarm
  183. weld1.Part0 = rarm
  184. weld1.Part1 = orb
  185. weld1.C1 = CFrame.new(0, 1.125, 0)
  186. local pt1 = NumberSequenceKeypoint.new(0,0.475,0)
  187. local pt2 = NumberSequenceKeypoint.new(1,0,0)
  188. local effecto = Instance.new("ParticleEmitter",orb)
  189. effecto.LightEmission = 1
  190. effecto.Texture = "rbxasset://textures/particles/smoke_main.dds"
  191. effecto.Color = ColorSequence.new(maincolor.Color)
  192. effecto.Rate = 10000
  193. effecto.Lifetime = NumberRange.new(1)
  194. effecto.Size = NumberSequence.new({pt1,pt2})
  195. effecto.Speed = NumberRange.new(0,0)
  196. effecto.RotSpeed = NumberRange.new(100,100)
  197.  
  198. local orbz = Instance.new("Part")
  199. orbz.Parent = char
  200. orbz.Size = Vector3.new(1, 1, 1)
  201. orbz.Archivable = true
  202. orbz.Transparency = 1
  203. orbz.BrickColor = BrickColor.new("Bright orange")
  204. orbz.Material = "Wood"
  205. orbz.CanCollide = false
  206. local weldz1 = Instance.new("Weld")
  207. weldz1.Parent = larm
  208. weldz1.Part0 = larm
  209. weldz1.Part1 = orbz
  210. weldz1.C1 = CFrame.new(0, 1.125, 0)
  211. local effecton = Instance.new("ParticleEmitter",orbz)
  212. effecton.LightEmission = 1
  213. effecton.Texture = "rbxasset://textures/particles/smoke_main.dds"
  214. effecton.Color = ColorSequence.new(maincolor.Color)
  215. effecton.Rate = 10000
  216. effecton.Lifetime = NumberRange.new(1)
  217. effecton.Size = NumberSequence.new({pt1,pt2})
  218. effecton.Speed = NumberRange.new(0,0)
  219. effecton.RotSpeed = NumberRange.new(100,100)
  220.  
  221. script:ClearAllChildren()
  222. wait(0.2)
  223.  
  224. Player = game:GetService("Players").LocalPlayer
  225. PlayerGui = Player.PlayerGui
  226. Cam = workspace.CurrentCamera
  227. Backpack = Player.Backpack
  228. Character = Player.Character
  229. Humanoid = Character.Humanoid
  230. Mouse = Player:GetMouse()
  231. RootPart = Character["HumanoidRootPart"]
  232. Torso = Character["Torso"]
  233. Head = Character["Head"]
  234. RightArm = Character["Right Arm"]
  235. LeftArm = Character["Left Arm"]
  236. RightLeg = Character["Right Leg"]
  237. LeftLeg = Character["Left Leg"]
  238. RootJoint = RootPart["RootJoint"]
  239. Neck = Torso["Neck"]
  240. RightShoulder = Torso["Right Shoulder"]
  241. LeftShoulder = Torso["Left Shoulder"]
  242. RightHip = Torso["Right Hip"]
  243. LeftHip = Torso["Left Hip"]
  244. local TIME = 0
  245. local sick = Instance.new("Sound",Torso)
  246.  
  247. IT = Instance.new
  248. CF = CFrame.new
  249. VT = Vector3.new
  250. RAD = math.rad
  251. C3 = Color3.new
  252. UD2 = UDim2.new
  253. BRICKC = BrickColor.new
  254. ANGLES = CFrame.Angles
  255. EULER = CFrame.fromEulerAnglesXYZ
  256. COS = math.cos
  257. ACOS = math.acos
  258. SIN = math.sin
  259. ASIN = math.asin
  260. ABS = math.abs
  261. MRANDOM = math.random
  262. FLOOR = math.floor
  263.  
  264. --//=================================\\
  265. --|| USEFUL VALUES
  266. --\\=================================//
  267.  
  268. Animation_Speed = 3
  269. local FORCERESET = false
  270. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  271. local Speed = 16
  272. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  273. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  274. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  275. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  276. local DAMAGEMULTIPLIER = 1
  277. local ANIM = "Idle"
  278. local ATTACK = false
  279. local EQUIPPED = false
  280. local HOLD = false
  281. local COMBO = 1
  282. local Rooted = false
  283. local SINE = 0
  284. local KEYHOLD = false
  285. local CHANGE = 2 / Animation_Speed
  286. local WALKINGANIM = false
  287. local VALUE1 = false
  288. local VALUE2 = false
  289. local ROBLOXIDLEANIMATION = IT("Animation")
  290. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  291. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  292. --ROBLOXIDLEANIMATION.Parent = Humanoid
  293. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  294. WEAPONGUI.Name = "BanishV3Gui"
  295. local Weapon = IT("Model")
  296. Weapon.Name = "Adds"
  297. local Effects = IT("Folder", Weapon)
  298. Effects.Name = "Effects"
  299. local ANIMATOR = Humanoid.Animator
  300. local ANIMATE = Character:FindFirstChild("Animate")
  301. local UNANCHOR = true
  302. local TOBANISH = {}
  303. script.Parent = PlayerGui
  304.  
  305. --//=================================\\
  306. --\\=================================//
  307.  
  308.  
  309. --//=================================\\
  310. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  311. --\\=================================//
  312.  
  313. ArtificialHB = Instance.new("BindableEvent", script)
  314. ArtificialHB.Name = "ArtificialHB"
  315.  
  316. script:WaitForChild("ArtificialHB")
  317.  
  318. frame = Frame_Speed
  319. tf = 0
  320. allowframeloss = false
  321. tossremainder = false
  322. lastframe = tick()
  323. script.ArtificialHB:Fire()
  324.  
  325. game:GetService("RunService").Heartbeat:connect(function(s, p)
  326. tf = tf + s
  327. if tf >= frame then
  328. if allowframeloss then
  329. script.ArtificialHB:Fire()
  330. lastframe = tick()
  331. else
  332. for i = 1, math.floor(tf / frame) do
  333. script.ArtificialHB:Fire()
  334. end
  335. lastframe = tick()
  336. end
  337. if tossremainder then
  338. tf = 0
  339. else
  340. tf = tf - frame * math.floor(tf / frame)
  341. end
  342. end
  343. end)
  344.  
  345. --//=================================\\
  346. --\\=================================//
  347.  
  348. --//=================================\\
  349. --|| SOME FUNCTIONS
  350. --\\=================================//
  351.  
  352. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  353. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  354. end
  355.  
  356. function PositiveAngle(NUMBER)
  357. if NUMBER >= 0 then
  358. NUMBER = 0
  359. end
  360. return NUMBER
  361. end
  362.  
  363. function NegativeAngle(NUMBER)
  364. if NUMBER <= 0 then
  365. NUMBER = 0
  366. end
  367. return NUMBER
  368. end
  369.  
  370. function Swait(NUMBER)
  371. if NUMBER == 0 or NUMBER == nil then
  372. ArtificialHB.Event:wait()
  373. else
  374. for i = 1, NUMBER do
  375. ArtificialHB.Event:wait()
  376. end
  377. end
  378. end
  379.  
  380. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  381. local NEWMESH = IT(MESH)
  382. if MESH == "SpecialMesh" then
  383. NEWMESH.MeshType = MESHTYPE
  384. if MESHID ~= "nil" and MESHID ~= "" then
  385. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  386. end
  387. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  388. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  389. end
  390. end
  391. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  392. NEWMESH.Scale = SCALE
  393. NEWMESH.Parent = PARENT
  394. return NEWMESH
  395. end
  396.  
  397. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  398. local NEWPART = IT("Part")
  399. NEWPART.formFactor = FORMFACTOR
  400. NEWPART.Reflectance = REFLECTANCE
  401. NEWPART.Transparency = TRANSPARENCY
  402. NEWPART.CanCollide = false
  403. NEWPART.Locked = true
  404. NEWPART.Anchored = true
  405. if ANCHOR == false then
  406. NEWPART.Anchored = false
  407. end
  408. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  409. NEWPART.Name = NAME
  410. NEWPART.Size = SIZE
  411. NEWPART.Position = Torso.Position
  412. NEWPART.Material = MATERIAL
  413. NEWPART:BreakJoints()
  414. NEWPART.Parent = PARENT
  415. return NEWPART
  416. end
  417.  
  418. local function weldBetween(a, b)
  419. local weldd = Instance.new("ManualWeld")
  420. weldd.Part0 = a
  421. weldd.Part1 = b
  422. weldd.C0 = CFrame.new()
  423. weldd.C1 = b.CFrame:inverse() * a.CFrame
  424. weldd.Parent = a
  425. return weldd
  426. end
  427.  
  428.  
  429. function QuaternionFromCFrame(cf)
  430. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  431. local trace = m00 + m11 + m22
  432. if trace > 0 then
  433. local s = math.sqrt(1 + trace)
  434. local recip = 0.5 / s
  435. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  436. else
  437. local i = 0
  438. if m11 > m00 then
  439. i = 1
  440. end
  441. if m22 > (i == 0 and m00 or m11) then
  442. i = 2
  443. end
  444. if i == 0 then
  445. local s = math.sqrt(m00 - m11 - m22 + 1)
  446. local recip = 0.5 / s
  447. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  448. elseif i == 1 then
  449. local s = math.sqrt(m11 - m22 - m00 + 1)
  450. local recip = 0.5 / s
  451. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  452. elseif i == 2 then
  453. local s = math.sqrt(m22 - m00 - m11 + 1)
  454. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  455. end
  456. end
  457. end
  458.  
  459. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  460. local xs, ys, zs = x + x, y + y, z + z
  461. local wx, wy, wz = w * xs, w * ys, w * zs
  462. local xx = x * xs
  463. local xy = x * ys
  464. local xz = x * zs
  465. local yy = y * ys
  466. local yz = y * zs
  467. local zz = z * zs
  468. 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))
  469. end
  470.  
  471. function QuaternionSlerp(a, b, t)
  472. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  473. local startInterp, finishInterp;
  474. if cosTheta >= 0.0001 then
  475. if (1 - cosTheta) > 0.0001 then
  476. local theta = ACOS(cosTheta)
  477. local invSinTheta = 1 / SIN(theta)
  478. startInterp = SIN((1 - t) * theta) * invSinTheta
  479. finishInterp = SIN(t * theta) * invSinTheta
  480. else
  481. startInterp = 1 - t
  482. finishInterp = t
  483. end
  484. else
  485. if (1 + cosTheta) > 0.0001 then
  486. local theta = ACOS(-cosTheta)
  487. local invSinTheta = 1 / SIN(theta)
  488. startInterp = SIN((t - 1) * theta) * invSinTheta
  489. finishInterp = SIN(t * theta) * invSinTheta
  490. else
  491. startInterp = t - 1
  492. finishInterp = t
  493. end
  494. end
  495. 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
  496. end
  497.  
  498. function Clerp(a, b, t)
  499. local qa = {QuaternionFromCFrame(a)}
  500. local qb = {QuaternionFromCFrame(b)}
  501. local ax, ay, az = a.x, a.y, a.z
  502. local bx, by, bz = b.x, b.y, b.z
  503. local _t = 1 - t
  504. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  505. end
  506.  
  507. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  508. local frame = IT("Frame")
  509. frame.BackgroundTransparency = TRANSPARENCY
  510. frame.BorderSizePixel = BORDERSIZEPIXEL
  511. frame.Position = POSITION
  512. frame.Size = SIZE
  513. frame.BackgroundColor3 = COLOR
  514. frame.BorderColor3 = BORDERCOLOR
  515. frame.Name = NAME
  516. frame.Parent = PARENT
  517. return frame
  518. end
  519.  
  520. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  521. local label = IT("TextLabel")
  522. label.BackgroundTransparency = 1
  523. label.Size = UD2(1, 0, 1, 0)
  524. label.Position = UD2(0, 0, 0, 0)
  525. label.TextColor3 = TEXTCOLOR
  526. label.TextStrokeTransparency = STROKETRANSPARENCY
  527. label.TextTransparency = TRANSPARENCY
  528. label.FontSize = TEXTFONTSIZE
  529. label.Font = TEXTFONT
  530. label.BorderSizePixel = BORDERSIZEPIXEL
  531. label.TextScaled = false
  532. label.Text = TEXT
  533. label.Name = NAME
  534. label.Parent = PARENT
  535. return label
  536. end
  537.  
  538. function NoOutlines(PART)
  539. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  540. end
  541.  
  542. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  543. local NEWWELD = IT(TYPE)
  544. NEWWELD.Part0 = PART0
  545. NEWWELD.Part1 = PART1
  546. NEWWELD.C0 = C0
  547. NEWWELD.C1 = C1
  548. NEWWELD.Parent = PARENT
  549. return NEWWELD
  550. end
  551.  
  552. local S = IT("Sound")
  553. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  554. local NEWSOUND = nil
  555. coroutine.resume(coroutine.create(function()
  556. NEWSOUND = S:Clone()
  557. NEWSOUND.Parent = PARENT
  558. NEWSOUND.Volume = VOLUME
  559. NEWSOUND.Pitch = PITCH
  560. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  561. NEWSOUND:play()
  562. if DOESLOOP == true then
  563. NEWSOUND.Looped = true
  564. else
  565. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  566. NEWSOUND:remove()
  567. end
  568. end))
  569. return NEWSOUND
  570. end
  571.  
  572. function CFrameFromTopBack(at, top, back)
  573. local right = top:Cross(back)
  574. 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)
  575. end
  576.  
  577. --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})
  578. function WACKYEFFECT(Table)
  579. local TYPE = (Table.EffectType or "Sphere")
  580. local SIZE = (Table.Size or VT(1,1,1))
  581. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  582. local TRANSPARENCY = (Table.Transparency or 0)
  583. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  584. local CFRAME = (Table.CFrame or Torso.CFrame)
  585. local MOVEDIRECTION = (Table.MoveToPos or nil)
  586. local ROTATION1 = (Table.RotationX or 0)
  587. local ROTATION2 = (Table.RotationY or 0)
  588. local ROTATION3 = (Table.RotationZ or 0)
  589. local MATERIAL = (Table.Material or "Neon")
  590. local COLOR = (Table.Color or C3(1,1,1))
  591. local TIME = (Table.Time or 45)
  592. local SOUNDID = (Table.SoundID or nil)
  593. local SOUNDPITCH = (Table.SoundPitch or nil)
  594. local SOUNDVOLUME = (Table.SoundVolume or nil)
  595. coroutine.resume(coroutine.create(function()
  596. local PLAYSSOUND = false
  597. local SOUND = nil
  598. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  599. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  600. PLAYSSOUND = true
  601. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  602. end
  603. EFFECT.Color = COLOR
  604. local MSH = nil
  605. if TYPE == "Sphere" then
  606. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  607. elseif TYPE == "Block" then
  608. MSH = IT("BlockMesh",EFFECT)
  609. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  610. elseif TYPE == "Wave" then
  611. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  612. elseif TYPE == "Ring" then
  613. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  614. elseif TYPE == "Slash" then
  615. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  616. elseif TYPE == "Round Slash" then
  617. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  618. elseif TYPE == "Swirl" then
  619. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  620. elseif TYPE == "Skull" then
  621. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  622. elseif TYPE == "Crystal" then
  623. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  624. end
  625. if MSH ~= nil then
  626. local MOVESPEED = nil
  627. if MOVEDIRECTION ~= nil then
  628. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  629. end
  630. local GROWTH = SIZE - ENDSIZE
  631. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  632. if TYPE == "Block" then
  633. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  634. else
  635. EFFECT.CFrame = CFRAME
  636. end
  637. for LOOP = 1, TIME+1 do
  638. Swait()
  639. MSH.Scale = MSH.Scale - GROWTH/TIME
  640. if TYPE == "Wave" then
  641. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  642. end
  643. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  644. if TYPE == "Block" then
  645. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  646. else
  647. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  648. end
  649. if MOVEDIRECTION ~= nil then
  650. local ORI = EFFECT.Orientation
  651. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  652. EFFECT.Orientation = ORI
  653. end
  654. end
  655. if PLAYSSOUND == false then
  656. EFFECT:remove()
  657. else
  658. SOUND.Stopped:Connect(function()
  659. EFFECT:remove()
  660. end)
  661. end
  662. else
  663. if PLAYSSOUND == false then
  664. EFFECT:remove()
  665. else
  666. repeat Swait() until SOUND.Playing == false
  667. EFFECT:remove()
  668. end
  669. end
  670. end))
  671. end
  672.  
  673. function MakeForm(PART,TYPE)
  674. if TYPE == "Cyl" then
  675. local MSH = IT("CylinderMesh",PART)
  676. elseif TYPE == "Ball" then
  677. local MSH = IT("SpecialMesh",PART)
  678. MSH.MeshType = "Sphere"
  679. elseif TYPE == "Wedge" then
  680. local MSH = IT("SpecialMesh",PART)
  681. MSH.MeshType = "Wedge"
  682. end
  683. end
  684.  
  685. function SpawnTrail(FROM,TO,BIG)
  686. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  687. MakeForm(TRAIL,"Cyl")
  688. local DIST = (FROM - TO).Magnitude
  689. if BIG == true then
  690. TRAIL.Size = VT(0.5,DIST,0.5)
  691. else
  692. TRAIL.Size = VT(0.25,DIST,0.25)
  693. end
  694. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  695. coroutine.resume(coroutine.create(function()
  696. for i = 1, 5 do
  697. Swait()
  698. TRAIL.Transparency = TRAIL.Transparency + 0.1
  699. end
  700. TRAIL:remove()
  701. end))
  702. end
  703.  
  704. Debris = game:GetService("Debris")
  705.  
  706. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  707. local DIRECTION = CF(StartPos,EndPos).lookVector
  708. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  709. end
  710.  
  711. function turnto(position)
  712. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  713. end
  714.  
  715. --//=================================\\
  716. --|| WEAPON CREATION
  717. --\\=================================//
  718.  
  719. local Particle = IT("ParticleEmitter",nil)
  720. Particle.Enabled = false
  721. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  722. Particle.LightEmission = 0.5
  723. Particle.Rate = 150
  724. Particle.ZOffset = 0.2
  725. Particle.Rotation = NumberRange.new(-180, 180)
  726. Particle.RotSpeed = NumberRange.new(-180, 180)
  727. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  728. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0.4))
  729.  
  730. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  731. function ParticleEmitter(Table)
  732. local PRTCL = Particle:Clone()
  733. local Speed = Table.Speed or 5
  734. local Drag = Table.Drag or 0
  735. local Size1 = Table.Size1 or 1
  736. local Size2 = Table.Size2 or 5
  737. local Lifetime1 = Table.Lifetime1 or 1
  738. local Lifetime2 = Table.Lifetime2 or 1.5
  739. local Parent = Table.Parent or Torso
  740. local Emit = Table.Emit or 100
  741. local Offset = Table.Offset or 360
  742. local Acel = Table.Acel or VT(0,0,0)
  743. local Enabled = Table.Enabled or false
  744. PRTCL.Parent = Parent
  745. PRTCL.Size = NumberSequence.new(Size1,Size2)
  746. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  747. PRTCL.Speed = NumberRange.new(Speed)
  748. PRTCL.VelocitySpread = Offset
  749. PRTCL.Drag = Drag
  750. PRTCL.Acceleration = Acel
  751. if Enabled == false then
  752. PRTCL:Emit(Emit)
  753. Debris:AddItem(PRTCL,Lifetime2)
  754. else
  755. PRTCL.Enabled = true
  756. end
  757. return PRTCL
  758. end
  759.  
  760. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  761. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  762. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  763. MakeForm(Part,"Wedge")
  764. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  765. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  766. MakeForm(Part,"Wedge")
  767. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  768. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  769. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  770. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  771. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  772. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  773. MakeForm(Part,"Cyl")
  774. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  775. for i = 1, 8 do
  776. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  777. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  778. end
  779. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  780. MakeForm(Part,"Cyl")
  781. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  782. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  783. MakeForm(Part,"Ball")
  784. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  785. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  786. MakeForm(Part,"Wedge")
  787. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  788. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  789. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  790. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  791. MakeForm(Part,"Cyl")
  792. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  793. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  794. MakeForm(Part,"Cyl")
  795. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  796. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  797. MakeForm(Part,"Cyl")
  798. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  799. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  800. MakeForm(Part,"Wedge")
  801. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  802. local LASTPART = Handle
  803. for i = 1, 10 do
  804. if LASTPART == Handle then
  805. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  806. LASTPART = Part
  807. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  808. else
  809. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  810. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  811. LASTPART = Part
  812. end
  813. end
  814.  
  815. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  816. MakeForm(Barrel,"Cyl")
  817. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  818. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  819. MakeForm(Part,"Cyl")
  820. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  821. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  822. MakeForm(Part,"Wedge")
  823. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  824. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  825. MakeForm(Hole,"Cyl")
  826. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  827. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  828. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  829. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  830. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  831. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  832. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  833. coroutine.resume(coroutine.create(function()
  834. while wait() do
  835. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  836. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  837. end
  838. end))
  839.  
  840. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  841. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  842.  
  843. for _, c in pairs(Weapon:GetDescendants()) do
  844. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  845. c.Material = "Glass"
  846. c.Color = C3(0,0,0)
  847. elseif c.ClassName == "Part" and c.Name == "Eye" then
  848. c.Color = C3(1,0,0)
  849. c.Material = "Neon"
  850. end
  851. end
  852.  
  853. Weapon.Parent = Character
  854. for _, c in pairs(Weapon:GetChildren()) do
  855. if c.ClassName == "Part" then
  856. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  857. end
  858. end
  859.  
  860. local SKILLTEXTCOLOR = C3(1,0,0)
  861. local SKILLFONT = "Antique"
  862. local SKILLTEXTSIZE = 7
  863.  
  864. Humanoid.Died:connect(function()
  865. ATTACK = true
  866. end)
  867.  
  868. 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")
  869. --[[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")
  870. 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")
  871. 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")
  872. 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")
  873. ]]
  874. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  875. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  876. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  877. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  878. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  879. ]]
  880. function printbye(Name)
  881. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  882. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  883. end
  884.  
  885. workspace.ChildAdded:connect(function(instance)
  886. for BANISH = 1, #TOBANISH do
  887. if TOBANISH[BANISH] ~= nil then
  888. if instance.Name == TOBANISH[BANISH] then
  889. coroutine.resume(coroutine.create(function()
  890. printbye(instance.Name)
  891. instance:ClearAllChildren()
  892. Debris:AddItem(instance,0.0005)
  893. end))
  894. end
  895. end
  896. end
  897. end)
  898.  
  899. --//=================================\\
  900. --|| DAMAGING
  901. --\\=================================//
  902.  
  903. function Banish(Foe)
  904. if Foe then
  905. coroutine.resume(coroutine.create(function()
  906. --if game.Players:FindFirstChild(Foe.Name) then
  907. table.insert(TOBANISH,Foe.Name)
  908. printbye(Foe.Name)
  909. --end
  910. Foe.Archivable = true
  911. local CLONE = Foe:Clone()
  912. Foe:Destroy()
  913. CLONE.Parent = Effects
  914. CLONE:BreakJoints()
  915. local MATERIALS = {"Glass","Neon"}
  916. for _, c in pairs(CLONE:GetDescendants()) do
  917. if c:IsA("BasePart") then
  918. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  919. CreateSound(340722848, c, 10, 1, false)
  920. end
  921. c.Anchored = true
  922. c.Transparency = c.Transparency + 0.2
  923. c.Material = MATERIALS[MRANDOM(1,2)]
  924. c.Color = C3(1,0,0)
  925. if c.ClassName == "MeshPart" then
  926. c.TextureID = ""
  927. end
  928. if c:FindFirstChildOfClass("SpecialMesh") then
  929. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  930. end
  931. if c:FindFirstChildOfClass("Decal") then
  932. c:FindFirstChildOfClass("Decal"):remove()
  933. end
  934. c.Name = "Banished"
  935. c.CanCollide = false
  936. else
  937. c:remove()
  938. end
  939. end
  940. local A = false
  941. for i = 1, 35 do
  942. if A == false then
  943. A = true
  944. elseif A == true then
  945. A = false
  946. end
  947. for _, c in pairs(CLONE:GetDescendants()) do
  948. if c:IsA("BasePart") then
  949. c.Anchored = true
  950. c.Material = MATERIALS[MRANDOM(1,2)]
  951. c.Transparency = c.Transparency + 0.8/35
  952. if A == false then
  953. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  954. elseif A == true then
  955. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  956. end
  957. end
  958. end
  959. Swait()
  960. end
  961. CLONE:remove()
  962. end))
  963. end
  964. end
  965.  
  966. function ApplyAoE(POSITION,RANGE,ISBANISH)
  967. local CHILDREN = workspace:GetDescendants()
  968. for index, CHILD in pairs(CHILDREN) do
  969. if CHILD.ClassName == "Model" and CHILD ~= Character then
  970. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  971. if HUM then
  972. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  973. if TORSO then
  974. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  975. if ISBANISH == true then
  976. Banish(CHILD)
  977. else
  978. if ISBANISH == "Gravity" then
  979. HUM.PlatformStand = true
  980. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  981. local grav = Instance.new("BodyPosition",TORSO)
  982. grav.D = 15
  983. grav.P = 20000
  984. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  985. grav.position = TORSO.Position
  986. grav.Name = "V3BanishForce"..Player.Name
  987. else
  988. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  989. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  990. end
  991. else
  992. HUM.PlatformStand = false
  993. end
  994. end
  995. elseif ISBANISH == "Gravity" then
  996. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  997. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  998. HUM.PlatformStand = false
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006.  
  1007. --//=================================\\
  1008. --|| ATTACK FUNCTIONS AND STUFF
  1009. --\\=================================//
  1010.  
  1011. function Shot()
  1012. ATTACK = true
  1013. Rooted = false
  1014. for i=0, 0.4, 0.1 / Animation_Speed do
  1015. Swait()
  1016. turnto(Mouse.Hit.p)
  1017. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1018. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1019. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1020. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1021. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1022. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1023. end
  1024. repeat
  1025. for i=0, 0.2, 0.1 / Animation_Speed do
  1026. Swait()
  1027. turnto(Mouse.Hit.p)
  1028. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1029. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1030. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1031. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1032. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1033. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1034. end
  1035. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1036. SpawnTrail(Hole.Position,POS)
  1037. if HIT ~= nil then
  1038. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1039. Banish(HIT.Parent)
  1040. end
  1041. end
  1042. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.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})
  1043. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1044. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1045. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1046. for i=0, 0.3, 0.1 / Animation_Speed do
  1047. Swait()
  1048. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1049. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1050. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1051. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1052. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1053. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1054. end
  1055. until KEYHOLD == false
  1056. ATTACK = false
  1057. Rooted = false
  1058. end
  1059.  
  1060. function AttackTemplate()
  1061. ATTACK = true
  1062. Rooted = false
  1063. for i=0, 1, 0.1 / Animation_Speed do
  1064. Swait()
  1065. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1066. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1067. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1068. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1069. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1070. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1071. end
  1072. ATTACK = false
  1073. Rooted = false
  1074. end
  1075.  
  1076. --//=================================\\
  1077. --|| ASSIGN THINGS TO KEYS
  1078. --\\=================================//
  1079.  
  1080. function MouseDown(Mouse)
  1081. if ATTACK == false then
  1082. end
  1083. end
  1084.  
  1085. function MouseUp(Mouse)
  1086. HOLD = false
  1087. end
  1088.  
  1089. function KeyDown(Key)
  1090. KEYHOLD = true
  1091. if Key == "z" and ATTACK == false then
  1092. Shot()
  1093. end
  1094.  
  1095. if Key == "b" and ATTACK == false then
  1096. end
  1097.  
  1098. if Key == "c" and ATTACK == false then
  1099. end
  1100.  
  1101. if Key == "v" and ATTACK == false then
  1102. end
  1103.  
  1104. if Key == "x" and ATTACK == false then
  1105. end
  1106. end
  1107.  
  1108. function KeyUp(Key)
  1109. KEYHOLD = false
  1110. end
  1111.  
  1112. Mouse.Button1Down:connect(function(NEWKEY)
  1113. MouseDown(NEWKEY)
  1114. end)
  1115. Mouse.Button1Up:connect(function(NEWKEY)
  1116. MouseUp(NEWKEY)
  1117. end)
  1118. Mouse.KeyDown:connect(function(NEWKEY)
  1119. KeyDown(NEWKEY)
  1120. end)
  1121. Mouse.KeyUp:connect(function(NEWKEY)
  1122. KeyUp(NEWKEY)
  1123. end)
  1124.  
  1125. --//=================================\\
  1126. --\\=================================//
  1127.  
  1128.  
  1129. function unanchor()
  1130. if UNANCHOR == true then
  1131. g = Character:GetChildren()
  1132. for i = 1, #g do
  1133. if g[i].ClassName == "Part" then
  1134. g[i].Anchored = false
  1135. end
  1136. end
  1137. end
  1138. end
  1139.  
  1140.  
  1141. --//=================================\\
  1142. --|| WRAP THE WHOLE SCRIPT UP
  1143. --\\=================================//
  1144.  
  1145. Humanoid.Changed:connect(function(Jump)
  1146. if Jump == "Jump" and (Disable_Jump == true) then
  1147. Humanoid.Jump = false
  1148. end
  1149. end)
  1150.  
  1151. local CONNECT = nil
  1152.  
  1153. while true do
  1154. Swait()
  1155. ANIMATE.Parent = nil
  1156. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1157. Humanoid = IT("Humanoid",Character)
  1158. end
  1159. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1160. v:Stop();
  1161. end
  1162. SINE = SINE + CHANGE
  1163. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1164. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1165. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1166. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1167. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1168. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1169. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1170. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1171. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1172. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1173. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1174. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1175. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1176. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1177. end
  1178. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1179. ANIM = "Jump"
  1180. if ATTACK == false then
  1181. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1182. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1183. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1184. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1185. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1186. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1187. end
  1188. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1189. ANIM = "Fall"
  1190. if ATTACK == false then
  1191. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1193. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1195. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1196. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1197. end
  1198. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1199. ANIM = "Idle"
  1200. if ATTACK == false then
  1201. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1202. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1203. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1204. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1205. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1206. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1207. end
  1208. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1209. ANIM = "Walk"
  1210. if ATTACK == false then
  1211. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1212. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1213. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1214. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1215. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1216. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1217. end
  1218. end
  1219. unanchor()
  1220. Humanoid.MaxHealth = "inf"
  1221. Humanoid.Health = "inf"
  1222. if Rooted == false then
  1223. Disable_Jump = false
  1224. Humanoid.WalkSpeed = Speed
  1225. elseif Rooted == true then
  1226. Disable_Jump = true
  1227. Humanoid.WalkSpeed = 0
  1228. end
  1229. sick.Parent = Torso
  1230. sick:resume()
  1231. sick.Volume = 8.2
  1232. sick.Pitch = 1
  1233. sick.SoundId = "rbxassetid://677618630"
  1234. sick.Name = "Dead"
  1235. end
  1236.  
  1237. --//=================================\\
  1238. --\\=================================//
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244. --//====================================================\\--
  1245. --|| END OF SCRIPT
  1246. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement