Advertisement
GojiGaming1337

Untitled

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