asdf2345

Untitled

Aug 2nd, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.45 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. script.Name = "Soul Pistol"
  87. --Original script created by shackluster
  88. --Edit by Biologically_Noob
  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, "Cyan", "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.  
  582. --//=================================\\
  583. --|| WEAPON CREATION
  584. --\\=================================//
  585.  
  586. local Particle = IT("ParticleEmitter",nil)
  587. Particle.Enabled = false
  588. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  589. Particle.LightEmission = 0.5
  590. Particle.Rate = 10
  591. Particle.ZOffset = 0.2
  592. Particle.Rotation = NumberRange.new(-180, 180)
  593. Particle.RotSpeed = NumberRange.new(-180, 180)
  594. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  595. Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255))
  596. local Particle2 = IT("ParticleEmitter",nil)
  597. Particle2.Enabled = false
  598. Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597"
  599. Particle2.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
  600. Particle2.LightEmission = 0
  601. Particle2.RotSpeed = NumberRange.new(0, 180)
  602. Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  603. Particle2.LightEmission = 1
  604. Particle2.Rate = 20
  605. Particle2.RotSpeed = NumberRange.new(-20, 20)
  606. local Particle3 = IT("ParticleEmitter",nil)
  607. Particle3.Enabled = false
  608. Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121"
  609. Particle3.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
  610. Particle3.LightEmission = 0
  611. Particle3.RotSpeed = NumberRange.new(0, 180)
  612. Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  613. Particle3.LightEmission = 1
  614. Particle3.Rate = 20
  615. Particle3.RotSpeed = NumberRange.new(-20, 20)
  616. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  617. function ParticleEmitter(Table)
  618. local PRTCL = Particle:Clone()
  619. local Speed = Table.Speed or 5
  620. local Drag = Table.Drag or 0
  621. local Size1 = Table.Size1 or 1
  622. local Size2 = Table.Size2 or 5
  623. local Lifetime1 = Table.Lifetime1 or 1
  624. local Lifetime2 = Table.Lifetime2 or 1.5
  625. local Parent = Table.Parent or Torso
  626. local Emit = Table.Emit or 100
  627. local Offset = Table.Offset or 360
  628. local Acel = Table.Acel or VT(0,0,0)
  629. local Enabled = Table.Enabled or false
  630. PRTCL.Parent = Parent
  631. PRTCL.Size = NumberSequence.new(Size1,Size2)
  632. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  633. PRTCL.Speed = NumberRange.new(Speed)
  634. PRTCL.VelocitySpread = Offset
  635. PRTCL.Drag = Drag
  636. PRTCL.Acceleration = Acel
  637. if Enabled == false then
  638. PRTCL:Emit(Emit)
  639. Debris:AddItem(PRTCL,Lifetime2)
  640. else
  641. PRTCL.Enabled = true
  642. end
  643. return PRTCL
  644. end
  645. function ParticleEmitter2(Table)
  646. local PRTCL2 = Particle2:Clone()
  647. local LockedToPart = Table.LTP or true
  648. local Speed = Table.Speed or 0
  649. local Drag = Table.Drag or 0
  650. local Size1 = Table.Size1 or 1
  651. local Size2 = Table.Size2 or 2
  652. local Lifetime1 = Table.Lifetime1 or 1
  653. local Lifetime2 = Table.Lifetime2 or 1
  654. local Parent = Table.Parent or Torso
  655. local Emit = Table.Emit or 100
  656. local Offset = Table.Offset or 360
  657. local Acel = Table.Acel or VT(0,0,0)
  658. local Enabled = Table.Enabled or false
  659. PRTCL2.Parent = Parent
  660. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  661. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  662. PRTCL2.Speed = NumberRange.new(Speed)
  663. PRTCL2.VelocitySpread = Offset
  664. PRTCL2.Drag = Drag
  665. PRTCL2.Acceleration = Acel
  666. PRTCL2.Parent = Parent
  667. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  668. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  669. PRTCL2.Speed = NumberRange.new(Speed)
  670. PRTCL2.VelocitySpread = Offset
  671. PRTCL2.Drag = Drag
  672. PRTCL2.Acceleration = Acel
  673. PRTCL2.LockedToPart = true
  674. if Enabled == false then
  675. PRTCL2:Emit(Emit)
  676. Debris:AddItem(PRTCL2,Lifetime2)
  677. else
  678. PRTCL2.Enabled = true
  679. end
  680. return PRTCL2
  681. end
  682. function ParticleEmitter3(Table)
  683. local PRTCL3 = Particle2:Clone()
  684. local Speed = Table.Speed or 0
  685. local Drag = Table.Drag or 0
  686. local Size1 = Table.Size1 or 1
  687. local Size2 = Table.Size2 or 2
  688. local Lifetime1 = Table.Lifetime1 or 1
  689. local Lifetime2 = Table.Lifetime2 or 1
  690. local Parent = Table.Parent or Torso
  691. local Emit = Table.Emit or 100
  692. local Offset = Table.Offset or 0
  693. local Acel = Table.Acel or VT(0,0,0)
  694. local Enabled = Table.Enabled or false
  695. PRTCL3.Parent = Parent
  696. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  697. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  698. PRTCL3.Speed = NumberRange.new(Speed)
  699. PRTCL3.VelocitySpread = Offset
  700. PRTCL3.Drag = Drag
  701. PRTCL3.Acceleration = Acel
  702. PRTCL3.Parent = Parent
  703. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  704. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  705. PRTCL3.Speed = NumberRange.new(Speed)
  706. PRTCL3.VelocitySpread = Offset
  707. PRTCL3.Drag = Drag
  708. PRTCL3.Acceleration = Acel
  709. if Enabled == false then
  710. PRTCL3:Emit(Emit)
  711. Debris:AddItem(PRTCL3,Lifetime2)
  712. else
  713. PRTCL3.Enabled = true
  714. end
  715. return PRTCL3
  716. end
  717.  
  718. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  719. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  720. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  721. MakeForm(Part,"Wedge")
  722. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  723. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  724. MakeForm(Part,"Wedge")
  725. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  726. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  727. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  728. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  729. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  730. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  731. MakeForm(Part,"Cyl")
  732. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  733. for i = 1, 8 do
  734. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  735. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  736. end
  737. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  738. MakeForm(Part,"Cyl")
  739. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  740. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  741. MakeForm(Part,"Ball")
  742. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  743. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  744. MakeForm(Part,"Wedge")
  745. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  746. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  747. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  748. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  749. MakeForm(Part,"Cyl")
  750. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  751. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  752. MakeForm(Part,"Cyl")
  753. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  754. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  755. MakeForm(Part,"Cyl")
  756. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  757. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  758. MakeForm(Part,"Wedge")
  759. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  760. local LASTPART = Handle
  761. for i = 1, 10 do
  762. if LASTPART == Handle then
  763. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  764. LASTPART = Part
  765. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  766. else
  767. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  768. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  769. LASTPART = Part
  770. end
  771. end
  772.  
  773. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  774. MakeForm(Barrel,"Cyl")
  775. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  776. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  777. MakeForm(Part,"Cyl")
  778. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  779. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  780. MakeForm(Part,"Wedge")
  781. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  782. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  783. MakeForm(Hole,"Cyl")
  784. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  785. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  786. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  787. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  788. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  789. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  790. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  791. coroutine.resume(coroutine.create(function()
  792. while wait() do
  793. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  794. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  795. end
  796. end))
  797. --PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  798. --[[
  799. YEAH BOIIIIIIIII
  800. PARTICLE TIME
  801. --]]
  802. 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)})
  803. --ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)})
  804. 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)})
  805. ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
  806. ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
  807. --Trails
  808. local A1 = Instance.new("Attachment",Barrel)
  809. local A2 = Instance.new("Attachment",Barrel)
  810. local Trail = Instance.new("Trail",Barrel)
  811. A1.Position = Vector3.new(0,1,0)
  812. A2.Position = Vector3.new(0,-0.8,0)
  813. Trail.Attachment0 = A1
  814. Trail.Attachment1 = A2
  815. Trail.LightEmission = 1
  816. Trail.Color = ColorSequence.new(Color3.new(0,0,255),Color3.new(0,255,255))
  817. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  818. for _, c in pairs(Weapon:GetDescendants()) do
  819. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  820. c.Material = "Glass"
  821. c.Color = C3(0,0,0)
  822. elseif c.ClassName == "Part" and c.Name == "Eye" then
  823. c.Color = C3(0,0,1)
  824. c.Material = "Neon"
  825. end
  826. end
  827.  
  828. Weapon.Parent = Character
  829. for _, c in pairs(Weapon:GetChildren()) do
  830. if c.ClassName == "Part" then
  831. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  832. end
  833. end
  834.  
  835. local SKILLTEXTCOLOR = C3(0,0,1)
  836. local SKILLFONT = "Antique"
  837. local SKILLTEXTSIZE = 7
  838.  
  839. Humanoid.Died:connect(function()
  840. ATTACK = true
  841. end)
  842.  
  843. 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")
  844. --[[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")
  845. 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")
  846. 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")
  847. 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")
  848. --]]
  849. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  850. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  851. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  852. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  853. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  854. --]]
  855. function printbye(Name)
  856. 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, "}
  857. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  858.  
  859. end
  860.  
  861. workspace.ChildAdded:connect(function(instance)
  862. for BANISH = 1, #TOBANISH do
  863. if TOBANISH[BANISH] ~= nil then
  864. if instance.Name == TOBANISH[BANISH] then
  865. coroutine.resume(coroutine.create(function()
  866. printbye(instance.Name)
  867. instance:ClearAllChildren()
  868. Debris:AddItem(instance,0.0005)
  869. end))
  870. end
  871. end
  872. end
  873. end)
  874.  
  875. --//=================================\\
  876. --|| DAMAGING
  877. --\\=================================//
  878.  
  879. function Banish(Foe)
  880. if Foe then
  881. coroutine.resume(coroutine.create(function()
  882. --if game.Players:FindFirstChild(Foe.Name) then
  883. table.insert(TOBANISH,Foe.Name)
  884. printbye(Foe.Name)
  885. --end
  886. Foe.Archivable = true
  887. local CLONE = Foe:Clone()
  888. Foe:Destroy()
  889. CLONE.Parent = Effects
  890. CLONE:BreakJoints()
  891. local MATERIALS = {"Glass","Neon"}
  892. for _, c in pairs(CLONE:GetDescendants()) do
  893. if c:IsA("BasePart") then
  894. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  895. CreateSound(340722848, c, 10, 1, false)
  896. end
  897. c.Anchored = true
  898. c.Transparency = c.Transparency + 0.2
  899. c.Material = MATERIALS[MRANDOM(1,2)]
  900. c.Color = C3(0,0,255)
  901. if c.ClassName == "MeshPart" then
  902. c.TextureID = ""
  903. end
  904. if c:FindFirstChildOfClass("SpecialMesh") then
  905. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  906. end
  907. if c:FindFirstChildOfClass("Decal") then
  908. c:FindFirstChildOfClass("Decal"):remove()
  909. end
  910. c.Name = "Banished"
  911. c.CanCollide = false
  912. else
  913. c:remove()
  914. end
  915. end
  916. local A = false
  917. for i = 1, 35 do
  918. if A == false then
  919. A = true
  920. elseif A == true then
  921. A = false
  922. end
  923. for _, c in pairs(CLONE:GetDescendants()) do
  924. if c:IsA("BasePart") then
  925. c.Anchored = true
  926. c.Material = MATERIALS[MRANDOM(1,2)]
  927. c.Transparency = c.Transparency + 0.8/35
  928. if A == false then
  929. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  930. elseif A == true then
  931. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  932. end
  933. end
  934. end
  935. Swait()
  936. end
  937. CLONE:remove()
  938. end))
  939. end
  940. end
  941.  
  942. function ApplyAoE(POSITION,RANGE,ISBANISH)
  943. local CHILDREN = workspace:GetDescendants()
  944. for index, CHILD in pairs(CHILDREN) do
  945. if CHILD.ClassName == "Model" and CHILD ~= Character then
  946. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  947. if HUM then
  948. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  949. if TORSO then
  950. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  951. if ISBANISH == true then
  952. Banish(CHILD)
  953. else
  954. if ISBANISH == "Gravity" then
  955. HUM.PlatformStand = true
  956. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  957. local grav = Instance.new("BodyPosition",TORSO)
  958. grav.D = 15
  959. grav.P = 20000
  960. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  961. grav.position = TORSO.Position
  962. grav.Name = "V3BanishForce"..Player.Name
  963. else
  964. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  965. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  966. end
  967. else
  968. HUM.PlatformStand = false
  969. end
  970. end
  971. elseif ISBANISH == "Gravity" then
  972. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  973. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  974. HUM.PlatformStand = false
  975. end
  976. end
  977. end
  978. end
  979. end
  980. end
  981. end
  982.  
  983. --//=================================\\
  984. --|| ATTACK FUNCTIONS AND STUFF
  985. --\\=================================//
  986.  
  987. function Banisher_Bullet()
  988. ATTACK = true
  989. Rooted = false
  990. for i=0, 0.4, 0.1 / Animation_Speed do
  991. Swait()
  992. turnto(Mouse.Hit.p)
  993. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  994. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  995. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  996. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  997. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  998. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  999. end
  1000. repeat
  1001. for i=0, 0.2, 0.1 / Animation_Speed do
  1002. Swait()
  1003. turnto(Mouse.Hit.p)
  1004. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1005. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1006. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1007. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1008. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1009. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1010. end
  1011. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1012. SpawnTrail(Hole.Position,POS)
  1013. if HIT ~= nil then
  1014. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1015. Banish(HIT.Parent)
  1016. end
  1017. end
  1018. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1019. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = 1518774445, SoundPitch = 1, SoundVolume = 8})
  1020. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1021. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1022. for i=0, 0.3, 0.1 / Animation_Speed do
  1023. Swait()
  1024. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1025. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1026. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1027. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1028. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1029. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1030. end
  1031. until KEYHOLD == false
  1032. ATTACK = false
  1033. Rooted = false
  1034. end
  1035.  
  1036. function AttackTemplate()
  1037. ATTACK = true
  1038. Rooted = false
  1039. for i=0, 1, 0.1 / Animation_Speed do
  1040. Swait()
  1041. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1042. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1043. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1044. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1045. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1046. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1047. end
  1048. ATTACK = false
  1049. Rooted = false
  1050. end
  1051.  
  1052. --//=================================\\
  1053. --|| ASSIGN THINGS TO KEYS
  1054. --\\=================================//
  1055.  
  1056. function MouseDown(Mouse)
  1057. if ATTACK == false then
  1058. end
  1059. end
  1060.  
  1061. function MouseUp(Mouse)
  1062. HOLD = false
  1063. end
  1064.  
  1065. function KeyDown(Key)
  1066. KEYHOLD = true
  1067. if Key == "z" and ATTACK == false then
  1068. Banisher_Bullet()
  1069. end
  1070.  
  1071. if Key == "b" and ATTACK == false then
  1072. end
  1073.  
  1074. if Key == "c" and ATTACK == false then
  1075. end
  1076.  
  1077. if Key == "v" and ATTACK == false then
  1078. end
  1079.  
  1080. if Key == "x" and ATTACK == false then
  1081. end
  1082. end
  1083.  
  1084. function KeyUp(Key)
  1085. KEYHOLD = false
  1086. end
  1087.  
  1088. Mouse.Button1Down:connect(function(NEWKEY)
  1089. MouseDown(NEWKEY)
  1090. end)
  1091. Mouse.Button1Up:connect(function(NEWKEY)
  1092. MouseUp(NEWKEY)
  1093. end)
  1094. Mouse.KeyDown:connect(function(NEWKEY)
  1095. KeyDown(NEWKEY)
  1096. end)
  1097. Mouse.KeyUp:connect(function(NEWKEY)
  1098. KeyUp(NEWKEY)
  1099. end)
  1100.  
  1101. --//=================================\\
  1102. --\\=================================//
  1103.  
  1104.  
  1105. function unanchor()
  1106. if UNANCHOR == true then
  1107. g = Character:GetChildren()
  1108. for i = 1, #g do
  1109. if g[i].ClassName == "Part" then
  1110. g[i].Anchored = false
  1111. end
  1112. end
  1113. end
  1114. end
  1115.  
  1116.  
  1117. --//=================================\\
  1118. --|| WRAP THE WHOLE SCRIPT UP
  1119. --\\=================================//
  1120.  
  1121. Humanoid.Changed:connect(function(Jump)
  1122. if Jump == "Jump" and (Disable_Jump == true) then
  1123. Humanoid.Jump = false
  1124. end
  1125. end)
  1126.  
  1127. local CONNECT = nil
  1128.  
  1129. while true do
  1130. Swait()
  1131. ANIMATE.Parent = nil
  1132. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1133. Humanoid = IT("Humanoid",Character)
  1134. end
  1135. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1136. v:Stop();
  1137. end
  1138. SINE = SINE + CHANGE
  1139. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1140. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1141. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1142. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1143. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1144. 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)
  1145. 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)
  1146. 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)
  1147. 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)
  1148. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1149. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1150. 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)
  1151. 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)
  1152. 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)
  1153. end
  1154. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1155. ANIM = "Jump"
  1156. if ATTACK == false then
  1157. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1158. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1159. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1160. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1161. 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)
  1162. 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)
  1163. end
  1164. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1165. ANIM = "Fall"
  1166. if ATTACK == false then
  1167. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1168. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1169. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1170. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1171. 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)
  1172. 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)
  1173. end
  1174. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1175. ANIM = "Idle"
  1176. if ATTACK == false then
  1177. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1178. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1179. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1180. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1181. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1182. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1183. end
  1184. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1185. ANIM = "Walk"
  1186. if ATTACK == false then
  1187. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1188. 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)
  1189. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1190. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1191. 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)
  1192. 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)
  1193. end
  1194. end
  1195. unanchor()
  1196. Humanoid.MaxHealth = "inf"
  1197. Humanoid.Health = "inf"
  1198. if Rooted == false then
  1199. Disable_Jump = false
  1200. Humanoid.WalkSpeed = Speed
  1201. elseif Rooted == true then
  1202. Disable_Jump = true
  1203. Humanoid.WalkSpeed = 0
  1204. end
  1205. sick.Parent = Torso
  1206. sick:resume()
  1207. sick.Volume = 5
  1208. sick.Pitch = 1
  1209. sick.SoundId = "rbxassetid://398159550"
  1210. sick.Name = "BanishV3Music"
  1211. end
  1212.  
  1213. --//=================================\\
  1214. --\\=================================//
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220. --//====================================================\\--
  1221. --|| END OF SCRIPT
  1222. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment