Ghosite

SLB

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