Advertisement
Guest User

Untitled

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