Advertisement
Basykung7845

Test

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