Advertisement
HenloMyDude

GunSwitcher

Aug 18th, 2019
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.20 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. wait(0.2)
  8.  
  9. Player = game:GetService("Players").LocalPlayer
  10. PlayerGui = Player.PlayerGui
  11. chara = Player.Character
  12. Character = Player.Character
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.Parent = RootPart
  33. sick.SoundId = "rbxassetid://472032669"
  34. sick.Looped = true
  35. sick.Pitch = 1
  36. sick.Volume = 7
  37. sick:Play()
  38. Character.Archivable = true
  39. Humanoid.DisplayDistanceType = "None"
  40. SWITCH = "Super-Evolved Banish"
  41. SOUNDID = 472032669
  42.  
  43. local naeeym = Instance.new("BillboardGui",chara)
  44. naeeym.Size = UDim2.new(0,100,0,40)
  45. naeeym.StudsOffset = Vector3.new(0,3.5,0)
  46. naeeym.Adornee = chara.Head
  47. local tecks = Instance.new("TextLabel",naeeym)
  48. tecks.BackgroundTransparency = 1
  49. tecks.BorderSizePixel = 0
  50. tecks.Text = "Super-Evolved Banish"
  51. tecks.Font = "Fantasy"
  52. tecks.FontSize = "Size24"
  53. tecks.TextStrokeTransparency = 0
  54. tecks.TextStrokeColor3 = Color3.new(170,0,0)
  55. tecks.TextColor3 = Color3.new(1,0,0)
  56. tecks.Size = UDim2.new(1,0,0.5,0)
  57.  
  58. IT = Instance.new
  59. CF = CFrame.new
  60. VT = Vector3.new
  61. RAD = math.rad
  62. C3 = Color3.new
  63. UD2 = UDim2.new
  64. BRICKC = BrickColor.new
  65. ANGLES = CFrame.Angles
  66. EULER = CFrame.fromEulerAnglesXYZ
  67. COS = math.cos
  68. ACOS = math.acos
  69. SIN = math.sin
  70. ASIN = math.asin
  71. ABS = math.abs
  72. MRANDOM = math.random
  73. FLOOR = math.floor
  74.  
  75. --//=================================\\
  76. --|| USEFUL VALUES
  77. --\\=================================//
  78.  
  79. Animation_Speed = 3
  80. local FORCERESET = false
  81. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  82. local Speed = 16
  83. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  84. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  85. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  86. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  87. local DAMAGEMULTIPLIER = 1
  88. local ANIM = "Idle"
  89. local ATTACK = false
  90. local EQUIPPED = false
  91. local HOLD = false
  92. local COMBO = 1
  93. local Rooted = false
  94. local Gun = IT("Model")
  95. Gun.Name = "Gun"
  96. local SINE = 0
  97. local KEYHOLD = false
  98. local CHANGE = 2 / Animation_Speed
  99. local WALKINGANIM = false
  100. local VALUE1 = false
  101. local VALUE2 = false
  102. local ROBLOXIDLEANIMATION = IT("Animation")
  103. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  104. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  105. --ROBLOXIDLEANIMATION.Parent = Humanoid
  106. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  107. WEAPONGUI.Name = "BanishV3Gui"
  108. local Weapon = IT("Model")
  109. Weapon.Name = "Adds"
  110. local Effects = IT("Folder", Weapon)
  111. Effects.Name = "Effects"
  112. local ANIMATOR = Humanoid.Animator
  113. local ANIMATE = Character:FindFirstChild("Animate")
  114. local UNANCHOR = true
  115. local TOBANISH = {}
  116. script.Parent = PlayerGui
  117.  
  118. --//=================================\\
  119. --\\=================================//
  120.  
  121. --//=================================\\
  122. --|| CUSTOMIZATION
  123. --\\=================================//
  124.  
  125. Class_Name = "Sharpshooter"
  126. Weapon_Name = "Add-ons"
  127.  
  128. Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
  129. Custom_Color_2 = BRICKC("Maroon"); --2nd color for the weapon.
  130.  
  131. Custom_Color_3 = BRICKC("Really red"); --Color for the abilities.
  132. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  133. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  134. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  135. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  136.  
  137. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  138. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  139. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  140. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  141. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  142.  
  143.  
  144. Player_Size = 1 --Size of the player.
  145. Animation_Speed = 3
  146. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  147.  
  148. local Speed = 20
  149. local Effects2 = {}
  150.  
  151. --//=================================\\
  152. --|| END OF CUSTOMIZATION
  153. --\\=================================//
  154.  
  155.  
  156. --//=================================\\
  157. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  158. --\\=================================//
  159.  
  160. ArtificialHB = Instance.new("BindableEvent", script)
  161. ArtificialHB.Name = "ArtificialHB"
  162.  
  163. script:WaitForChild("ArtificialHB")
  164.  
  165. frame = Frame_Speed
  166. tf = 0
  167. allowframeloss = false
  168. tossremainder = false
  169. lastframe = tick()
  170. script.ArtificialHB:Fire()
  171.  
  172. game:GetService("RunService").Heartbeat:connect(function(s, p)
  173. tf = tf + s
  174. if tf >= frame then
  175. if allowframeloss then
  176. script.ArtificialHB:Fire()
  177. lastframe = tick()
  178. else
  179. for i = 1, math.floor(tf / frame) do
  180. script.ArtificialHB:Fire()
  181. end
  182. lastframe = tick()
  183. end
  184. if tossremainder then
  185. tf = 0
  186. else
  187. tf = tf - frame * math.floor(tf / frame)
  188. end
  189. end
  190. end)
  191.  
  192. local ArtificialHB2 = Instance.new("BindableEvent", script)
  193. ArtificialHB2.Name = "Heartbeat2"
  194.  
  195. script:WaitForChild("Heartbeat2")
  196.  
  197. local tf = 0
  198. local allowframeloss = false
  199. local tossremainder = false
  200. local lastframe = tick()
  201. local frame = 1/60
  202. ArtificialHB2: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.Heartbeat2:Fire()
  209. lastframe = tick()
  210. else
  211. for i = 1, math.floor(tf / frame) do
  212. ArtificialHB2: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. function swait(num)
  225. if num == 0 or num == nil then
  226. ArtificialHB2.Event:wait()
  227. else
  228. for i = 0, num do
  229. ArtificialHB2.Event:wait()
  230. end
  231. end
  232. end
  233.  
  234. local r = 255
  235. local g = 0
  236. local b = 0
  237. coroutine.resume(coroutine.create(function()
  238. while wait() do
  239. for i = 0, 254/5 do
  240. swait()
  241. g = g + 5
  242. end
  243. for i = 0, 254/5 do
  244. swait()
  245. r = r - 5
  246. end
  247. for i = 0, 254/5 do
  248. swait()
  249. b = b + 5
  250. end
  251. for i = 0, 254/5 do
  252. swait()
  253. g = g - 5
  254. end
  255. for i = 0, 254/5 do
  256. swait()
  257. r = r + 5
  258. end
  259. for i = 0, 254/5 do
  260. swait()
  261. b = b - 5
  262. end
  263. end
  264. end))
  265.  
  266. --//=================================\\
  267. --\\=================================//
  268.  
  269. --//=================================\\
  270. --|| SOME FUNCTIONS
  271. --\\=================================//
  272.  
  273. function Clerp(a, b, t)
  274. local qa = {QuaternionFromCFrame(a)}
  275. local qb = {QuaternionFromCFrame(b)}
  276. local ax, ay, az = a.x, a.y, a.z
  277. local bx, by, bz = b.x, b.y, b.z
  278. local _t = 1 - t
  279. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  280. end
  281.  
  282. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  283. local frame = IT("Frame")
  284. frame.BackgroundTransparency = TRANSPARENCY
  285. frame.BorderSizePixel = BORDERSIZEPIXEL
  286. frame.Position = POSITION
  287. frame.Size = SIZE
  288. frame.BackgroundColor3 = COLOR
  289. frame.BorderColor3 = BORDERCOLOR
  290. frame.Name = NAME
  291. frame.Parent = PARENT
  292. return frame
  293. end
  294.  
  295. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  296. local label = IT("TextLabel")
  297. label.BackgroundTransparency = 1
  298. label.Size = UD2(1, 0, 1, 0)
  299. label.Position = UD2(0, 0, 0, 0)
  300. label.TextColor3 = TEXTCOLOR
  301. label.TextStrokeTransparency = STROKETRANSPARENCY
  302. label.TextTransparency = TRANSPARENCY
  303. label.FontSize = TEXTFONTSIZE
  304. label.Font = TEXTFONT
  305. label.BorderSizePixel = BORDERSIZEPIXEL
  306. label.TextScaled = false
  307. label.Text = TEXT
  308. label.Name = NAME
  309. label.Parent = PARENT
  310. return label
  311. end
  312.  
  313. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  314. if FLOOR ~= nil then
  315. coroutine.resume(coroutine.create(function()
  316. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  317. PART.CFrame = CF(POSITION)
  318. for i = 1, 45 do
  319. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  320. RingPiece.Material = FLOOR.Material
  321. RingPiece.Color = FLOOR.Color
  322. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  323. Debris:AddItem(RingPiece,SWAIT)
  324. end
  325. PART:remove()
  326. end))
  327. end
  328. end
  329.  
  330. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  331. if FLOOR ~= nil then
  332. for i = 1, AMOUNT do
  333. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  334. DEBREE.Material = FLOOR.Material
  335. DEBREE.Color = FLOOR.Color
  336. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  337. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  338. coroutine.resume(coroutine.create(function()
  339. Swait(15)
  340. DEBREE.Parent = workspace
  341. DEBREE.CanCollide = true
  342. Debris:AddItem(DEBREE,SWAIT)
  343. end))
  344. end
  345. end
  346. end
  347.  
  348. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  349. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  350. end
  351.  
  352. function PositiveAngle(NUMBER)
  353. if NUMBER >= 0 then
  354. NUMBER = 0
  355. end
  356. return NUMBER
  357. end
  358.  
  359. function NegativeAngle(NUMBER)
  360. if NUMBER <= 0 then
  361. NUMBER = 0
  362. end
  363. return NUMBER
  364. end
  365.  
  366. function Swait(NUMBER)
  367. if NUMBER == 0 or NUMBER == nil then
  368. ArtificialHB.Event:wait()
  369. else
  370. for i = 1, NUMBER do
  371. ArtificialHB.Event:wait()
  372. end
  373. end
  374. end
  375.  
  376. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  377. local NEWMESH = IT(MESH)
  378. if MESH == "SpecialMesh" then
  379. NEWMESH.MeshType = MESHTYPE
  380. if MESHID ~= "nil" and MESHID ~= "" then
  381. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  382. end
  383. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  384. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  385. end
  386. end
  387. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  388. NEWMESH.Scale = SCALE
  389. NEWMESH.Parent = PARENT
  390. return NEWMESH
  391. end
  392.  
  393. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  394. local NEWPART = IT("Part")
  395. NEWPART.formFactor = FORMFACTOR
  396. NEWPART.Reflectance = REFLECTANCE
  397. NEWPART.Transparency = TRANSPARENCY
  398. NEWPART.CanCollide = false
  399. NEWPART.Locked = true
  400. NEWPART.Anchored = true
  401. if ANCHOR == false then
  402. NEWPART.Anchored = false
  403. end
  404. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  405. NEWPART.Name = NAME
  406. NEWPART.Size = SIZE
  407. NEWPART.Position = Torso.Position
  408. NEWPART.Material = MATERIAL
  409. NEWPART:BreakJoints()
  410. NEWPART.Parent = PARENT
  411. return NEWPART
  412. end
  413.  
  414. local function weldBetween(a, b)
  415. local weldd = Instance.new("ManualWeld")
  416. weldd.Part0 = a
  417. weldd.Part1 = b
  418. weldd.C0 = CFrame.new()
  419. weldd.C1 = b.CFrame:inverse() * a.CFrame
  420. weldd.Parent = a
  421. return weldd
  422. end
  423.  
  424.  
  425. function QuaternionFromCFrame(cf)
  426. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  427. local trace = m00 + m11 + m22
  428. if trace > 0 then
  429. local s = math.sqrt(1 + trace)
  430. local recip = 0.5 / s
  431. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  432. else
  433. local i = 0
  434. if m11 > m00 then
  435. i = 1
  436. end
  437. if m22 > (i == 0 and m00 or m11) then
  438. i = 2
  439. end
  440. if i == 0 then
  441. local s = math.sqrt(m00 - m11 - m22 + 1)
  442. local recip = 0.5 / s
  443. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  444. elseif i == 1 then
  445. local s = math.sqrt(m11 - m22 - m00 + 1)
  446. local recip = 0.5 / s
  447. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  448. elseif i == 2 then
  449. local s = math.sqrt(m22 - m00 - m11 + 1)
  450. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  451. end
  452. end
  453. end
  454.  
  455. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  456. local xs, ys, zs = x + x, y + y, z + z
  457. local wx, wy, wz = w * xs, w * ys, w * zs
  458. local xx = x * xs
  459. local xy = x * ys
  460. local xz = x * zs
  461. local yy = y * ys
  462. local yz = y * zs
  463. local zz = z * zs
  464. 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))
  465. end
  466.  
  467. function QuaternionSlerp(a, b, t)
  468. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  469. local startInterp, finishInterp;
  470. if cosTheta >= 0.0001 then
  471. if (1 - cosTheta) > 0.0001 then
  472. local theta = ACOS(cosTheta)
  473. local invSinTheta = 1 / SIN(theta)
  474. startInterp = SIN((1 - t) * theta) * invSinTheta
  475. finishInterp = SIN(t * theta) * invSinTheta
  476. else
  477. startInterp = 1 - t
  478. finishInterp = t
  479. end
  480. else
  481. if (1 + cosTheta) > 0.0001 then
  482. local theta = ACOS(-cosTheta)
  483. local invSinTheta = 1 / SIN(theta)
  484. startInterp = SIN((t - 1) * theta) * invSinTheta
  485. finishInterp = SIN(t * theta) * invSinTheta
  486. else
  487. startInterp = t - 1
  488. finishInterp = t
  489. end
  490. end
  491. 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
  492. end
  493.  
  494. function Clerp(a, b, t)
  495. local qa = {QuaternionFromCFrame(a)}
  496. local qb = {QuaternionFromCFrame(b)}
  497. local ax, ay, az = a.x, a.y, a.z
  498. local bx, by, bz = b.x, b.y, b.z
  499. local _t = 1 - t
  500. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  501. end
  502.  
  503. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  504. local frame = IT("Frame")
  505. frame.BackgroundTransparency = TRANSPARENCY
  506. frame.BorderSizePixel = BORDERSIZEPIXEL
  507. frame.Position = POSITION
  508. frame.Size = SIZE
  509. frame.BackgroundColor3 = COLOR
  510. frame.BorderColor3 = BORDERCOLOR
  511. frame.Name = NAME
  512. frame.Parent = PARENT
  513. return frame
  514. end
  515.  
  516. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  517. local label = IT("TextLabel")
  518. label.BackgroundTransparency = 1
  519. label.Size = UD2(1, 0, 1, 0)
  520. label.Position = UD2(0, 0, 0, 0)
  521. label.TextColor3 = TEXTCOLOR
  522. label.TextStrokeTransparency = STROKETRANSPARENCY
  523. label.TextTransparency = TRANSPARENCY
  524. label.FontSize = TEXTFONTSIZE
  525. label.Font = TEXTFONT
  526. label.BorderSizePixel = BORDERSIZEPIXEL
  527. label.TextScaled = false
  528. label.Text = TEXT
  529. label.Name = NAME
  530. label.Parent = PARENT
  531. return label
  532. end
  533.  
  534. function NoOutlines(PART)
  535. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  536. end
  537.  
  538. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  539. local NEWWELD = IT(TYPE)
  540. NEWWELD.Part0 = PART0
  541. NEWWELD.Part1 = PART1
  542. NEWWELD.C0 = C0
  543. NEWWELD.C1 = C1
  544. NEWWELD.Parent = PARENT
  545. return NEWWELD
  546. end
  547.  
  548. local S = IT("Sound")
  549. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  550. local NEWSOUND = nil
  551. coroutine.resume(coroutine.create(function()
  552. NEWSOUND = S:Clone()
  553. NEWSOUND.Parent = PARENT
  554. NEWSOUND.Volume = VOLUME
  555. NEWSOUND.Pitch = PITCH
  556. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  557. NEWSOUND:play()
  558. if DOESLOOP == true then
  559. NEWSOUND.Looped = true
  560. else
  561. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  562. NEWSOUND:remove()
  563. end
  564. end))
  565. return NEWSOUND
  566. end
  567.  
  568. function CFrameFromTopBack(at, top, back)
  569. local right = top:Cross(back)
  570. 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)
  571. end
  572.  
  573. --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})
  574. function WACKYEFFECT(Table)
  575. local TYPE = (Table.EffectType or "Sphere")
  576. local SIZE = (Table.Size or VT(1,1,1))
  577. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  578. local TRANSPARENCY = (Table.Transparency or 0)
  579. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  580. local CFRAME = (Table.CFrame or Torso.CFrame)
  581. local MOVEDIRECTION = (Table.MoveToPos or nil)
  582. local ROTATION1 = (Table.RotationX or 0)
  583. local ROTATION2 = (Table.RotationY or 0)
  584. local ROTATION3 = (Table.RotationZ or 0)
  585. local MATERIAL = (Table.Material or "Neon")
  586. local COLOR = (Table.Color or C3(1,1,1))
  587. local TIME = (Table.Time or 45)
  588. local SOUNDID = (Table.SoundID or nil)
  589. local SOUNDPITCH = (Table.SoundPitch or nil)
  590. local SOUNDVOLUME = (Table.SoundVolume or nil)
  591. coroutine.resume(coroutine.create(function()
  592. local PLAYSSOUND = false
  593. local SOUND = nil
  594. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  595. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  596. PLAYSSOUND = true
  597. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  598. end
  599. EFFECT.Color = COLOR
  600. local MSH = nil
  601. if TYPE == "Sphere" then
  602. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  603. elseif TYPE == "Block" then
  604. MSH = IT("BlockMesh",EFFECT)
  605. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  606. elseif TYPE == "Wave" then
  607. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  608. elseif TYPE == "Ring" then
  609. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  610. elseif TYPE == "Slash" then
  611. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  612. elseif TYPE == "Round Slash" then
  613. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  614. elseif TYPE == "Swirl" then
  615. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  616. elseif TYPE == "Skull" then
  617. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  618. elseif TYPE == "Crystal" then
  619. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  620. end
  621. if MSH ~= nil then
  622. local MOVESPEED = nil
  623. if MOVEDIRECTION ~= nil then
  624. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  625. end
  626. local GROWTH = SIZE - ENDSIZE
  627. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  628. if TYPE == "Block" then
  629. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  630. else
  631. EFFECT.CFrame = CFRAME
  632. end
  633. for LOOP = 1, TIME+1 do
  634. Swait()
  635. MSH.Scale = MSH.Scale - GROWTH/TIME
  636. if TYPE == "Wave" then
  637. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  638. end
  639. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  640. if TYPE == "Block" then
  641. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  642. else
  643. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  644. end
  645. if MOVEDIRECTION ~= nil then
  646. local ORI = EFFECT.Orientation
  647. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  648. EFFECT.Orientation = ORI
  649. end
  650. end
  651. if PLAYSSOUND == false then
  652. EFFECT:remove()
  653. else
  654. SOUND.Stopped:Connect(function()
  655. EFFECT:remove()
  656. end)
  657. end
  658. else
  659. if PLAYSSOUND == false then
  660. EFFECT:remove()
  661. else
  662. repeat Swait() until SOUND.Playing == false
  663. EFFECT:remove()
  664. end
  665. end
  666. end))
  667. end
  668.  
  669. local DECAL = IT("Decal")
  670. function MakeRing()
  671. local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really red"), "MagicRing", VT(0, 0, 0), true)
  672. local MSH = IT("BlockMesh", RING)
  673. local TOP = DECAL:Clone()
  674. local BOTTOM = DECAL:Clone()
  675. TOP.Parent = RING
  676. BOTTOM.Parent = RING
  677. TOP.Face = "Top"
  678. BOTTOM.Face = "Bottom"
  679. TOP.Texture = "http://www.roblox.com/asset/?id=127817121"
  680. BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121"
  681. local function REMOVE()
  682. coroutine.resume(coroutine.create(function()
  683. local SIZE = MSH.Scale.X
  684. for i = 1, 35 do
  685. Swait()
  686. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  687. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  688. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  689. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  690. end
  691. RING:remove()
  692. end))
  693. end
  694. return RING, MSH, REMOVE
  695. end
  696.  
  697. function MakeForm(PART,TYPE)
  698. if TYPE == "Cyl" then
  699. local MSH = IT("CylinderMesh",PART)
  700. elseif TYPE == "Ball" then
  701. local MSH = IT("SpecialMesh",PART)
  702. MSH.MeshType = "Sphere"
  703. elseif TYPE == "Wedge" then
  704. local MSH = IT("SpecialMesh",PART)
  705. MSH.MeshType = "Wedge"
  706. end
  707. end
  708.  
  709. INJUSTIM = IT("Model", Character)
  710.  
  711. local HAT1 = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  712. MakeForm(HAT1,"Cyl")
  713. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.5,0), CF(0, 0, 0))
  714. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  715. BELT.Color = C3(15/255,15/255,15/255)
  716. MakeForm(BELT,"Cyl")
  717. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  718. local HAT2 = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  719. MakeForm(HAT2,"Cyl")
  720. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  721. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  722. BELT.Color = C3(15/255,15/255,15/255)
  723. MakeForm(BELT,"Cyl")
  724. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  725. local GEM = CreatePart(3, INJUSTIM, "Neon", 0, 0, "New Yeller", "Gem", VT(0.25,0.25,0.1),false)
  726. MakeForm(GEM,"Ball")
  727. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  728. local GEM = CreatePart(3, INJUSTIM, "Neon", 0, 0, "New Yeller", "Gem", VT(0.25,0.25,0.1),false)
  729. MakeForm(GEM,"Ball")
  730. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  731. local GEM = CreatePart(3, INJUSTIM, "Neon", 0, 0, "New Yeller", "Gem", VT(0.1,0.25,0.25),false)
  732. MakeForm(GEM,"Ball")
  733. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  734. local GEM = CreatePart(3, INJUSTIM, "Neon", 0, 0, "New Yeller", "Gem", VT(0.1,0.25,0.25),false)
  735. MakeForm(GEM,"Ball")
  736. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  737. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  738. BELT.Color = C3(15/255,15/255,15/255)
  739. MakeForm(BELT,"Cyl")
  740. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  741. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  742. BELT.Color = C3(15/255,15/255,15/255)
  743. MakeForm(BELT,"Cyl")
  744. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  745. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  746. BELT.Color = C3(15/255,15/255,15/255)
  747. MakeForm(BELT,"Cyl")
  748. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  749. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  750. BELT.Color = C3(15/255,15/255,15/255)
  751. MakeForm(BELT,"Cyl")
  752. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  753. local BELT = CreatePart(3, INJUSTIM, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  754. MakeForm(BELT,"Ball")
  755. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  756.  
  757. for _,v in pairs (INJUSTIM:children()) do
  758. v.Transparency = 1
  759. end
  760.  
  761. function SpawnTrail(FROM,TO,BIG)
  762. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  763. MakeForm(TRAIL,"Cyl")
  764. local DIST = (FROM - TO).Magnitude
  765. if BIG == true then
  766. TRAIL.Size = VT(0.5,DIST,0.5)
  767. else
  768. TRAIL.Size = VT(0.25,DIST,0.25)
  769. end
  770. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  771. coroutine.resume(coroutine.create(function()
  772. for i = 1, 5 do
  773. Swait()
  774. TRAIL.Transparency = TRAIL.Transparency + 0.1
  775. end
  776. TRAIL:remove()
  777. end))
  778. end
  779. --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})
  780. function WACKYEFFECT(Table)
  781. local TYPE = (Table.EffectType or "Sphere")
  782. local SIZE = (Table.Size or VT(1,1,1))
  783. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  784. local TRANSPARENCY = (Table.Transparency or 0)
  785. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  786. local CFRAME = (Table.CFrame or Torso.CFrame)
  787. local MOVEDIRECTION = (Table.MoveToPos or nil)
  788. local ROTATION1 = (Table.RotationX or 0)
  789. local ROTATION2 = (Table.RotationY or 0)
  790. local ROTATION3 = (Table.RotationZ or 0)
  791. local MATERIAL = (Table.Material or "Neon")
  792. local COLOR = (Table.Color or C3(1,1,1))
  793. local TIME = (Table.Time or 45)
  794. local SOUNDID = (Table.SoundID or nil)
  795. local SOUNDPITCH = (Table.SoundPitch or nil)
  796. local SOUNDVOLUME = (Table.SoundVolume or nil)
  797. coroutine.resume(coroutine.create(function()
  798. local PLAYSSOUND = false
  799. local SOUND = nil
  800. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
  801. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  802. PLAYSSOUND = true
  803. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  804. end
  805. EFFECT.Color = COLOR
  806. local MSH = nil
  807. if TYPE == "Sphere" then
  808. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  809. elseif TYPE == "Block" then
  810. MSH = IT("BlockMesh",EFFECT)
  811. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  812. elseif TYPE == "Wave" then
  813. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  814. elseif TYPE == "Ring" then
  815. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  816. elseif TYPE == "Slash" then
  817. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  818. elseif TYPE == "Round Slash" then
  819. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  820. elseif TYPE == "Swirl" then
  821. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  822. elseif TYPE == "Skull" then
  823. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  824. elseif TYPE == "Crystal" then
  825. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  826. end
  827. if MSH ~= nil then
  828. local MOVESPEED = nil
  829. if MOVEDIRECTION ~= nil then
  830. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  831. end
  832. local GROWTH = SIZE - ENDSIZE
  833. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  834. if TYPE == "Block" then
  835. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  836. else
  837. EFFECT.CFrame = CFRAME
  838. end
  839. for LOOP = 1, TIME+1 do
  840. Swait()
  841. MSH.Scale = MSH.Scale - GROWTH/TIME
  842. if TYPE == "Wave" then
  843. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  844. end
  845. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  846. if TYPE == "Block" then
  847. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  848. else
  849. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  850. end
  851. if MOVEDIRECTION ~= nil then
  852. local ORI = EFFECT.Orientation
  853. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  854. EFFECT.Orientation = ORI
  855. end
  856. end
  857. if PLAYSSOUND == false then
  858. EFFECT:remove()
  859. else
  860. SOUND.Stopped:Connect(function()
  861. EFFECT:remove()
  862. end)
  863. end
  864. else
  865. if PLAYSSOUND == false then
  866. EFFECT:remove()
  867. else
  868. repeat Swait() until SOUND.Playing == false
  869. EFFECT:remove()
  870. end
  871. end
  872. end))
  873. end
  874.  
  875. function MakeForm(PART,TYPE)
  876. if TYPE == "Cyl" then
  877. local MSH = IT("CylinderMesh",PART)
  878. elseif TYPE == "Ball" then
  879. local MSH = IT("SpecialMesh",PART)
  880. MSH.MeshType = "Sphere"
  881. elseif TYPE == "Wedge" then
  882. local MSH = IT("SpecialMesh",PART)
  883. MSH.MeshType = "Wedge"
  884. end
  885. end
  886.  
  887. function SpawnTrail(FROM,TO,BIG)
  888. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  889. MakeForm(TRAIL,"Cyl")
  890. local DIST = (FROM - TO).Magnitude
  891. if BIG == true then
  892. TRAIL.Size = VT(0.5,DIST,0.5)
  893. else
  894. TRAIL.Size = VT(0.25,DIST,0.25)
  895. end
  896. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  897. coroutine.resume(coroutine.create(function()
  898. for i = 1, 5 do
  899. Swait()
  900. TRAIL.Transparency = TRAIL.Transparency + 0.1
  901. end
  902. TRAIL:remove()
  903. end))
  904. end
  905.  
  906. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  907. local TORSO = Torso
  908. local HUM = Humanoid
  909. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  910. coroutine.wrap(function()
  911. VT = Vector3.new
  912. MRANDOM = math.random
  913. local A = TIME
  914. local B = INTENSITY
  915. local C = true
  916. local HUMANOID = Humanoid
  917. local TIMER = A or 35
  918. local SHAKE = B or 5
  919. local FADE = C or true
  920. if HUMANOID then
  921. local FADER = SHAKE / TIMER
  922. for i = 1, TIMER do
  923. wait()
  924. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
  925. end
  926. HUMANOID.CameraOffset = VT(0, 0, 0)
  927. end
  928.  
  929. end)()
  930. end
  931. end
  932.  
  933. function chatfunc(text)
  934. local chat = coroutine.wrap(function()
  935. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  936. Character:FindFirstChild("TalkingBillBoard"):destroy()
  937. end
  938. local Bill = Instance.new("BillboardGui",Character)
  939. Bill.Size = UDim2.new(0,100,0,40)
  940. Bill.StudsOffset = Vector3.new(0,3,0)
  941. Bill.Adornee = Character.Head
  942. Bill.Name = "TalkingBillBoard"
  943. local Hehe = Instance.new("TextLabel",Bill)
  944. Hehe.BackgroundTransparency = 1
  945. Hehe.BorderSizePixel = 0
  946. Hehe.Text = ""
  947. Hehe.Font = "Bodoni"
  948. Hehe.TextSize = 40
  949. Hehe.TextStrokeTransparency = 0
  950. Hehe.Size = UDim2.new(1,0,0.5,0)
  951. coroutine.resume(coroutine.create(function()
  952. while Hehe ~= nil do
  953. Swait()
  954. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  955. Hehe.Rotation = math.random(-2.5,2.5)
  956. Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0)
  957. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  958. end
  959. end))
  960. for i = 1,string.len(text),1 do
  961. Swait()
  962. Hehe.Text = string.sub(text,1,i)
  963. end
  964. Swait(90)--Re[math.random(1, 93)]
  965. for i = 0, 1, .025 do
  966. Swait()
  967. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  968. Hehe.TextStrokeTransparency = i
  969. Hehe.TextTransparency = i
  970. end
  971. Bill:Destroy()
  972. end)
  973. chat()
  974. end
  975.  
  976. Debris = game:GetService("Debris")
  977.  
  978. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  979. local DIRECTION = CF(StartPos,EndPos).lookVector
  980. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  981. end
  982.  
  983. function turnto(position)
  984. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  985. end
  986.  
  987. --//=================================\\
  988. --|| RAGDOLL STUFF
  989. --\\=================================//
  990.  
  991. function recurse(root,callback,i)
  992. i= i or 0
  993. for _,v in pairs(root:GetChildren()) do
  994. i = i + 1
  995. callback(i,v)
  996.  
  997. if #v:GetChildren() > 0 then
  998. i = recurse(v,callback,i)
  999. end
  1000. end
  1001.  
  1002. return i
  1003. end
  1004.  
  1005. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1006. attachmentName = attachmentName.."RigAttachment"
  1007. local constraint = Instance.new(className.."Constraint")
  1008. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1009. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1010. constraint.Name = "RagdollConstraint"..part1.Name
  1011.  
  1012. for _,propertyData in next,properties or {} do
  1013. constraint[propertyData[1]] = propertyData[2]
  1014. end
  1015.  
  1016. constraint.Parent = character
  1017. end
  1018.  
  1019. function getAttachment0(character, attachmentName)
  1020. for _,child in next,character:GetChildren() do
  1021. local attachment = child:FindFirstChild(attachmentName)
  1022. if attachment then
  1023. return attachment
  1024. end
  1025. end
  1026. end
  1027.  
  1028. function ArtificialHitbox(Part)
  1029. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1030. HITBOX.CanCollide = true
  1031. HITBOX.CFrame = Part.CFrame
  1032. weldBetween(Part,HITBOX)
  1033. end
  1034.  
  1035. function R15Ragdoll(character,KeepArms)
  1036. character:BreakJoints()
  1037. coroutine.resume(coroutine.create(function()
  1038. recurse(character, function(_,v)
  1039. if v:IsA("Attachment") then
  1040. v.Axis = Vector3.new(0, 1, 0)
  1041. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1042. v.Rotation = Vector3.new(0, 0, 0)
  1043. end
  1044. end)
  1045. for _,child in next,character:GetChildren() do
  1046. if child:IsA("Accoutrement") then
  1047. for _,part in next,child:GetChildren() do
  1048. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1049. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1050. local attachment0 = getAttachment0(character,attachment1.Name)
  1051. if attachment0 and attachment1 then
  1052. local constraint = Instance.new("HingeConstraint")
  1053. constraint.Attachment0 = attachment0
  1054. constraint.Attachment1 = attachment1
  1055. constraint.LimitsEnabled = true
  1056. constraint.UpperAngle = 0
  1057. constraint.LowerAngle = 0
  1058. constraint.Parent = character
  1059. end
  1060. ArtificialHitbox(part)
  1061. elseif part.Name == "HumanoidRootPart" then
  1062. part:remove()
  1063. end
  1064. end
  1065. end
  1066. end
  1067.  
  1068. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1069. {"LimitsEnabled",true};
  1070. {"UpperAngle",5};
  1071. })
  1072. if character:FindFirstChild("Head") then
  1073. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1074. {"LimitsEnabled",true};
  1075. {"UpperAngle",15};
  1076. })
  1077. end
  1078.  
  1079. local handProperties = {
  1080. {"LimitsEnabled", true};
  1081. {"UpperAngle",0};
  1082. {"LowerAngle",0};
  1083. }
  1084. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1085. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1086.  
  1087. local shinProperties = {
  1088. {"LimitsEnabled", true};
  1089. {"UpperAngle", 0};
  1090. {"LowerAngle", -75};
  1091. }
  1092. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1093. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1094.  
  1095. local footProperties = {
  1096. {"LimitsEnabled", true};
  1097. {"UpperAngle", 15};
  1098. {"LowerAngle", -45};
  1099. }
  1100. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1101. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1102. if KeepArms == true then
  1103. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1104. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1105. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1106. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1107. end
  1108. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1109. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1110. Debris:AddItem(character,5)
  1111. end))
  1112. end
  1113.  
  1114. function Ragdoll(Character2,CharTorso,KeepArms)
  1115. coroutine.resume(coroutine.create(function()
  1116. Character2:BreakJoints()
  1117. local hum = Character2:findFirstChild("Humanoid")
  1118. hum:remove()
  1119. local function Scan(ch)
  1120. local e
  1121. for e = 1,#ch do
  1122. Scan(ch[e]:GetChildren())
  1123. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1124. ch[e]:remove()
  1125. end
  1126. end
  1127. end
  1128. local NEWHUM = IT("Humanoid")
  1129. NEWHUM.Name = "Corpse"
  1130. NEWHUM.Health = 0
  1131. NEWHUM.MaxHealth = 0
  1132. NEWHUM.PlatformStand = true
  1133. NEWHUM.Parent = Character2
  1134. NEWHUM.DisplayDistanceType = "None"
  1135.  
  1136. local ch = Character2:GetChildren()
  1137. local i
  1138. for i = 1,#ch do
  1139. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1140. ch[i]:remove()
  1141. end
  1142. end
  1143.  
  1144. local Torso2 = Character2.Torso
  1145. local movevector = Vector3.new()
  1146.  
  1147. if Torso2 then
  1148. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1149. local Head = Character2:FindFirstChild("Head")
  1150. if Head then
  1151. local Neck = Instance.new("Weld")
  1152. Neck.Name = "Neck"
  1153. Neck.Part0 = Torso2
  1154. Neck.Part1 = Head
  1155. Neck.C0 = CFrame.new(0, 1.5, 0)
  1156. Neck.C1 = CFrame.new()
  1157. Neck.Parent = Torso2
  1158.  
  1159. end
  1160. local Limb = Character2:FindFirstChild("Right Arm")
  1161. if Limb and KeepArms == true then
  1162.  
  1163. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1164. local Joint = Instance.new("Glue")
  1165. Joint.Name = "RightShoulder"
  1166. Joint.Part0 = Torso2
  1167. Joint.Part1 = Limb
  1168. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1169. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1170. Joint.Parent = Torso2
  1171.  
  1172. local B = Instance.new("Part")
  1173. B.TopSurface = 0
  1174. B.BottomSurface = 0
  1175. B.formFactor = "Symmetric"
  1176. B.Size = Vector3.new(1, 1, 1)
  1177. B.Transparency = 1
  1178. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1179. B.Parent = Character2
  1180. local W = Instance.new("Weld")
  1181. W.Part0 = Limb
  1182. W.Part1 = B
  1183. W.C0 = CFrame.new(0, -0.5, 0)
  1184. W.Parent = Limb
  1185.  
  1186. end
  1187. local Limb = Character2:FindFirstChild("Left Arm")
  1188. if Limb and KeepArms == true then
  1189.  
  1190. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1191. local Joint = Instance.new("Glue")
  1192. Joint.Name = "LeftShoulder"
  1193. Joint.Part0 = Torso2
  1194. Joint.Part1 = Limb
  1195. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1196. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1197. Joint.Parent = Torso2
  1198.  
  1199. local B = Instance.new("Part")
  1200. B.TopSurface = 0
  1201. B.BottomSurface = 0
  1202. B.formFactor = "Symmetric"
  1203. B.Size = Vector3.new(1, 1, 1)
  1204. B.Transparency = 1
  1205. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1206. B.Parent = Character2
  1207. local W = Instance.new("Weld")
  1208. W.Part0 = Limb
  1209. W.Part1 = B
  1210. W.C0 = CFrame.new(0, -0.5, 0)
  1211. W.Parent = Limb
  1212.  
  1213. end
  1214. local Limb = Character2:FindFirstChild("Right Leg")
  1215. if Limb then
  1216.  
  1217. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1218. local Joint = Instance.new("Glue")
  1219. Joint.Name = "RightHip"
  1220. Joint.Part0 = Torso2
  1221. Joint.Part1 = Limb
  1222. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1223. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1224. Joint.Parent = Torso2
  1225.  
  1226. local B = Instance.new("Part")
  1227. B.TopSurface = 0
  1228. B.BottomSurface = 0
  1229. B.formFactor = "Symmetric"
  1230. B.Size = Vector3.new(1, 1, 1)
  1231. B.Transparency = 1
  1232. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1233. B.Parent = Character2
  1234. local W = Instance.new("Weld")
  1235. W.Part0 = Limb
  1236. W.Part1 = B
  1237. W.C0 = CFrame.new(0, -0.5, 0)
  1238. W.Parent = Limb
  1239.  
  1240. end
  1241. local Limb = Character2:FindFirstChild("Left Leg")
  1242. if Limb then
  1243.  
  1244. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1245. local Joint = Instance.new("Glue")
  1246. Joint.Name = "LeftHip"
  1247. Joint.Part0 = Torso2
  1248. Joint.Part1 = Limb
  1249. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1250. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1251. Joint.Parent = Torso2
  1252.  
  1253. local B = Instance.new("Part")
  1254. B.TopSurface = 0
  1255. B.BottomSurface = 0
  1256. B.formFactor = "Symmetric"
  1257. B.Size = Vector3.new(1, 1, 1)
  1258. B.Transparency = 1
  1259. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1260. B.Parent = Character2
  1261. local W = Instance.new("Weld")
  1262. W.Part0 = Limb
  1263. W.Part1 = B
  1264. W.C0 = CFrame.new(0, -0.5, 0)
  1265. W.Parent = Limb
  1266.  
  1267. end
  1268. --[
  1269. local Bar = Instance.new("Part")
  1270. Bar.TopSurface = 0
  1271. Bar.BottomSurface = 0
  1272. Bar.formFactor = "Symmetric"
  1273. Bar.Size = Vector3.new(1, 1, 1)
  1274. Bar.Transparency = 1
  1275. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1276. Bar.Parent = Character2
  1277. local Weld = Instance.new("Weld")
  1278. Weld.Part0 = Torso2
  1279. Weld.Part1 = Bar
  1280. Weld.C0 = CFrame.new(0, 0.5, 0)
  1281. Weld.Parent = Torso2
  1282. --]]
  1283. end
  1284. Character2.Parent = workspace
  1285. Debris:AddItem(Character2,5)
  1286.  
  1287. return Character2,Torso2
  1288. end))
  1289. end
  1290.  
  1291. --//=================================\\
  1292. --|| WEAPON CREATION
  1293. --\\=================================//
  1294.  
  1295. local Particle = IT("ParticleEmitter",nil)
  1296. Particle.Enabled = false
  1297. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1298. Particle.LightEmission = 0.5
  1299. Particle.Rate = 250
  1300. Particle.ZOffset = 0.2
  1301. Particle.Rotation = NumberRange.new(-180, 180)
  1302. Particle.RotSpeed = NumberRange.new(-180, 180)
  1303. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1304. Particle.Color = ColorSequence.new(C3(1,0,0),C3(1,0,0))
  1305.  
  1306. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1307. function ParticleEmitter(Table)
  1308. local PRTCL = Particle:Clone()
  1309. local Speed = Table.Speed or 5
  1310. local Drag = Table.Drag or 0
  1311. local Size1 = Table.Size1 or 1
  1312. local Size2 = Table.Size2 or 5
  1313. local Lifetime1 = Table.Lifetime1 or 1
  1314. local Lifetime2 = Table.Lifetime2 or 1.5
  1315. local Parent = Table.Parent or Torso
  1316. local Emit = Table.Emit or 100
  1317. local Offset = Table.Offset or 360
  1318. local Acel = Table.Acel or VT(0,0,0)
  1319. local Enabled = Table.Enabled or false
  1320. PRTCL.Parent = Parent
  1321. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1322. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1323. PRTCL.Speed = NumberRange.new(Speed)
  1324. PRTCL.VelocitySpread = Offset
  1325. PRTCL.Drag = Drag
  1326. PRTCL.Acceleration = Acel
  1327. if Enabled == false then
  1328. PRTCL:Emit(Emit)
  1329. Debris:AddItem(PRTCL,Lifetime2)
  1330. else
  1331. PRTCL.Enabled = true
  1332. end
  1333. return PRTCL
  1334. end
  1335.  
  1336. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1337. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1338. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1339. MakeForm(Part,"Wedge")
  1340. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1341. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1342. MakeForm(Part,"Wedge")
  1343. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1344. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1345. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1346. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1347. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1348. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1349. MakeForm(Part,"Cyl")
  1350. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1351. for i = 1, 8 do
  1352. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1353. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1354. end
  1355. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1356. MakeForm(Part,"Cyl")
  1357. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1358. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1359. MakeForm(Part,"Ball")
  1360. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1361. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1362. MakeForm(Part,"Wedge")
  1363. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1364. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1365. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1366. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1367. MakeForm(Part,"Cyl")
  1368. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1369. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1370. MakeForm(Part,"Cyl")
  1371. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1372. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1373. MakeForm(Part,"Cyl")
  1374. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1375. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1376. MakeForm(Part,"Wedge")
  1377. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1378. local LASTPART = Handle
  1379. for i = 1, 10 do
  1380. if LASTPART == Handle then
  1381. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1382. LASTPART = Part
  1383. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1384. else
  1385. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1386. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1387. LASTPART = Part
  1388. end
  1389. end
  1390.  
  1391. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1392. MakeForm(Barrel,"Cyl")
  1393. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1394. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1395. MakeForm(Part,"Cyl")
  1396. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1397. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1398. MakeForm(Part,"Wedge")
  1399. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1400. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1401. MakeForm(Hole,"Cyl")
  1402. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1403. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1404. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1405. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1406. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1407. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1408. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1409. coroutine.resume(coroutine.create(function()
  1410. while wait() do
  1411. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1412. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1413. end
  1414. end))
  1415.  
  1416. PRT1 = ParticleEmitter({Speed = 0.35, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(1,5,1)})
  1417. --PRT2 = 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)})
  1418.  
  1419. for _, c in pairs(Weapon:GetDescendants()) do
  1420. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1421. c.Material = "Glass"
  1422. c.Color = C3(0,0,0)
  1423. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1424. c.Color = C3(1,0,0)
  1425. c.Material = "Neon"
  1426. end
  1427. end
  1428.  
  1429. Weapon.Parent = Character
  1430. for _, c in pairs(Weapon:GetChildren()) do
  1431. if c.ClassName == "Part" then
  1432. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1433. end
  1434. end
  1435.  
  1436. local SKILLTEXTCOLOR = C3(1,0,0)
  1437. local SKILLFONT = "Fantasy"
  1438. local SKILLTEXTSIZE = 5
  1439.  
  1440. Humanoid.Died:connect(function()
  1441. ATTACK = true
  1442. end)
  1443.  
  1444. 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")
  1445. 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")
  1446. 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")
  1447. 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")
  1448. 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")
  1449. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1450.  
  1451. function printbye(Name)
  1452. local MESSAGES = {"Stay until It's Over...... ","You are not desired here, ","Begone, "}
  1453. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1454. end
  1455.  
  1456. workspace.ChildAdded:connect(function(instance)
  1457. for BANISH = 1, #TOBANISH do
  1458. if TOBANISH[BANISH] ~= nil then
  1459. if instance.Name == TOBANISH[BANISH] then
  1460. coroutine.resume(coroutine.create(function()
  1461. printbye(instance.Name)
  1462. instance:ClearAllChildren()
  1463. Debris:AddItem(instance,0.0005)
  1464. end))
  1465. end
  1466. end
  1467. end
  1468. end)
  1469.  
  1470. --//=================================\\
  1471. --|| DAMAGING
  1472. --\\=================================//
  1473.  
  1474. function ApplyDamage(Humanoid,Damage,OneShot)
  1475. Damage = Damage * DAMAGEMULTIPLIER
  1476. local DEAD = false
  1477. if Humanoid.Health < 2000 and OneShot == false then
  1478. if Humanoid.Health - Damage > 0 then
  1479. Humanoid.Health = Humanoid.Health - Damage
  1480. else
  1481. Humanoid.Parent:BreakJoints()
  1482. DEAD = true
  1483. end
  1484. else
  1485. DEAD = true
  1486. Humanoid.Parent:BreakJoints()
  1487. end
  1488. if DEAD == true then
  1489. local PARTS = {}
  1490. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  1491. if CHILD:IsA("BasePart") then
  1492. table.insert(PARTS,CHILD)
  1493. end
  1494. end
  1495. coroutine.resume(coroutine.create(function()
  1496. wait(2)
  1497. repeat
  1498. Swait()
  1499. local PIECE = nil
  1500. if MRANDOM(1,5) == 1 then
  1501. for E = 1, #PARTS do
  1502. if MRANDOM(1,5) == 1 then
  1503. PIECE = PARTS[E]
  1504. table.remove(PARTS,E)
  1505. break
  1506. end
  1507. end
  1508. end
  1509. if PIECE ~= nil then
  1510. if PIECE.Name == "Head" then
  1511. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1512. else
  1513. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1514. end
  1515. PIECE:remove()
  1516. end
  1517. until #PARTS == 0
  1518. end))
  1519. end
  1520. end
  1521.  
  1522.  
  1523. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1524. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1525. defence.Name = ("HitBy"..Player.Name)
  1526. game:GetService("Debris"):AddItem(defence, 0.001)
  1527. Damage = Damage * DAMAGEMULTIPLIER
  1528. if Humanoid.Health ~= 0 then
  1529. local CritChance = MRANDOM(1,100)
  1530. if Damage > Humanoid.Health then
  1531. Damage = math.ceil(Humanoid.Health)
  1532. if Damage == 0 then
  1533. Damage = 0.1
  1534. end
  1535. end
  1536. Humanoid.Health = Humanoid.Health - Damage
  1537. end
  1538. end
  1539.  
  1540. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1541. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1542. defence.Name = ("HitBy"..Player.Name)
  1543. game:GetService("Debris"):AddItem(defence, 0.001)
  1544. Damage = Damage * DAMAGEMULTIPLIER
  1545. if Humanoid.Health ~= 0 then
  1546. local CritChance = MRANDOM(1,100)
  1547. if Damage > Humanoid.Health then
  1548. Damage = math.ceil(Humanoid.Health)
  1549. if Damage == 0 then
  1550. Damage = 0.1
  1551. end
  1552. end
  1553. Humanoid.Health = Humanoid.Health - Damage
  1554. end
  1555. end
  1556.  
  1557. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1558. local CHILDREN = workspace:GetDescendants()
  1559. for index, CHILD in pairs(CHILDREN) do
  1560. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1561. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1562. if HUM then
  1563. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1564. if TORSO then
  1565. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1566. if INSTAKILL == true then
  1567. CHILD:BreakJoints()
  1568. else
  1569. local DMG = MRANDOM(MINDMG,MAXDMG)
  1570. ApplyDamage(HUM,DMG,TORSO)
  1571. end
  1572. if FLING > 0 then
  1573. for _, c in pairs(CHILD:GetChildren()) do
  1574. if c:IsA("BasePart") then
  1575. local bv = Instance.new("BodyVelocity")
  1576. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1577. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1578. bv.Parent = c
  1579. Debris:AddItem(bv,0.05)
  1580. end
  1581. end
  1582. end
  1583. end
  1584. end
  1585. end
  1586. end
  1587. end
  1588. end
  1589.  
  1590. function CameraEnshaking(Length, Intensity)
  1591. coroutine.resume(coroutine.create(function()
  1592. local intensity = 1 * Intensity
  1593. local rotM = 0.01 * Intensity
  1594. for i = 0, Length, 0.1 do
  1595. Swait()
  1596. intensity = intensity - 0.05 * Intensity / Length
  1597. rotM = rotM - 5.0E-4 * Intensity / Length
  1598. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  1599. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  1600. end
  1601. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1602. end))
  1603. end
  1604.  
  1605. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  1606. local CHILDREN = workspace:GetDescendants()
  1607. for index, CHILD in pairs(CHILDREN) do
  1608. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1609. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1610. if HUM then
  1611. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1612. if TORSO then
  1613. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1614. if BRUTAL == true then
  1615. Kill(CHILD)
  1616. else
  1617. CHILD:BreakJoints()
  1618. end
  1619. end
  1620. end
  1621. end
  1622. end
  1623. end
  1624. end
  1625.  
  1626. function Kill(Char)
  1627. local NewCharacter = IT("Model",Effects)
  1628. NewCharacter.Name = "Ow im ded ;-;"
  1629. for _, c in pairs(Char:GetDescendants()) do
  1630. if c:IsA("BasePart") and c.Transparency == 0 then
  1631. c:BreakJoints()
  1632. c.Material = "Glass"
  1633. c.Color = C3(1,0,0)
  1634. c.CanCollide = true
  1635. c.Transparency = 0.3
  1636. if c:FindFirstChildOfClass("SpecialMesh") then
  1637. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1638. end
  1639. if c.Name == "Head" then
  1640. c:ClearAllChildren()
  1641. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1642. end
  1643. if c.ClassName == "MeshPart" then
  1644. c.TextureID = ""
  1645. end
  1646. if c:FindFirstChildOfClass("BodyPosition") then
  1647. c:FindFirstChildOfClass("BodyPosition"):remove()
  1648. end
  1649. if c:FindFirstChildOfClass("ParticleEmitter") then
  1650. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1651. end
  1652. c.Parent = NewCharacter
  1653. c.Name = "DeadPart"
  1654. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1655. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1656. end
  1657. end
  1658. Char:remove()
  1659. Debris:AddItem(NewCharacter,5)
  1660. end
  1661.  
  1662. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1663. local CHILDREN = workspace:GetDescendants()
  1664. for index, CHILD in pairs(CHILDREN) do
  1665. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1666. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1667. if HUM then
  1668. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1669. if TORSO then
  1670. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1671. if BRUTAL == true then
  1672. Kill(CHILD)
  1673. else
  1674. CHILD:BreakJoints()
  1675. end
  1676. end
  1677. end
  1678. end
  1679. end
  1680. end
  1681. end
  1682.  
  1683. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1684. local CHILDREN = workspace:GetDescendants()
  1685. for index, CHILD in pairs(CHILDREN) do
  1686. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1687. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1688. if HUM then
  1689. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1690. if TORSO then
  1691. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1692. if BRUTAL == true then
  1693. Kill(CHILD)
  1694. else
  1695. CHILD:BreakJoints()
  1696. end
  1697. end
  1698. end
  1699. end
  1700. end
  1701. end
  1702. end
  1703.  
  1704. function Banish(Foe)
  1705. if Foe then
  1706. coroutine.resume(coroutine.create(function()
  1707. --if game.Players:FindFirstChild(Foe.Name) then
  1708. table.insert(TOBANISH,Foe.Name)
  1709. printbye(Foe.Name)
  1710. --end
  1711. Foe.Archivable = true
  1712. local CLONE = Foe:Clone()
  1713. Foe:Destroy()
  1714. CLONE.Parent = Effects
  1715. CLONE:BreakJoints()
  1716. local MATERIALS = {"Glass","Neon"}
  1717. for _, c in pairs(CLONE:GetDescendants()) do
  1718. if c:IsA("BasePart") then
  1719. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1720. CreateSound(138271815, c, 10, 1, false)
  1721. end
  1722. c.Anchored = true
  1723. c.Transparency = c.Transparency + 0.2
  1724. c.Material = MATERIALS[MRANDOM(1,2)]
  1725. c.Color = C3(1,0,0)
  1726. if c.ClassName == "MeshPart" then
  1727. c.TextureID = ""
  1728. end
  1729. if c:FindFirstChildOfClass("SpecialMesh") then
  1730. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1731. end
  1732. if c:FindFirstChildOfClass("Decal") then
  1733. c:FindFirstChildOfClass("Decal"):remove()
  1734. end
  1735. c.Name = "Banished"
  1736. c.CanCollide = false
  1737. else
  1738. c:remove()
  1739. end
  1740. end
  1741. local A = false
  1742. for i = 1, 35 do
  1743. if A == false then
  1744. A = true
  1745. elseif A == true then
  1746. A = false
  1747. end
  1748. for _, c in pairs(CLONE:GetDescendants()) do
  1749. if c:IsA("BasePart") then
  1750. c.Anchored = true
  1751. c.Material = MATERIALS[MRANDOM(1,2)]
  1752. c.Transparency = c.Transparency + 0.8/35
  1753. if A == false then
  1754. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1755. elseif A == true then
  1756. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1757. end
  1758. end
  1759. end
  1760. Swait()
  1761. end
  1762. CLONE:remove()
  1763. end))
  1764. end
  1765. end
  1766.  
  1767.  
  1768. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1769. local CHILDREN = workspace:GetDescendants()
  1770. for index, CHILD in pairs(CHILDREN) do
  1771. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1772. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1773. if HUM then
  1774. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1775. if TORSO then
  1776. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1777. if ISBANISH == true then
  1778. Banish(CHILD)
  1779. else
  1780. if ISBANISH == "Gravity" then
  1781. HUM.PlatformStand = true
  1782. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1783. local grav = Instance.new("BodyPosition",TORSO)
  1784. grav.D = 15
  1785. grav.P = 20000
  1786. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1787. grav.position = TORSO.Position
  1788. grav.Name = "V3BanishForce"..Player.Name
  1789. else
  1790. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1791. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1792. end
  1793. else
  1794. HUM.PlatformStand = false
  1795. end
  1796. end
  1797. elseif ISBANISH == "Gravity" then
  1798. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1799. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1800. HUM.PlatformStand = false
  1801. end
  1802. end
  1803. end
  1804. end
  1805. end
  1806. end
  1807. end
  1808.  
  1809. function SpawnSmite(POS)
  1810. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1811. local EMITPOS = HITPOS
  1812. if HITFLOOR ~= nil then
  1813. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1814. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1815. EMITPOS = HITPOS
  1816. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1817. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1818. EMITPOS = HITPOS
  1819. end
  1820. end
  1821. if HITFLOOR ~= nil then
  1822. ApplyAoE(EMITPOS,10)
  1823. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1824. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1825. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1826. for i = 1, 5 do
  1827. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1828. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1829. end
  1830. end
  1831. end
  1832.  
  1833. --//=================================\\
  1834. --|| ATTACK FUNCTIONS AND STUFF
  1835. --\\=================================//
  1836.  
  1837. function eh()
  1838. ATTACK = true
  1839. Rooted = false
  1840. Speed = 20
  1841. Swait()
  1842. local CHILDREN = workspace:GetDescendants()
  1843. for index, CHILD in pairs(CHILDREN) do
  1844. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1845. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1846. if HUM then
  1847. local TORSO = CHILD:FindFirstChild("Head")
  1848. if TORSO then
  1849. if (TORSO.Position - Head.Position).Magnitude <= 25 then
  1850. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1851. TORSO:remove()
  1852. if CHILD:FindFirstChild("Torso") then
  1853. Ragdoll(CHILD,Torso,true)
  1854. elseif CHILD:FindFirstChild("UpperTorso") then
  1855. R15Ragdoll(CHILD,true)
  1856. end
  1857. end
  1858. end
  1859. end
  1860. end
  1861. end
  1862. 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})
  1863. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  1864. for i=0, 0.3, 0.1 / Animation_Speed do
  1865. Swait()
  1866. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1867. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1868. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1869. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1870. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1871. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1872. end
  1873. Speed = 20
  1874. ATTACK = false
  1875. Rooted = false
  1876. end
  1877.  
  1878. function Taunt()
  1879. ATTACK = true
  1880. Rooted = true
  1881. CreateSound("1238240145", Torso, 6, 0.9)
  1882. for i=0, 0.6, 0.1 / Animation_Speed do
  1883. Swait()
  1884. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1885. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1886. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1887. 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)
  1888. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1889. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1890. end
  1891. for i=0, 0.6, 0.1 / Animation_Speed do
  1892. Swait()
  1893. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1894. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1895. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1896. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1897. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1898. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1899. end
  1900. for i=0, 0.6, 0.1 / Animation_Speed do
  1901. Swait()
  1902. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1903. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1904. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1905. 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)
  1906. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1907. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1908. end
  1909. for i=0, 0.6, 0.1 / Animation_Speed do
  1910. Swait()
  1911. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1912. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1913. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1914. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1915. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1916. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1917. end
  1918. for i=0, 0.6, 0.1 / Animation_Speed do
  1919. Swait()
  1920. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1921. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1922. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1923. 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)
  1924. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1925. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1926. end
  1927. for i=0, 0.6, 0.1 / Animation_Speed do
  1928. Swait()
  1929. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1930. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1931. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1932. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1933. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1934. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1935. end
  1936. ATTACK = false
  1937. Rooted = false
  1938. end
  1939.  
  1940. function InjusticeMode()
  1941. SWITCH = "Injustice"
  1942. tecks.Text = "Injustice"
  1943. tecks.Font = "Bodoni"
  1944. tecks.TextColor3 = BrickColor.new("Black").Color
  1945. tecks.TextStrokeColor3 = BrickColor.new("New Yeller").Color
  1946. SOUNDID = 1092048938
  1947. PRT1.Rate = 0
  1948. PRT1.Color = ColorSequence.new(BrickColor.new("New Yeller").Color)
  1949. for _,v in pairs (INJUSTIM:children()) do
  1950. v.Transparency = 0
  1951. end
  1952. for _, c in pairs(Weapon:GetDescendants()) do
  1953. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1954. c.Material = "Glass"
  1955. c.Color = C3(0,0,0)
  1956. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1957. c.Color = BrickColor.new("New Yeller").Color
  1958. c.Material = "Neon"
  1959. end
  1960. end
  1961. end
  1962.  
  1963. function RainbowMode()
  1964. SWITCH = "Rainbow"
  1965. tecks.Text = "Rainbow"
  1966. tecks.Font = "Arcade"
  1967. tecks.TextColor3 = Color3.new(r/255,g/255,b/255)
  1968. tecks.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
  1969. SOUNDID = 1359036559
  1970. PRT1.Rate = 0
  1971. PRT1.Color = ColorSequence.new(BrickColor.new("New Yeller").Color)
  1972. for _,v in pairs (INJUSTIM:children()) do
  1973. v.Transparency = 1
  1974. end
  1975. for _, c in pairs(Weapon:GetDescendants()) do
  1976. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1977. c.Material = "Neon"
  1978. c.Color = Color3.new(r/255,g/255,b/255)
  1979. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1980. c.Color = Color3.new(r/255,g/255,b/255)
  1981. c.Material = "Neon"
  1982. end
  1983. end
  1984. end
  1985.  
  1986. function EvolvedMode()
  1987. SWITCH = "Super-Evolved Banish"
  1988. tecks.Text = "Super-Evolved Banish"
  1989. tecks.Font = "Fantasy"
  1990. tecks.TextColor3 = BrickColor.new("Really red").Color
  1991. tecks.TextStrokeColor3 = BrickColor.new("Really red").Color
  1992. SOUNDID = 472032669
  1993. for _,v in pairs (INJUSTIM:children()) do
  1994. v.Transparency = 1
  1995. end
  1996. PRT1.Rate = 250
  1997. PRT1.Color = ColorSequence.new(C3(1,0,0),C3(1,0,0))
  1998. for _, c in pairs(Weapon:GetDescendants()) do
  1999. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2000. c.Material = "Glass"
  2001. c.Color = C3(0,0,0)
  2002. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2003. c.Color = Color3.new(1, 0, 0)
  2004. c.Material = "Neon"
  2005. end
  2006. end
  2007. end
  2008.  
  2009. function Shot()
  2010. ATTACK = true
  2011. Rooted = false
  2012. for i=0, 0.2, 0.05 / Animation_Speed do
  2013. Swait()
  2014. turnto(Mouse.Hit.p)
  2015. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2016. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2017. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2018. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2019. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2020. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2021. end
  2022. repeat
  2023. for i=0, 0.2, 0.05 / Animation_Speed do
  2024. Swait()
  2025. turnto(Mouse.Hit.p)
  2026. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2027. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2028. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2029. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2030. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2031. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2032. end
  2033. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2034. SpawnTrail(Hole.Position,POS)
  2035. if HIT ~= nil then
  2036. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2037. Banish(HIT.Parent)
  2038. end
  2039. end
  2040. 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})
  2041. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2042. 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})
  2043. 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})
  2044. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  2045. for i=0, 0.2, 0.05 / Animation_Speed do
  2046. Swait()
  2047. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2048. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  2049. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2050. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2051. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2052. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2053. end
  2054. until KEYHOLD == false
  2055. ATTACK = false
  2056. Rooted = false
  2057. end
  2058.  
  2059. function Shot2()
  2060. ATTACK = true
  2061. Rooted = false
  2062. for i=0, 0.2, 0.05 / Animation_Speed do
  2063. Swait()
  2064. turnto(Mouse.Hit.p)
  2065. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2066. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2067. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2068. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2069. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2070. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2071. end
  2072. repeat
  2073. for i=0, 0.2, 0.05 / Animation_Speed do
  2074. Swait()
  2075. turnto(Mouse.Hit.p)
  2076. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2077. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2078. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2079. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2080. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2081. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2082. end
  2083. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2084. SpawnTrail(Hole.Position,POS)
  2085. if HIT ~= nil then
  2086. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2087. Kill(HIT.Parent)
  2088. end
  2089. end
  2090. 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})
  2091. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2092. 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})
  2093. 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})
  2094. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  2095. for i=0, 0.2, 0.05 / Animation_Speed do
  2096. Swait()
  2097. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2098. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  2099. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2100. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2101. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2102. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2103. end
  2104. until KEYHOLD == false
  2105. ATTACK = false
  2106. Rooted = false
  2107. end
  2108.  
  2109. function AttackTemplate()
  2110. ATTACK = true
  2111. Rooted = false
  2112. for i=0, 1, 0.1 / Animation_Speed do
  2113. Swait()
  2114. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2115. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2116. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2117. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2118. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2119. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2120. end
  2121. ATTACK = false
  2122. Rooted = false
  2123. end
  2124.  
  2125. function Finisher()
  2126. local TARGET = Mouse.Target
  2127. if TARGET ~= nil then
  2128. if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
  2129. local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
  2130. local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  2131. if ROOT and HUM.Health > 0 then
  2132. local FOE = Mouse.Target.Parent
  2133. ATTACK = true
  2134. Rooted = true
  2135. RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4)
  2136. ROOT.Anchored = true
  2137. CreateSound(670796769, Torso, 9999, 0.6, false)
  2138. CreateSound(362990415, Torso, 5, 1.08, false)
  2139. for i=0, 0.4, 0.1 / Animation_Speed do
  2140. Swait()
  2141. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2142. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2143. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2144. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2145. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2146. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2147. end
  2148. HUM.PlatformStand = true
  2149. ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
  2150. coroutine.resume(coroutine.create(function()
  2151. Swait()
  2152. ROOT.Anchored = true
  2153. end))
  2154. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
  2155. for i=0, 0.2, 0.1 / Animation_Speed do
  2156. Swait()
  2157. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2158. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2159. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2160. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2161. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2162. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2163. end
  2164. 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})
  2165. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2166. for i=0, 0.2, 0.1 / Animation_Speed do
  2167. Swait()
  2168. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  2169. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  2170. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2171. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2172. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2173. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2174. end
  2175. 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})
  2176. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2177. local AMMO = 6
  2178. local FIRING = true
  2179. local SHOOTING = false
  2180. local TIMER = 70
  2181. CreateSound(147722227, GunPoint, 6, 1.3, false)
  2182. for i=0, 0.2, 0.1 / Animation_Speed do
  2183. Swait()
  2184. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2185. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2186. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2187. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2188. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2189. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2190. end
  2191. 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})
  2192. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2193. for i = 1, 6 do
  2194. local GUNPOS = Hole.CFrame*CF(0, 0, 0).p
  2195. local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
  2196. 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})
  2197. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2198. HUM.Health = HUM.Health/1.5
  2199. for i=0, 0.2, 0.1 / Animation_Speed do
  2200. Swait()
  2201. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2202. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2203. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2204. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2205. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2206. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2207. end
  2208. 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})
  2209. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2210. for i=0, 0.2, 0.1 / Animation_Speed do
  2211. Swait()
  2212. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2213. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2216. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2217. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2218. end
  2219. end
  2220. 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})
  2221. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2222. ApplyDamage(HUM,0,true)
  2223. FOE:BreakJoints()
  2224. ROOT.Anchored = false
  2225. for i=0, 0.3, 0.1 / Animation_Speed do
  2226. Swait()
  2227. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2228. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  2229. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2230. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2231. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2232. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2233. end
  2234. ATTACK = false
  2235. Rooted = false
  2236. end
  2237. end
  2238. end
  2239. end
  2240.  
  2241.  
  2242. --//=================================\\
  2243. --|| ASSIGN THINGS TO KEYS
  2244. --\\=================================//
  2245.  
  2246. function MouseDown(Mouse)
  2247. if ATTACK == false then
  2248. end
  2249. end
  2250.  
  2251. function MouseUp(Mouse)
  2252. HOLD = false
  2253. end
  2254.  
  2255. function KeyDown(Key)
  2256. KEYHOLD = true
  2257. if Key == "z" and ATTACK == false then
  2258. Shot()
  2259. end
  2260. if Key == "g" and ATTACK == false then
  2261. InjusticeMode()
  2262. end
  2263. if Key == "q" and ATTACK == false then
  2264. EvolvedMode()
  2265. end
  2266. if Key == "e" and ATTACK == false then
  2267. RainbowMode()
  2268. end
  2269. if Key == "v" and ATTACK == false then
  2270. Shot2()
  2271. end
  2272.  
  2273. if Key == "x" and ATTACK == false then
  2274. Finisher()
  2275. end
  2276.  
  2277. if Key == "f" and ATTACK == false then
  2278. for i=0, 0.3, 0.1 / Animation_Speed do
  2279. Swait()
  2280. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2281. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2282. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2283. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2284. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2285. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2286. end
  2287. 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})
  2288. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  2289. for i=0, 0.3, 0.1 / Animation_Speed do
  2290. Swait()
  2291. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2292. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2293. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2294. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2295. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2296. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2297. end
  2298. 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})
  2299. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  2300. TOBANISH = {}
  2301. end
  2302.  
  2303. if Key == "t" and ATTACK == false then
  2304. Taunt()
  2305. end
  2306.  
  2307. if Key == "c" and ATTACK == false then
  2308. eh()
  2309. end
  2310. end
  2311.  
  2312. function KeyUp(Key)
  2313. KEYHOLD = false
  2314. end
  2315.  
  2316. Mouse.Button1Down:connect(function(NEWKEY)
  2317. MouseDown(NEWKEY)
  2318. end)
  2319. Mouse.Button1Up:connect(function(NEWKEY)
  2320. MouseUp(NEWKEY)
  2321. end)
  2322. Mouse.KeyDown:connect(function(NEWKEY)
  2323. KeyDown(NEWKEY)
  2324. end)
  2325. Mouse.KeyUp:connect(function(NEWKEY)
  2326. KeyUp(NEWKEY)
  2327. end)
  2328.  
  2329. --//=================================\\
  2330. --\\=================================//
  2331.  
  2332.  
  2333. function unanchor()
  2334. if UNANCHOR == true then
  2335. g = Character:GetChildren()
  2336. for i = 1, #g do
  2337. if g[i].ClassName == "Part" then
  2338. g[i].Anchored = false
  2339. end
  2340. end
  2341. end
  2342. end
  2343.  
  2344.  
  2345. --//=================================\\
  2346. --|| WRAP THE WHOLE SCRIPT UP
  2347. --\\=================================//
  2348.  
  2349. Humanoid.Changed:connect(function(Jump)
  2350. if Jump == "Jump" and (Disable_Jump == true) then
  2351. Humanoid.Jump = false
  2352. end
  2353. end)
  2354.  
  2355. local FF = IT("ForceField",Character)
  2356. FF.Visible = false
  2357.  
  2358. INSTANT = false
  2359. Speed = 20
  2360. SIZE = 1
  2361.  
  2362. while true do
  2363. Swait()
  2364. SINE = SINE + CHANGE
  2365. sick.SoundId = "rbxassetid://" ..SOUNDID
  2366. ANIMATE.Parent = nil
  2367. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2368. IDLEANIMATION:Play()
  2369. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2370. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2371. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2372. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2373. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2374. if ATTACK == false and VALUE2 == false then
  2375. end
  2376. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2377. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2378. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2379. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2380. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2381. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2382. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2383. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2384. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2385. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2386. end
  2387. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2388. ANIM = "Jump"
  2389. if ATTACK == false and SWITCH == "Super-Evolved Banish" then
  2390. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2391. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2392. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2393. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2394. 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)
  2395. 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)
  2396. end
  2397. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2398. ANIM = "Fall"
  2399. if ATTACK == false and SWITCH == "Super-Evolved Banish" then
  2400. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2401. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2402. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2403. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2404. 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)
  2405. 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)
  2406. end
  2407. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2408. ANIM = "Idle"
  2409. if ATTACK == false and SWITCH == "Super-Evolved Banish" then
  2410. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2411. if MRANDOM(1,7) == 1 then
  2412. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2413. end
  2414. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2415. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2416. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2417. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2418. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2419. end
  2420.  
  2421. if ATTACK == false and SWITCH == "Rainbow" then
  2422. tecks.TextColor3 = Color3.new(r/255,g/255,b/255)
  2423. tecks.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
  2424. for _, c in pairs(Weapon:GetDescendants()) do
  2425. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2426. c.Material = "Neon"
  2427. c.Color = Color3.new(r/255,g/255,b/255)
  2428. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2429. c.Color = Color3.new(r/255,g/255,b/255)
  2430. c.Material = "Neon"
  2431. end
  2432. end
  2433.  
  2434. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2435. if MRANDOM(1,7) == 1 then
  2436. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2437. end
  2438. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2439. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2440. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2441. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2442. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2443.  
  2444. end
  2445.  
  2446.  
  2447.  
  2448. if ATTACK == false and SWITCH == "Injustice" then
  2449. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed)
  2450. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-10), RAD(0), RAD(-32)), 0.5 / Animation_Speed)
  2451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2453. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2454. end
  2455. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2456. ANIM = "Walk"
  2457. if ATTACK == false and SWITCH ~= "Injustice" and SWITCH ~= "Rainbow" then
  2458. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2459. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2460. if MRANDOM(1,7) == 1 then
  2461. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2462. end
  2463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  2465. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2467. end
  2468.  
  2469. if ATTACK == false and SWITCH == "Rainbow" then
  2470. tecks.TextColor3 = Color3.new(r/255,g/255,b/255)
  2471. tecks.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
  2472. for _, c in pairs(Weapon:GetDescendants()) do
  2473. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2474. c.Material = "Neon"
  2475. c.Color = Color3.new(r/255,g/255,b/255)
  2476. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2477. c.Color = Color3.new(r/255,g/255,b/255)
  2478. c.Material = "Neon"
  2479. end
  2480. end
  2481. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2482. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2483. if MRANDOM(1,7) == 1 then
  2484. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2485. end
  2486. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2487. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  2488. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2489. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2490. end
  2491. if ATTACK == false and SWITCH == "Injustice" then
  2492. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2493. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2494. if MRANDOM(1,7) == 1 then
  2495. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2496. end
  2497. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2498. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  2499. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2500. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2501. end
  2502. end
  2503. end
  2504. --end
  2505. Humanoid.DisplayDistanceType = "None"
  2506. SHAKECAM(999999, 25, 25)
  2507. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/4.5,MRANDOM(-5,5)/4.5,MRANDOM(-5,5)/4.5)/60
  2508. unanchor()
  2509. Humanoid.MaxHealth = "inf"
  2510. Humanoid.Health = "inf"
  2511. if Rooted == false then
  2512. Disable_Jump = false
  2513. Humanoid.WalkSpeed = Speed
  2514. elseif Rooted == true then
  2515. Disable_Jump = true
  2516. Humanoid.WalkSpeed = 0
  2517. end
  2518. Humanoid.PlatformStand = false
  2519. script.Parent = PlayerGui
  2520. Character.Parent = workspace
  2521. Humanoid.Parent = Character
  2522. --//=================================\\
  2523. --\\=================================//
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529. --//====================================================\\--
  2530. --|| END OF SCRIPT
  2531. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement