Advertisement
Bendy928443534

Untitled

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