Advertisement
Basykung7845

Test

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