Advertisement
Basykung7845

Test

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