Advertisement
HenloMyDude

GALAXY

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