Advertisement
yabagaba

Untitled

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