Advertisement
doryna2281337

Untitled

Sep 9th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.41 KB | None | 0 0
  1. wait(0.2)
  2. Player = game:GetService("Players").LocalPlayer
  3. PlayerGui = Player.PlayerGui
  4. Cam = workspace.CurrentCamera
  5. Backpack = Player.Backpack
  6. Character = Player.Character
  7. Humanoid = Character.Humanoid
  8. Mouse = Player:GetMouse()
  9. RootPart = Character["HumanoidRootPart"]
  10. Torso = Character["Torso"]
  11. Head = Character["Head"]
  12. RightArm = Character["Right Arm"]
  13. LeftArm = Character["Left Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LeftLeg = Character["Left Leg"]
  16. RootJoint = RootPart["RootJoint"]
  17. Neck = Torso["Neck"]
  18. RightShoulder = Torso["Right Shoulder"]
  19. LeftShoulder = Torso["Left Shoulder"]
  20. RightHip = Torso["Right Hip"]
  21. LeftHip = Torso["Left Hip"]
  22. local sick = Instance.new("Sound",Character)
  23. local LAUGHS = {834001699,834001752,834001797,834001828}
  24.  
  25. IT = Instance.new
  26. CF = CFrame.new
  27. VT = Vector3.new
  28. RAD = math.rad
  29. C3 = Color3.new
  30. UD2 = UDim2.new
  31. BRICKC = BrickColor.new
  32. ANGLES = CFrame.Angles
  33. EULER = CFrame.fromEulerAnglesXYZ
  34. COS = math.cos
  35. ACOS = math.acos
  36. SIN = math.sin
  37. ASIN = math.asin
  38. ABS = math.abs
  39. MRANDOM = math.random
  40. FLOOR = math.floor
  41.  
  42. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  43. local NEWMESH = IT(MESH)
  44. if MESH == "SpecialMesh" then
  45. NEWMESH.MeshType = MESHTYPE
  46. if MESHID ~= "nil" and MESHID ~= "" then
  47. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  48. end
  49. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  50. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  51. end
  52. end
  53. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  54. NEWMESH.Scale = SCALE
  55. NEWMESH.Parent = PARENT
  56. return NEWMESH
  57. end
  58.  
  59. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  60. local NEWPART = IT("Part")
  61. NEWPART.formFactor = FORMFACTOR
  62. NEWPART.Reflectance = REFLECTANCE
  63. NEWPART.Transparency = TRANSPARENCY
  64. NEWPART.CanCollide = false
  65. NEWPART.Locked = true
  66. NEWPART.Anchored = true
  67. if ANCHOR == false then
  68. NEWPART.Anchored = false
  69. end
  70. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  71. NEWPART.Name = NAME
  72. NEWPART.Size = SIZE
  73. NEWPART.Position = Torso.Position
  74. NEWPART.Material = MATERIAL
  75. NEWPART:BreakJoints()
  76. NEWPART.Parent = PARENT
  77. return NEWPART
  78. end
  79.  
  80. Class_Name = "Void Face"
  81. Weapon_Name = "Add-ons"
  82.  
  83. Player_Size = 3 --Size of the player.
  84. Animation_Speed = 1
  85. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  86.  
  87. local Speed = 100
  88. local Effects2 = {}
  89.  
  90. local function weldBetween(a, b)
  91. local weldd = Instance.new("ManualWeld")
  92. weldd.Part0 = a
  93. weldd.Part1 = b
  94. weldd.C0 = CFrame.new()
  95. weldd.C1 = b.CFrame:inverse() * a.CFrame
  96. weldd.Parent = a
  97. return weldd
  98. end
  99.  
  100. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  101. local acs = Instance.new("Part")
  102. acs.CanCollide = false
  103. acs.Anchored = false
  104. acs.Size = Vector3.new(0,0,0)
  105. acs.CFrame = attachmentpart.CFrame
  106. acs.Parent = Character
  107. acs.BrickColor = color
  108. local meshs = Instance.new("SpecialMesh")
  109. meshs.MeshId = mesh
  110. meshs.TextureId = texture
  111. meshs.Parent = acs
  112. meshs.Scale = scale
  113. meshs.Offset = offset
  114. weldBetween(attachmentpart,acs)
  115. end
  116.  
  117. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  118. if TYPE == "Gem" then
  119. local acs = CreatePart(3, Character, "Glass", 0, 0, COLOR, "Part", VT(0,0,0))
  120. acs.Anchored = false
  121. acs.CanCollide = false
  122. acs.CFrame = PART.CFrame
  123. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  124. weldBetween(PART,acs)
  125. elseif TYPE == "Skull" then
  126. local acs = CreatePart(3, Character, "Glass", 0, 0, COLOR, "Part", VT(0,0,0))
  127. acs.Anchored = false
  128. acs.CanCollide = false
  129. acs.CFrame = PART.CFrame
  130. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  131. weldBetween(PART,acs)
  132. elseif TYPE == "Eye" then
  133. local acs = CreatePart(3, Character, "Glass", 0, 0, COLOR, "Part", VT(0,0,0))
  134. acs.Anchored = false
  135. acs.CanCollide = false
  136. acs.CFrame = PART.CFrame
  137. local acs2 = CreateMesh("SpecialMesh", acs, "Block", "", "", SIZE, OFFSET)
  138. weldBetween(PART,acs)
  139. end
  140. end
  141.  
  142. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  143. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  144. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  145. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  146. local CHANGEDEFENSE = 0
  147. local CHANGEDAMAGE = 0
  148. local CHANGEMOVEMENT = 0
  149. local ANIM = "Swim"
  150. local ATTACK = false
  151. local EQUIPPED = false
  152. local HOLD = false
  153. local COMBO = 1
  154. local Rooted = false
  155. local SINE = 0
  156. local KEYHOLD = false
  157. local CHANGE = 2 / Animation_Speed
  158. local WALKINGANIM = false
  159. local WALK = 0
  160. local VALUE1 = false
  161. local VALUE2 = false
  162. local ROBLOXIDLEANIMATION = IT("Animation")
  163. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  164. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  165. --ROBLOXIDLEANIMATION.Parent = Humanoid
  166. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  167. WEAPONGUI.Name = "Weapon GUI"
  168. local Weapon = IT("Model")
  169. Weapon.Name = Weapon_Name
  170. local Effects = IT("Folder", Weapon)
  171. Effects.Name = "Effects"
  172. local ANIMATOR = Humanoid.Animator
  173. local ANIMATE = Character.Animate
  174. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  175. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  176. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  177. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  178. local TAUNTS = {"368794227","368794903","368794985"}
  179. local UNANCHOR = true
  180.  
  181. ArtificialHB = Instance.new("BindableEvent", script)
  182. ArtificialHB.Name = "ArtificialHB"
  183.  
  184. script:WaitForChild("ArtificialHB")
  185.  
  186. frame = Frame_Speed
  187. tf = 0
  188. allowframeloss = false
  189. tossremainder = false
  190. lastframe = tick()
  191. script.ArtificialHB:Fire()
  192.  
  193. game:GetService("RunService").Heartbeat:connect(function(s, p)
  194. tf = tf + s
  195. if tf >= frame then
  196. if allowframeloss then
  197. script.ArtificialHB:Fire()
  198. lastframe = tick()
  199. else
  200. for i = 1, math.floor(tf / frame) do
  201. script.ArtificialHB:Fire()
  202. end
  203. lastframe = tick()
  204. end
  205. if tossremainder then
  206. tf = 0
  207. else
  208. tf = tf - frame * math.floor(tf / frame)
  209. end
  210. end
  211. end)
  212.  
  213. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  214. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  215. end
  216.  
  217. function PositiveAngle(NUMBER)
  218. if NUMBER >= 0 then
  219. NUMBER = 0
  220. end
  221. return NUMBER
  222. end
  223.  
  224. function NegativeAngle(NUMBER)
  225. if NUMBER <= 0 then
  226. NUMBER = 0
  227. end
  228. return NUMBER
  229. end
  230.  
  231. function Swait(NUMBER)
  232. if NUMBER == 0 or NUMBER == nil then
  233. ArtificialHB.Event:wait()
  234. else
  235. for i = 1, NUMBER do
  236. ArtificialHB.Event:wait()
  237. end
  238. end
  239. end
  240.  
  241. function QuaternionFromCFrame(cf)
  242. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  243. local trace = m00 + m11 + m22
  244. if trace > 0 then
  245. local s = math.sqrt(1 + trace)
  246. local recip = 0.5 / s
  247. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  248. else
  249. local i = 0
  250. if m11 > m00 then
  251. i = 1
  252. end
  253. if m22 > (i == 0 and m00 or m11) then
  254. i = 2
  255. end
  256. if i == 0 then
  257. local s = math.sqrt(m00 - m11 - m22 + 1)
  258. local recip = 0.5 / s
  259. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  260. elseif i == 1 then
  261. local s = math.sqrt(m11 - m22 - m00 + 1)
  262. local recip = 0.5 / s
  263. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  264. elseif i == 2 then
  265. local s = math.sqrt(m22 - m00 - m11 + 1)
  266. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  267. end
  268. end
  269. end
  270.  
  271. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  272. local xs, ys, zs = x + x, y + y, z + z
  273. local wx, wy, wz = w * xs, w * ys, w * zs
  274. local xx = x * xs
  275. local xy = x * ys
  276. local xz = x * zs
  277. local yy = y * ys
  278. local yz = y * zs
  279. local zz = z * zs
  280. 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))
  281. end
  282.  
  283. function QuaternionSlerp(a, b, t)
  284. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  285. local startInterp, finishInterp;
  286. if cosTheta >= 0.0001 then
  287. if (1 - cosTheta) > 0.0001 then
  288. local theta = ACOS(cosTheta)
  289. local invSinTheta = 1 / SIN(theta)
  290. startInterp = SIN((1 - t) * theta) * invSinTheta
  291. finishInterp = SIN(t * theta) * invSinTheta
  292. else
  293. startInterp = 1 - t
  294. finishInterp = t
  295. end
  296. else
  297. if (1 + cosTheta) > 0.0001 then
  298. local theta = ACOS(-cosTheta)
  299. local invSinTheta = 1 / SIN(theta)
  300. startInterp = SIN((t - 1) * theta) * invSinTheta
  301. finishInterp = SIN(t * theta) * invSinTheta
  302. else
  303. startInterp = t - 1
  304. finishInterp = t
  305. end
  306. end
  307. 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
  308. end
  309.  
  310. function Clerp(a, b, t)
  311. local qa = {QuaternionFromCFrame(a)}
  312. local qb = {QuaternionFromCFrame(b)}
  313. local ax, ay, az = a.x, a.y, a.z
  314. local bx, by, bz = b.x, b.y, b.z
  315. local _t = 1 - t
  316. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  317. end
  318.  
  319. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  320. local frame = IT("Frame")
  321. frame.BackgroundTransparency = TRANSPARENCY
  322. frame.BorderSizePixel = BORDERSIZEPIXEL
  323. frame.Position = POSITION
  324. frame.Size = SIZE
  325. frame.BackgroundColor3 = COLOR
  326. frame.BorderColor3 = BORDERCOLOR
  327. frame.Name = NAME
  328. frame.Parent = PARENT
  329. return frame
  330. end
  331.  
  332. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  333. local label = IT("TextLabel")
  334. label.BackgroundTransparency = 1
  335. label.Size = UD2(1, 0, 1, 0)
  336. label.Position = UD2(0, 0, 0, 0)
  337. label.TextColor3 = TEXTCOLOR
  338. label.TextStrokeTransparency = STROKETRANSPARENCY
  339. label.TextTransparency = TRANSPARENCY
  340. label.FontSize = TEXTFONTSIZE
  341. label.Font = TEXTFONT
  342. label.BorderSizePixel = BORDERSIZEPIXEL
  343. label.TextScaled = false
  344. label.Text = TEXT
  345. label.Name = NAME
  346. label.Parent = PARENT
  347. return label
  348. end
  349.  
  350. function NoOutlines(PART)
  351. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  352. end
  353.  
  354.  
  355. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  356. local NEWWELD = IT(TYPE)
  357. NEWWELD.Part0 = PART0
  358. NEWWELD.Part1 = PART1
  359. NEWWELD.C0 = C0
  360. NEWWELD.C1 = C1
  361. NEWWELD.Parent = PARENT
  362. return NEWWELD
  363. end
  364.  
  365. local sound = IT("Sound",nil)
  366.  
  367. function CreateSound(ID, PARENT, VOLUME, PITCH)
  368. local NEWSOUND = nil
  369. coroutine.resume(coroutine.create(function()
  370. NEWSOUND = sound:Clone()
  371. NEWSOUND.Parent = PARENT
  372. NEWSOUND.Volume = VOLUME
  373. NEWSOUND.Pitch = PITCH
  374. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  375. Swait()
  376. NEWSOUND:play()
  377. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  378. end))
  379. return NEWSOUND
  380. end
  381.  
  382. --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})
  383. function WACKYEFFECT(Table)
  384. local TYPE = (Table.EffectType or "Sphere")
  385. local SIZE = (Table.Size or VT(1,1,1))
  386. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  387. local TRANSPARENCY = (Table.Transparency or 0)
  388. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  389. local CFRAME = (Table.CFrame or Torso.CFrame)
  390. local MOVEDIRECTION = (Table.MoveToPos or nil)
  391. local ROTATION1 = (Table.RotationX or 0)
  392. local ROTATION2 = (Table.RotationY or 0)
  393. local ROTATION3 = (Table.RotationZ or 0)
  394. local MATERIAL = (Table.Material or "Neon")
  395. local COLOR = (Table.Color or C3(1,1,1))
  396. local TIME = (Table.Time or 45)
  397. local SOUNDID = (Table.SoundID or nil)
  398. local SOUNDPITCH = (Table.SoundPitch or nil)
  399. local SOUNDVOLUME = (Table.SoundVolume or nil)
  400. coroutine.resume(coroutine.create(function()
  401. local PLAYSSOUND = false
  402. local SOUND = nil
  403. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  404. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  405. PLAYSSOUND = true
  406. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  407. end
  408. EFFECT.Color = COLOR
  409. local MSH = nil
  410. if TYPE == "Sphere" then
  411. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  412. elseif TYPE == "Block" then
  413. MSH = IT("BlockMesh",EFFECT)
  414. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  415. elseif TYPE == "Wave" then
  416. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  417. elseif TYPE == "Ring" then
  418. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  419. elseif TYPE == "Slash" then
  420. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  421. elseif TYPE == "Round Slash" then
  422. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  423. elseif TYPE == "Swirl" then
  424. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  425. elseif TYPE == "Skull" then
  426. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  427. elseif TYPE == "Crystal" then
  428. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  429. end
  430. if MSH ~= nil then
  431. local MOVESPEED = nil
  432. if MOVEDIRECTION ~= nil then
  433. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  434. end
  435. local GROWTH = SIZE - ENDSIZE
  436. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  437. if TYPE == "Block" then
  438. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  439. else
  440. EFFECT.CFrame = CFRAME
  441. end
  442. for LOOP = 1, TIME+1 do
  443. Swait()
  444. MSH.Scale = MSH.Scale - GROWTH/TIME
  445. if TYPE == "Wave" then
  446. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  447. end
  448. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  449. if TYPE == "Block" then
  450. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  451. else
  452. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  453. end
  454. if MOVEDIRECTION ~= nil then
  455. local ORI = EFFECT.Orientation
  456. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  457. EFFECT.Orientation = ORI
  458. end
  459. end
  460. if PLAYSSOUND == false then
  461. EFFECT:remove()
  462. else
  463. SOUND.Stopped:Connect(function()
  464. EFFECT:remove()
  465. end)
  466. end
  467. else
  468. if PLAYSSOUND == false then
  469. EFFECT:remove()
  470. else
  471. repeat Swait() until SOUND.Playing == false
  472. EFFECT:remove()
  473. end
  474. end
  475. end))
  476. end
  477.  
  478. function MakeForm(PART,TYPE)
  479. if TYPE == "Cyl" then
  480. local MSH = IT("CylinderMesh",PART)
  481. elseif TYPE == "Ball" then
  482. local MSH = IT("SpecialMesh",PART)
  483. MSH.MeshType = "Sphere"
  484. elseif TYPE == "Wedge" then
  485. local MSH = IT("SpecialMesh",PART)
  486. MSH.MeshType = "Wedge"
  487. end
  488. end
  489.  
  490. Debris = game:GetService("Debris")
  491.  
  492. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  493. local DIRECTION = CF(StartPos,EndPos).lookVector
  494. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  495. end
  496.  
  497. function turnto(position)
  498. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  499. end
  500.  
  501. function SpawnTrail(FROM,TO,BIG)
  502. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  503. MakeForm(TRAIL,"Cyl")
  504. local DIST = (FROM - TO).Magnitude
  505. if BIG == true then
  506. TRAIL.Size = VT(0.5,DIST,0.5)
  507. else
  508. TRAIL.Size = VT(0.25,DIST,0.25)
  509. end
  510. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  511. coroutine.resume(coroutine.create(function()
  512. for i = 1, 5 do
  513. Swait()
  514. TRAIL.Transparency = TRAIL.Transparency + 0.1
  515. end
  516. TRAIL:remove()
  517. end))
  518. end
  519.  
  520. local asd = Instance.new("ParticleEmitter")
  521. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  522. asd.LightEmission = .1
  523. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  524. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  525. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  526. asd.Transparency = bbb
  527. asd.Size = aaa
  528. asd.ZOffset = .9
  529. asd.Acceleration = Vector3.new(0, -15, 0)
  530. asd.LockedToPart = false
  531. asd.EmissionDirection = "Back"
  532. asd.Lifetime = NumberRange.new(1, 2)
  533. asd.Rotation = NumberRange.new(-100, 100)
  534. asd.RotSpeed = NumberRange.new(-100, 100)
  535. asd.Speed = NumberRange.new(10)
  536. asd.Enabled = false
  537. asd.VelocitySpread = 999
  538.  
  539. function getbloody(victim,amount)
  540. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  541. PART.CFrame = victim.CFrame
  542. local HITPLAYERSOUNDS = {"356551938","264486467"}
  543. Debris:AddItem(PART,5)
  544. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  545. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  546. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  547. local prtcl = asd:Clone()
  548. prtcl.Parent = PART
  549. prtcl:Emit(amount*10)
  550. end
  551.  
  552. local Particle = IT("ParticleEmitter",nil)
  553. Particle.Enabled = false
  554. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  555. Particle.LightEmission = 0.5
  556. Particle.Rate = 150
  557. Particle.ZOffset = 1
  558. Particle.Rotation = NumberRange.new(-180, 180)
  559. Particle.RotSpeed = NumberRange.new(-180, 180)
  560. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  561. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  562.  
  563. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  564. function ParticleEmitter(Table)
  565. local PRTCL = Particle:Clone()
  566. local Speed = Table.Speed or 5
  567. local Drag = Table.Drag or 0
  568. local Size1 = Table.Size1 or 1
  569. local Size2 = Table.Size2 or 5
  570. local Lifetime1 = Table.Lifetime1 or 1
  571. local Lifetime2 = Table.Lifetime2 or 1.5
  572. local Parent = Table.Parent or Torso
  573. local Emit = Table.Emit or 100
  574. local Offset = Table.Offset or 360
  575. local Acel = Table.Acel or VT(0,0,0)
  576. local Enabled = Table.Enabled or false
  577. PRTCL.Parent = Parent
  578. PRTCL.Size = NumberSequence.new(Size1,Size2)
  579. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  580. PRTCL.Speed = NumberRange.new(Speed)
  581. PRTCL.VelocitySpread = Offset
  582. PRTCL.Drag = Drag
  583. PRTCL.Acceleration = Acel
  584. if Enabled == false then
  585. PRTCL:Emit(Emit)
  586. Debris:AddItem(PRTCL,Lifetime2)
  587. else
  588. PRTCL.Enabled = true
  589. end
  590. return PRTCL
  591. end
  592.  
  593.  
  594. function CFrameFromTopBack(at, top, back)
  595. local right = top:Cross(back)
  596. 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)
  597. end
  598.  
  599. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  600. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  601. local mesh = IT("SpecialMesh",wave)
  602. mesh.MeshType = "FileMesh"
  603. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  604. mesh.Scale = SIZE
  605. mesh.Offset = VT(0,0,-SIZE.X/8)
  606. wave.CFrame = CFRAME
  607. coroutine.resume(coroutine.create(function(PART)
  608. for i = 1, WAIT do
  609. Swait()
  610. mesh.Scale = mesh.Scale + GROW
  611. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  612. if DOESROT == true then
  613. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  614. end
  615. wave.Transparency = wave.Transparency + (0.5/WAIT)
  616. if wave.Transparency > 0.99 then
  617. wave:remove()
  618. end
  619. end
  620. end))
  621. end
  622.  
  623. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  624. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  625. local mesh = IT("SpecialMesh",wave)
  626. mesh.MeshType = "FileMesh"
  627. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  628. mesh.Scale = SIZE
  629. mesh.Offset = VT(0,0,-SIZE.X/8)
  630. wave.CFrame = CFRAME
  631. coroutine.resume(coroutine.create(function(PART)
  632. for i = 1, WAIT do
  633. Swait()
  634. mesh.Scale = mesh.Scale + GROW
  635. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  636. if DOESROT == true then
  637. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  638. end
  639. wave.Transparency = wave.Transparency + (0.5/WAIT)
  640. if wave.Transparency > 0.99 then
  641. wave:remove()
  642. end
  643. end
  644. end))
  645. end
  646.  
  647. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  648. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  649. local mesh = IT("SpecialMesh",wave)
  650. mesh.MeshType = "FileMesh"
  651. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  652. mesh.Scale = SIZE
  653. mesh.Offset = VT(0,0,-SIZE.X/8)
  654. wave.CFrame = CFRAME
  655. coroutine.resume(coroutine.create(function(PART)
  656. for i = 1, WAIT do
  657. Swait()
  658. mesh.Scale = mesh.Scale + GROW
  659. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  660. if DOESROT == true then
  661. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  662. end
  663. wave.Transparency = wave.Transparency + (0.5/WAIT)
  664. if wave.Transparency > 0.99 then
  665. wave:remove()
  666. end
  667. end
  668. end))
  669. end
  670.  
  671. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  672. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  673. local mesh = IT("SpecialMesh",wave)
  674. mesh.MeshType = "FileMesh"
  675. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  676. mesh.Scale = SIZE
  677. mesh.Offset = VT(0,0,-SIZE.X/8)
  678. wave.CFrame = CFRAME
  679. coroutine.resume(coroutine.create(function(PART)
  680. for i = 1, WAIT do
  681. Swait()
  682. mesh.Scale = mesh.Scale + GROW
  683. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  684. if DOESROT == true then
  685. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  686. end
  687. wave.Transparency = wave.Transparency + (0.5/WAIT)
  688. if wave.Transparency > 0.99 then
  689. wave:remove()
  690. end
  691. end
  692. end))
  693. end
  694.  
  695. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  696. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  697. local mesh = IT("SpecialMesh",wave)
  698. mesh.MeshType = "FileMesh"
  699. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  700. mesh.Scale = SIZE
  701. wave.CFrame = CFRAME
  702. coroutine.resume(coroutine.create(function(PART)
  703. for i = 1, WAIT do
  704. Swait()
  705. mesh.Scale = mesh.Scale + GROW
  706. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  707. if DOESROT == true then
  708. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  709. end
  710. wave.Transparency = wave.Transparency + (0.5/WAIT)
  711. if wave.Transparency > 0.99 then
  712. wave:remove()
  713. end
  714. end
  715. end))
  716. end
  717.  
  718. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  719. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  720. local mesh = IT("SpecialMesh",wave)
  721. mesh.MeshType = "FileMesh"
  722. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  723. mesh.Scale = SIZE
  724. wave.CFrame = CFRAME
  725. coroutine.resume(coroutine.create(function(PART)
  726. for i = 1, WAIT do
  727. Swait()
  728. mesh.Scale = mesh.Scale + GROW
  729. if DOESROT == true then
  730. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  731. end
  732. wave.Transparency = wave.Transparency + (0.5/WAIT)
  733. if wave.Transparency > 0.99 then
  734. wave:remove()
  735. end
  736. end
  737. end))
  738. end
  739.  
  740. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  741. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  742. local mesh = IT("SpecialMesh",wave)
  743. mesh.MeshType = "FileMesh"
  744. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  745. mesh.Scale = SIZE
  746. mesh.Offset = VT(0,0,0)
  747. wave.CFrame = CFRAME
  748. coroutine.resume(coroutine.create(function(PART)
  749. for i = 1, WAIT do
  750. Swait()
  751. mesh.Scale = mesh.Scale + GROW
  752. if DOESROT == true then
  753. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  754. end
  755. wave.Transparency = wave.Transparency + (0.5/WAIT)
  756. if wave.Transparency > 0.99 then
  757. wave:remove()
  758. end
  759. end
  760. end))
  761. end
  762.  
  763. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  764. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  765. local mesh = IT("SpecialMesh",wave)
  766. mesh.MeshType = "Sphere"
  767. mesh.Scale = SIZE
  768. mesh.Offset = VT(0,0,0)
  769. wave.CFrame = CFRAME
  770. coroutine.resume(coroutine.create(function(PART)
  771. for i = 1, WAIT do
  772. Swait()
  773. mesh.Scale = mesh.Scale + GROW
  774. wave.Transparency = wave.Transparency + (1/WAIT)
  775. if wave.Transparency > 0.99 then
  776. wave:remove()
  777. end
  778. end
  779. end))
  780. end
  781.  
  782. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  783. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  784. local mesh = IT("BlockMesh",wave)
  785. wave.CFrame = CFRAME
  786. coroutine.resume(coroutine.create(function(PART)
  787. for i = 1, WAIT do
  788. Swait()
  789. mesh.Scale = mesh.Scale + GROW
  790. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  791. wave.Transparency = wave.Transparency + (1/WAIT)
  792. if wave.Transparency > 0.99 then
  793. wave:remove()
  794. end
  795. end
  796. end))
  797. end
  798.  
  799. function MakeForm(PART,TYPE)
  800. if TYPE == "Cyl" then
  801. local MSH = IT("CylinderMesh",PART)
  802. elseif TYPE == "Ball" then
  803. local MSH = IT("SpecialMesh",PART)
  804. MSH.MeshType = "Sphere"
  805. elseif TYPE == "Wedge" then
  806. local MSH = IT("SpecialMesh",PART)
  807. MSH.MeshType = "Wedge"
  808. elseif TYPE == "Head" then
  809. local MSH = IT("SpecialMesh",PART)
  810. MSH.Scale = VT(1.25,1.25,1.25)
  811. end
  812. end
  813.  
  814. function CheckTableForString(Table, String)
  815. for i, v in pairs(Table) do
  816. if string.find(string.lower(String), string.lower(v)) then
  817. return true
  818. end
  819. end
  820. return false
  821. end
  822.  
  823. function CheckIntangible(Hit)
  824. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  825. if Hit and Hit.Parent then
  826. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  827. return true
  828. end
  829. end
  830. return false
  831. end
  832.  
  833. Debris = game:GetService("Debris")
  834.  
  835. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  836. local Direction = CFrame.new(StartPos, Vec).lookVector
  837. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  838. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  839. if RayHit and CheckIntangible(RayHit) then
  840. if DelayIfHit then
  841. wait()
  842. end
  843. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  844. end
  845. return RayHit, RayPos, RayNormal
  846. end
  847.  
  848. function CreateMagicCircle()
  849. local sinkhole = IT("Part")
  850. sinkhole.Size = VT(0,0,0)
  851. sinkhole.Parent = Effects
  852. sinkhole.Material = "Neon"
  853. sinkhole.Color = C3(0,0,0)
  854. sinkhole.Anchored = true
  855. sinkhole.CanCollide = false
  856. sinkhole.Transparency = 1
  857. local decal = IT("Decal",sinkhole)
  858. decal.Face = "Top"
  859. decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
  860. local decal2 = IT("Decal",sinkhole)
  861. decal2.Face = "Bottom"
  862. decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
  863. return sinkhole
  864. end
  865.  
  866. function CreateGUICircle(TARGET)
  867. local GUI = Instance.new("BillboardGui",Character)
  868. GUI.Size = UDim2.new(0,0,0,0)
  869. GUI.Adornee = TARGET
  870. local GUI2 = IT("ImageLabel",GUI)
  871. GUI2.BackgroundTransparency = 1
  872. GUI2.BorderSizePixel = 0
  873. GUI2.Size = UDim2.new(1,0,1,0)
  874. GUI2.SizeConstraint = "RelativeYY"
  875. GUI.AlwaysOnTop = true
  876. GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  877. return GUI,GUI2
  878. end
  879.  
  880. function CastWarpOutlines(TARGET)
  881. coroutine.resume(coroutine.create(function()
  882. local T = TARGET:GetChildren()
  883. for i = 1, # T do
  884. local child = T[i]
  885. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  886. local clone = child:Clone()
  887. clone.Parent = Effects
  888. clone.Anchored = true
  889. clone.CanCollide = false
  890. clone:ClearAllChildren()
  891. clone.CFrame = child.CFrame
  892. if clone.Name == "Head" then
  893. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  894. end
  895. if clone.ClassName == "MeshPart" then
  896. clone.TextureID = ""
  897. end
  898. clone.BrickColor = BRICKC"Black"
  899. clone.Material = "Neon"
  900. coroutine.resume(coroutine.create(function()
  901. for i = 1, 200 do
  902. Swait()
  903. clone.Transparency = clone.Transparency + 0.005
  904. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  905. end
  906. clone:remove()
  907. end))
  908. end
  909. end
  910. end))
  911. end
  912.  
  913. function turnto(position)
  914. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  915. end
  916.  
  917. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Green", "Eyeball", VT(0.15,0.15,0.15),false)
  918. MakeForm(EYE,"Ball")
  919. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  920. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Red", "Eyeball", VT(0.15,0.15,0.15),false)
  921. MakeForm(EYE2,"Ball")
  922. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  923. local LASTPART = Head
  924. for i = 1, 20 do
  925. local MATH = (1-(i/25))
  926. if LASTPART == Head then
  927. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Green", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  928. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  929. LASTPART = Horn
  930. Horn.Color = C3((i*3-3)/255,0,0)
  931. else
  932. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Red", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  933. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  934. LASTPART = Horn
  935. Horn.Color = C3((i*3-3)/255,0,0)
  936. end
  937. end
  938. local LASTPART = Head
  939. for i = 1, 20 do
  940. local MATH = (1-(i/25))
  941. if LASTPART == Head then
  942. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Green", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  943. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  944. LASTPART = Horn
  945. Horn.Color = C3((i*3-3)/255,0,0)
  946. else
  947. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Red", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  948. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  949. LASTPART = Horn
  950. Horn.Color = C3((i*3-3)/255,0,0)
  951. end
  952. end
  953.  
  954. Humanoid.DisplayDistanceType = "None"
  955. local naeeym2 = IT("BillboardGui",Character)
  956. naeeym2.AlwaysOnTop = true
  957. naeeym2.Size = UDim2.new(5,35,2,15)
  958. naeeym2.StudsOffset = Vector3.new(0,2,0)
  959. naeeym2.MaxDistance = 75
  960. naeeym2.Adornee = Character.Head
  961. naeeym2.Name = "Name"
  962. local tecks2 = IT("TextLabel",naeeym2)
  963. tecks2.BackgroundTransparency = 1
  964. tecks2.TextScaled = true
  965. tecks2.BorderSizePixel = 0
  966. tecks2.Text = "meme security"
  967. tecks2.Font = "Fantasy"
  968. tecks2.TextSize = 30
  969. tecks2.TextStrokeTransparency = 0
  970. tecks2.TextColor3 = C3(0,0,0)
  971. tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255)
  972. tecks2.Size = UDim2.new(1,0,0.5,0)
  973. tecks2.Parent = naeeym2
  974. local top = Instance.new("Shirt")
  975. top.ShirtTemplate = "rbxassetid://45695443"
  976. top.Parent = Character
  977. top.Name = "Cloth"
  978. local bottom = Instance.new("Pants")
  979. bottom.PantsTemplate = "rbxassetid://45696190"
  980. bottom.Parent = Character
  981. bottom.Name = "Cloth"
  982.  
  983. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  984. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  985. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  986. local BODYGYRO = IT("BodyGyro", STATPART)
  987. local BODYPOSITION = IT("BodyPosition", STATPART)
  988. BODYPOSITION.P = 2000
  989. BODYPOSITION.D = 100
  990. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  991. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  992. game:GetService("Debris"):AddItem(STATPART ,5)
  993. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  994. BILLBOARDGUI.Adornee = STATPART
  995. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  996. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  997. BILLBOARDGUI.AlwaysOnTop = false
  998. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  999. TEXTLABEL.BackgroundTransparency = 1
  1000. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1001. TEXTLABEL.Text = TEXT
  1002. TEXTLABEL.Font = "SciFi"
  1003. TEXTLABEL.FontSize="Size42"
  1004. TEXTLABEL.TextColor3 = COLOR
  1005. TEXTLABEL.TextStrokeTransparency = 1
  1006. TEXTLABEL.TextScaled = true
  1007. TEXTLABEL.TextWrapped = true
  1008. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1009. if LABELTYPE == "Normal" then
  1010. for i = 1, 20 do
  1011. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1012. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  1013. end
  1014. elseif LABELTYPE == "Debuff" then
  1015. for i = 1, 20 do
  1016. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1017. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  1018. end
  1019. elseif LABELTYPE == "Shock" then
  1020. local ORIGIN = STATPART.Position
  1021. for i = 1, 20 do
  1022. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1023. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  1024. end
  1025. end
  1026. THEPART.Parent = nil
  1027. end),STATPART, BODYPOSITION, TEXTLABEL)
  1028. end
  1029.  
  1030. function BulletDetection(FROM,TO,BRUTAL)
  1031. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1032. coroutine.resume(coroutine.create(function()
  1033. if AIMHIT ~= nil then
  1034. if AIMHIT.Parent ~= Character then
  1035. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1036. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1037. if BRUTAL == true then
  1038. Kill(AIMHIT.Parent)
  1039. else
  1040. getbloody(AIMHIT,15)
  1041. AIMHIT.Parent:BreakJoints()
  1042. if AIMHIT.Name == "Head" then
  1043. AIMHIT.Name = "HEADSHOT"
  1044. AIMHIT:remove()
  1045. end
  1046. end
  1047. else
  1048. if BRUTAL == true then
  1049. Kill(AIMHIT.Parent.Parent)
  1050. else
  1051. AIMHIT.Parent.Parent:BreakJoints()
  1052. end
  1053. end
  1054. end
  1055. end
  1056. end
  1057. end))
  1058. SpawnTrail(FROM,AIMPOS)
  1059. return AIMHIT,AIMPOS,NORMAL
  1060. end
  1061.  
  1062. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain)
  1063. local dmg = math.random(min,max)
  1064. for i,v in ipairs(workspace:GetChildren()) do
  1065. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1066. local body = v:GetChildren()
  1067. for part = 1, #body do
  1068. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1069. if(body[part].Position - position).Magnitude < radius then
  1070. if v.ClassName == "Model" then
  1071. if v:FindFirstChildOfClass("Humanoid") then
  1072. local HUMAN = v:FindFirstChildOfClass("Humanoid")
  1073. if HUMAN.Health ~= 0 then
  1074. if HasChain == true then
  1075. local defence = Instance.new("BoolValue",v)
  1076. defence.Name = ("HitBy"..Player.Name)
  1077. game:GetService("Debris"):AddItem(defence, 1)
  1078. coroutine.resume(coroutine.create(function()
  1079. local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1080. if TORSO then
  1081. --print("Found "..v.Name.."'s Torso")
  1082. local PART = IT("Part",Effects)
  1083. PART.Anchored = true
  1084. PART.CanCollide = false
  1085. PART.Transparency = 1
  1086. PART.CFrame = CF(position)
  1087. Debris:AddItem(PART,15)
  1088. local A = IT("Attachment",PART)
  1089. --TORSO.Anchored = true
  1090. local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1091. --print("Chain start")
  1092. Front.CFrame = CF(position)
  1093. Front.CanCollide = true
  1094. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  1095. local B = IT("Attachment",Front)
  1096. local ChainLink = IT("Beam",Effects)
  1097. ChainLink.Texture = "rbxassetid://1262544869"
  1098. ChainLink.TextureSpeed = 0
  1099. ChainLink.FaceCamera = true
  1100. ChainLink.Width0 = 3
  1101. ChainLink.Attachment0 = A
  1102. ChainLink.Attachment1 = B
  1103. ChainLink.TextureMode = "Static"
  1104. local bv = Instance.new("BodyVelocity")
  1105. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1106. bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500
  1107. bv.Parent = Front
  1108. bv.Name = "MOVE"
  1109. --print("Chain made")
  1110. coroutine.resume(coroutine.create(function()
  1111. Swait(30)
  1112. bv:remove()
  1113. local POS = Front.Position
  1114. Front.CanCollide = false
  1115. local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0)
  1116. local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0)
  1117. for i = 0, 1, 0.07 do
  1118. Swait()
  1119. Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i))
  1120. end
  1121. Front:remove()
  1122. ChainLink:remove()
  1123. end))
  1124. local harm = Front.Touched:Connect(function(hit)
  1125. impale(Front,hit)
  1126. end)
  1127. end
  1128. end))
  1129. elseif DoesWarp == true then
  1130. local defence = Instance.new("BoolValue",v)
  1131. defence.Name = ("HitBy"..Player.Name)
  1132. game:GetService("Debris"):AddItem(defence, 0.001)
  1133. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1134. Warp(TORSO,Instakill)
  1135. else
  1136. if CanBeDodgedByJumping == true then
  1137. if body[part].Position.Y < position.Y+5 then
  1138. if math.random(1,100) < critrate+1 then
  1139. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  1140. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1141. else
  1142. HUMAN.Health = HUMAN.Health - dmg
  1143. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1144. end
  1145. local defence = Instance.new("BoolValue",v)
  1146. defence.Name = ("HitBy"..Player.Name)
  1147. game:GetService("Debris"):AddItem(defence, 0.01)
  1148. end
  1149. else
  1150. if beserk == true then
  1151. HUMAN.Health = 0
  1152. end
  1153. if math.random(1,100) < critrate+1 then
  1154. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  1155. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1156. else
  1157. HUMAN.Health = HUMAN.Health - dmg
  1158. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1159. end
  1160. local defence = Instance.new("BoolValue",v)
  1161. defence.Name = ("HitBy"..Player.Name)
  1162. game:GetService("Debris"):AddItem(defence, 0.01)
  1163. end
  1164. end
  1165. end
  1166. end
  1167. end
  1168. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1169. end
  1170. end
  1171. end
  1172. if v.ClassName == "Part" then
  1173. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1174. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1175. end
  1176. end
  1177. end
  1178. end
  1179. end
  1180.  
  1181. function Warp(Victim,WarpToVoid)
  1182. print("Warping "..Victim.Name.."...")
  1183. Victim.Anchored = true
  1184. coroutine.resume(coroutine.create(function()
  1185. local GUI,GUI2 = CreateGUICircle(Victim)
  1186. CreateSound("1208650519", Victim, 10, 1)
  1187. for i = 1, 100 do
  1188. Swait()
  1189. GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0)
  1190. GUI2.Rotation = GUI2.Rotation + 4
  1191. end
  1192. CastWarpOutlines(Victim.Parent)
  1193. if WarpToVoid == false then
  1194. Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  1195. CreateSound("1177785010", Victim, 10, 1)
  1196. local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  1197. if HUMANOID ~= nil then
  1198. local dmg = MRANDOM(75,95)
  1199. HUMANOID.Health = HUMANOID.Health - dmg
  1200. StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  1201. end
  1202. for i = 1, 50 do
  1203. Swait()
  1204. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1205. GUI2.Rotation = GUI2.Rotation - 8
  1206. end
  1207. Victim.Anchored = false
  1208. GUI:remove()
  1209. elseif WarpToVoid == true then
  1210. CastWarpOutlines(Victim.Parent)
  1211. q = Victim.Parent:GetChildren()
  1212. for i = 1, #q do
  1213. if q[i] ~= Victim then
  1214. q[i]:remove()
  1215. end
  1216. end
  1217. CreateSound("1177785010", Victim, 10, 1)
  1218. Victim.Transparency = 1
  1219. for i = 1, 50 do
  1220. Swait()
  1221. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1222. GUI2.Rotation = GUI2.Rotation - 8
  1223. end
  1224. Victim.Parent:remove()
  1225. end
  1226. end))
  1227. end
  1228.  
  1229. function killnearest(position,range,maxstrength)
  1230. for i,v in ipairs(workspace:GetChildren()) do
  1231. local body = v:GetChildren()
  1232. for part = 1, #body do
  1233. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1234. if(body[part].Position - position).Magnitude < range then
  1235. if v.ClassName == "Model" then
  1236. v:BreakJoints()
  1237. end
  1238. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1239. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1240. end
  1241. end
  1242. end
  1243. if v.ClassName == "Part" then
  1244. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1245. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1246. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1247. end
  1248. end
  1249. end
  1250. end
  1251.  
  1252. function AttackTemplate()
  1253. ATTACK = true
  1254. Rooted = false
  1255. for i=0, 1, 0.1 / Animation_Speed do
  1256. Swait()
  1257. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1258. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1259. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1260. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1261. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1262. 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.15 / Animation_Speed)
  1263. 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.15 / Animation_Speed)
  1264. end
  1265. ATTACK = false
  1266. Rooted = false
  1267. end
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282. wait()
  1283. local Player = game.Players.localPlayer
  1284. local Character = Player.Character
  1285. local plr = game:service'Players'.LocalPlayer
  1286. local Humanoid = Character.Humanoid
  1287. local char = plr.Character
  1288. local hum = char.Humanoid
  1289. local ra = char["Right Arm"]
  1290. local la= char["Left Arm"]
  1291. local rl= char["Right Leg"]
  1292. local ll = char["Left Leg"]
  1293. local hed = char.Head
  1294. local root = char.HumanoidRootPart
  1295. local rootj = root.RootJoint
  1296. local tors = char.Torso
  1297. local mouse = plr:GetMouse()
  1298. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1299. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1300. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1301. local cam = game.Workspace.CurrentCamera
  1302. trazx = Instance.new("ParticleEmitter")
  1303. c = game.Players.LocalPlayer.Character
  1304. local sine=0
  1305. Character.Head.face.Texture = "rbxassetid://183225545"
  1306.  
  1307. -------------------------------------------------------
  1308. --Start Good Stuff--
  1309. -------------------------------------------------------
  1310. CF = CFrame.new
  1311. angles = CFrame.Angles
  1312. attack = false
  1313. timetofly = true
  1314. Euler = CFrame.fromEulerAnglesXYZ
  1315. Rad = math.rad
  1316. IT = Instance.new
  1317. BrickC = BrickColor.new
  1318. Cos = math.cos
  1319. Acos = math.acos
  1320. Sin = math.sin
  1321. Asin = math.asin
  1322. Abs = math.abs
  1323. Mrandom = math.random
  1324. Floor = math.floor
  1325. random = math.random
  1326. radian = math.rad
  1327. Vec3 = Vector3.new
  1328. cFrame = CFrame.new
  1329. Euler = CFrame.fromEulerAnglesXYZ
  1330. -------------------------------------------------------
  1331. --End Good Stuff--
  1332. -------------------------------------------------------
  1333. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1334. RSH, LSH = nil, nil
  1335. RW = Instance.new("Weld")
  1336. LW = Instance.new("Weld")
  1337. RH = tors["Right Hip"]
  1338. LH = tors["Left Hip"]
  1339. RSH = tors["Right Shoulder"]
  1340. LSH = tors["Left Shoulder"]
  1341. RSH.Parent = nil
  1342. LSH.Parent = nil
  1343. RW.Name = "RW"
  1344. RW.Part0 = tors
  1345. RW.C0 = CF(1.5, 0.5, 0)
  1346. RW.C1 = CF(0, 0.5, 0)
  1347. RW.Part1 = ra
  1348. RW.Parent = tors
  1349. LW.Name = "LW"
  1350. LW.Part0 = tors
  1351. LW.C0 = CF(-1.5, 0.5, 0)
  1352. LW.C1 = CF(0, 0.5, 0)
  1353. LW.Part1 = la
  1354. LW.Parent = tors
  1355. Effects = {}
  1356.  
  1357. -------------------------------------------------------
  1358. --Start HeartBeat--
  1359. -------------------------------------------------------
  1360. ArtificialHB = Instance.new("BindableEvent", script)
  1361. ArtificialHB.Name = "Heartbeat"
  1362. script:WaitForChild("Heartbeat")
  1363.  
  1364. frame = 1 / 60
  1365. tf = 0
  1366. allowframeloss = false
  1367. tossremainder = false
  1368.  
  1369.  
  1370. lastframe = tick()
  1371. script.Heartbeat:Fire()
  1372.  
  1373.  
  1374. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1375. tf = tf + s
  1376. if tf >= frame then
  1377. if allowframeloss then
  1378. script.Heartbeat:Fire()
  1379. lastframe = tick()
  1380. else
  1381. for i = 1, math.floor(tf / frame) do
  1382. script.Heartbeat:Fire()
  1383. end
  1384. lastframe = tick()
  1385. end
  1386. if tossremainder then
  1387. tf = 0
  1388. else
  1389. tf = tf - frame * math.floor(tf / frame)
  1390. end
  1391. end
  1392. end)
  1393. -------------------------------------------------------
  1394. --End HeartBeat--
  1395. -------------------------------------------------------
  1396.  
  1397. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  1398. coroutine.resume(coroutine.create(function()
  1399. local intensity = 1 * Intensity
  1400. local rotM = 0.01 * Intensity
  1401. for i = 0, Length, 0.1 do
  1402. swait()
  1403. intensity = intensity - 0.05 * Intensity / Length
  1404. rotM = rotM - 5.0E-4 * Intensity / Length
  1405. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1406. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  1407. end
  1408. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1409. end))
  1410. end
  1411.  
  1412. local joyemoji = Instance.new('ParticleEmitter', tors)
  1413. joyemoji.VelocitySpread = 2000
  1414. joyemoji.Lifetime = NumberRange.new(1)
  1415. joyemoji.Speed = NumberRange.new(40)
  1416. joy= {}
  1417. for i=0, 19 do
  1418. joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1419. end
  1420. joyemoji.Size = NumberSequence.new(joy)
  1421. joyemoji.Rate = 0
  1422. joyemoji.LockedToPart = false
  1423. joyemoji.LightEmission = 0
  1424. joyemoji.Texture = "rbxassetid://1176402123"
  1425. joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1426.  
  1427.  
  1428. local LIT = Instance.new('ParticleEmitter', tors)
  1429. LIT.VelocitySpread = 2000
  1430. LIT.Lifetime = NumberRange.new(1)
  1431. LIT.Speed = NumberRange.new(45)
  1432. nani= {}
  1433. for i=0, 19 do
  1434. nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1435. end
  1436. LIT.Size = NumberSequence.new(nani)
  1437. LIT.Rate = 0
  1438. LIT.LockedToPart = false
  1439. LIT.LightEmission = 0
  1440. LIT.Texture = "rbxassetid://1492670151"
  1441. LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1442.  
  1443. local toast = Instance.new('ParticleEmitter', tors)
  1444. toast.VelocitySpread = 2000
  1445. toast.Lifetime = NumberRange.new(1)
  1446. toast.Speed = NumberRange.new(60)
  1447. toasterstoasttoast= {}
  1448. for i=0, 19 do
  1449. toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1450. end
  1451. toast.Size = NumberSequence.new(toasterstoasttoast)
  1452. toast.Rate = 0
  1453. toast.LockedToPart = false
  1454. toast.LightEmission = 0
  1455. toast.Texture = "rbxassetid://436096230"
  1456. toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1457.  
  1458. local ok = Instance.new('ParticleEmitter', tors)
  1459. ok.VelocitySpread = 2000
  1460. ok.Lifetime = NumberRange.new(1)
  1461. ok.Speed = NumberRange.new(50)
  1462. cool= {}
  1463. for i=0, 19 do
  1464. cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1465. end
  1466. ok.Size = NumberSequence.new(cool)
  1467. ok.Rate = 0
  1468. ok.LockedToPart = false
  1469. ok.LightEmission = 0
  1470. ok.Texture = "rbxassetid://636768448"
  1471. ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1472.  
  1473. -------------------------------------------------------
  1474. --Start Kyu's shitty stuff--
  1475. -------------------------------------------------------
  1476.  
  1477. function ragdoll(model)
  1478. local char = model
  1479. torso = char.HumanoidRootPart
  1480. torso2 = char.Torso
  1481. LW.Parent = nil
  1482. RW.Parent = nil
  1483. LH.Parent = nil
  1484. RH.Parent = nil
  1485. if hum ~= nil then
  1486. hum.PlatformStand = true
  1487. end
  1488.  
  1489. local Head = char:FindFirstChild("Head")
  1490. if Head then
  1491. local Neck = Instance.new("Weld")
  1492. Neck.Name = "Neck"
  1493. Neck.Part0 = torso
  1494. Neck.Part1 = Head
  1495. Neck.C0 = CFrame.new(0, 1.5, 0)
  1496. Neck.C1 = CFrame.new()
  1497. Neck.Parent = torso
  1498. end
  1499. local Limb = char:FindFirstChild("Right Arm")
  1500. if Limb then
  1501.  
  1502. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  1503. local Joint = Instance.new("Glue")
  1504. Joint.Name = "RightShoulder"
  1505. Joint.Part0 = torso
  1506. Joint.Part1 = Limb
  1507. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1508. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1509. Joint.Parent = torso
  1510.  
  1511. local B = Instance.new("Part")
  1512. B.TopSurface = 0
  1513. B.BottomSurface = 0
  1514. B.formFactor = "Symmetric"
  1515. B.Size = Vector3.new(1, 1, 1)
  1516. B.Transparency = 1
  1517. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1518. B.Parent = char
  1519. local W = Instance.new("Weld")
  1520. W.Part0 = Limb
  1521. W.Part1 = B
  1522. W.C0 = CFrame.new(0, -0.5, 0)
  1523. W.Parent = Limb
  1524.  
  1525. end
  1526. local Limb = char:FindFirstChild("Left Arm")
  1527. if Limb then
  1528.  
  1529. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  1530. local Joint = Instance.new("Glue")
  1531. Joint.Name = "LeftShoulder"
  1532. Joint.Part0 = torso
  1533. Joint.Part1 = Limb
  1534. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1535. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1536. Joint.Parent = torso
  1537.  
  1538. local B = Instance.new("Part")
  1539. B.TopSurface = 0
  1540. B.BottomSurface = 0
  1541. B.formFactor = "Symmetric"
  1542. B.Size = Vector3.new(1, 1, 1)
  1543. B.Transparency = 1
  1544. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1545. B.Parent = char
  1546. local W = Instance.new("Weld")
  1547. W.Part0 = Limb
  1548. W.Part1 = B
  1549. W.C0 = CFrame.new(0, -0.5, 0)
  1550. W.Parent = Limb
  1551.  
  1552. end
  1553. local Limb = char:FindFirstChild("Right Leg")
  1554. if Limb then
  1555.  
  1556. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  1557. local Joint = Instance.new("Glue")
  1558. Joint.Name = "RightHip"
  1559. Joint.Part0 = torso
  1560. Joint.Part1 = Limb
  1561. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1562. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1563. Joint.Parent = torso
  1564.  
  1565. local B = Instance.new("Part")
  1566. B.TopSurface = 0
  1567. B.BottomSurface = 0
  1568. B.formFactor = "Symmetric"
  1569. B.Size = Vector3.new(1, 1, 1)
  1570. B.Transparency = 1
  1571. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1572. B.Parent = char
  1573. local W = Instance.new("Weld")
  1574. W.Part0 = Limb
  1575. W.Part1 = B
  1576. W.C0 = CFrame.new(0, -0.5, 0)
  1577. W.Parent = Limb
  1578.  
  1579. end
  1580. local Limb = char:FindFirstChild("Left Leg")
  1581. if Limb then
  1582.  
  1583. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  1584. local Joint = Instance.new("Glue")
  1585. Joint.Name = "LeftHip"
  1586. Joint.Part0 = torso
  1587. Joint.Part1 = Limb
  1588. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1589. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1590. Joint.Parent = torso
  1591.  
  1592. local B = Instance.new("Part")
  1593. B.TopSurface = 0
  1594. B.BottomSurface = 0
  1595. B.formFactor = "Symmetric"
  1596. B.Size = Vector3.new(1, 1, 1)
  1597. B.Transparency = 1
  1598. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1599. B.Parent = char
  1600. local W = Instance.new("Weld")
  1601. W.Part0 = Limb
  1602. W.Part1 = B
  1603. W.C0 = CFrame.new(0, -0.5, 0)
  1604. W.Parent = Limb
  1605.  
  1606. end
  1607. --[
  1608. local Bar = Instance.new("Part")
  1609. Bar.TopSurface = 0
  1610. Bar.BottomSurface = 0
  1611. Bar.formFactor = "Symmetric"
  1612. Bar.Size = Vector3.new(1, 1, 1)
  1613. Bar.Transparency = 1
  1614. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  1615. Bar.Parent = char
  1616. local Weld = Instance.new("Weld")
  1617. Weld.Part0 = torso
  1618. Weld.Part1 = Bar
  1619. Weld.C0 = CFrame.new(0, 0.5, 0)
  1620. Weld.Parent = torso
  1621. --]]
  1622.  
  1623. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  1624.  
  1625. end
  1626.  
  1627. -------------------------------------------------------
  1628. --End Kyu's shitty stuff--
  1629. -------------------------------------------------------
  1630.  
  1631. -------------------------------------------------------
  1632. --Start Important Functions--
  1633. -------------------------------------------------------
  1634. function swait(num)
  1635. if num == 0 or num == nil then
  1636. game:service("RunService").Stepped:wait(0)
  1637. else
  1638. for i = 0, num do
  1639. game:service("RunService").Stepped:wait(0)
  1640. end
  1641. end
  1642. end
  1643. function thread(f)
  1644. coroutine.resume(coroutine.create(f))
  1645. end
  1646. function clerp(a, b, t)
  1647. local qa = {
  1648. QuaternionFromCFrame(a)
  1649. }
  1650. local qb = {
  1651. QuaternionFromCFrame(b)
  1652. }
  1653. local ax, ay, az = a.x, a.y, a.z
  1654. local bx, by, bz = b.x, b.y, b.z
  1655. local _t = 1 - t
  1656. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1657. end
  1658. function QuaternionFromCFrame(cf)
  1659. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1660. local trace = m00 + m11 + m22
  1661. if trace > 0 then
  1662. local s = math.sqrt(1 + trace)
  1663. local recip = 0.5 / s
  1664. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1665. else
  1666. local i = 0
  1667. if m00 < m11 then
  1668. i = 1
  1669. end
  1670. if m22 > (i == 0 and m00 or m11) then
  1671. i = 2
  1672. end
  1673. if i == 0 then
  1674. local s = math.sqrt(m00 - m11 - m22 + 1)
  1675. local recip = 0.5 / s
  1676. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1677. elseif i == 1 then
  1678. local s = math.sqrt(m11 - m22 - m00 + 1)
  1679. local recip = 0.5 / s
  1680. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1681. elseif i == 2 then
  1682. local s = math.sqrt(m22 - m00 - m11 + 1)
  1683. local recip = 0.5 / s
  1684. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1685. end
  1686. end
  1687. end
  1688. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1689. local xs, ys, zs = x + x, y + y, z + z
  1690. local wx, wy, wz = w * xs, w * ys, w * zs
  1691. local xx = x * xs
  1692. local xy = x * ys
  1693. local xz = x * zs
  1694. local yy = y * ys
  1695. local yz = y * zs
  1696. local zz = z * zs
  1697. 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))
  1698. end
  1699. function QuaternionSlerp(a, b, t)
  1700. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1701. local startInterp, finishInterp
  1702. if cosTheta >= 1.0E-4 then
  1703. if 1 - cosTheta > 1.0E-4 then
  1704. local theta = math.acos(cosTheta)
  1705. local invSinTheta = 1 / Sin(theta)
  1706. startInterp = Sin((1 - t) * theta) * invSinTheta
  1707. finishInterp = Sin(t * theta) * invSinTheta
  1708. else
  1709. startInterp = 1 - t
  1710. finishInterp = t
  1711. end
  1712. elseif 1 + cosTheta > 1.0E-4 then
  1713. local theta = math.acos(-cosTheta)
  1714. local invSinTheta = 1 / Sin(theta)
  1715. startInterp = Sin((t - 1) * theta) * invSinTheta
  1716. finishInterp = Sin(t * theta) * invSinTheta
  1717. else
  1718. startInterp = t - 1
  1719. finishInterp = t
  1720. end
  1721. 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
  1722. end
  1723. function rayCast(Position, Direction, Range, Ignore)
  1724. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1725. end
  1726. local RbxUtility = LoadLibrary("RbxUtility")
  1727. local Create = RbxUtility.Create
  1728.  
  1729. -------------------------------------------------------
  1730. --Start Damage Function--
  1731. -------------------------------------------------------
  1732. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1733. if hit.Parent == nil then
  1734. return
  1735. end
  1736. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1737. for _, v in pairs(hit.Parent:children()) do
  1738. if v:IsA("Humanoid") then
  1739. h = v
  1740. end
  1741. end
  1742. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1743. warn'No R15 allowed'
  1744. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1745. end
  1746.  
  1747. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1748. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1749. if hit.Parent.DebounceHit.Value == true then
  1750. return
  1751. end
  1752. end
  1753. if insta == true then
  1754. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1755. end
  1756. local c = Create("ObjectValue"){
  1757. Name = "creator",
  1758. Value = game:service("Players").LocalPlayer,
  1759. Parent = h,
  1760. }
  1761. game:GetService("Debris"):AddItem(c, .5)
  1762. if HitSound ~= nil and HitPitch ~= nil then
  1763. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1764. end
  1765. local Damage = math.random(minim, maxim)
  1766. local blocked = false
  1767. local block = hit.Parent:findFirstChild("Block")
  1768. if block ~= nil then
  1769. if block.className == "IntValue" then
  1770. if block.Value > 0 then
  1771. blocked = true
  1772. block.Value = block.Value - 1
  1773. print(block.Value)
  1774. end
  1775. end
  1776. end
  1777. if blocked == false then
  1778. h.Health = h.Health - Damage
  1779. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1780. else
  1781. h.Health = h.Health - (Damage / 2)
  1782. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1783. end
  1784. if Type == "Knockdown" then
  1785. local hum = hit.Parent.Humanoid
  1786. hum.PlatformStand = true
  1787. coroutine.resume(coroutine.create(function(HHumanoid)
  1788. swait(1)
  1789. HHumanoid.PlatformStand = false
  1790. end), hum)
  1791. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1792. local bodvol = Create("BodyVelocity"){
  1793. velocity = angle * knockback,
  1794. P = 5000,
  1795. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1796. Parent = hit,
  1797. }
  1798. local rl = Create("BodyAngularVelocity"){
  1799. P = 3000,
  1800. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1801. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1802. Parent = hit,
  1803. }
  1804. game:GetService("Debris"):AddItem(bodvol, .5)
  1805. game:GetService("Debris"):AddItem(rl, .5)
  1806. elseif Type == "Normal" then
  1807. local vp = Create("BodyVelocity"){
  1808. P = 500,
  1809. maxForce = Vector3.new(math.huge, 0, math.huge),
  1810. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1811. }
  1812. if knockback > 0 then
  1813. vp.Parent = hit.Parent.Torso
  1814. end
  1815. game:GetService("Debris"):AddItem(vp, .5)
  1816. elseif Type == "Up" then
  1817. local bodyVelocity = Create("BodyVelocity"){
  1818. velocity = Vector3.new(0, 20, 0),
  1819. P = 5000,
  1820. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1821. Parent = hit,
  1822. }
  1823. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1824. elseif Type == "DarkUp" then
  1825. coroutine.resume(coroutine.create(function()
  1826. for i = 0, 1, 0.1 do
  1827. swait()
  1828. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1829. end
  1830. end))
  1831. local bodyVelocity = Create("BodyVelocity"){
  1832. velocity = Vector3.new(0, 20, 0),
  1833. P = 5000,
  1834. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1835. Parent = hit,
  1836. }
  1837. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1838. elseif Type == "Snare" then
  1839. local bp = Create("BodyPosition"){
  1840. P = 2000,
  1841. D = 100,
  1842. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1843. position = hit.Parent.Torso.Position,
  1844. Parent = hit.Parent.Torso,
  1845. }
  1846. game:GetService("Debris"):AddItem(bp, 1)
  1847. elseif Type == "Freeze" then
  1848. local BodPos = Create("BodyPosition"){
  1849. P = 50000,
  1850. D = 1000,
  1851. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1852. position = hit.Parent.Torso.Position,
  1853. Parent = hit.Parent.Torso,
  1854. }
  1855. local BodGy = Create("BodyGyro") {
  1856. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1857. P = 20e+003,
  1858. Parent = hit.Parent.Torso,
  1859. cframe = hit.Parent.Torso.CFrame,
  1860. }
  1861. hit.Parent.Torso.Anchored = true
  1862. coroutine.resume(coroutine.create(function(Part)
  1863. swait(1.5)
  1864. Part.Anchored = false
  1865. end), hit.Parent.Torso)
  1866. game:GetService("Debris"):AddItem(BodPos, 3)
  1867. game:GetService("Debris"):AddItem(BodGy, 3)
  1868. end
  1869. local debounce = Create("BoolValue"){
  1870. Name = "DebounceHit",
  1871. Parent = hit.Parent,
  1872. Value = true,
  1873. }
  1874. game:GetService("Debris"):AddItem(debounce, Delay)
  1875. c = Create("ObjectValue"){
  1876. Name = "creator",
  1877. Value = Player,
  1878. Parent = h,
  1879. }
  1880. game:GetService("Debris"):AddItem(c, .5)
  1881. end
  1882. end
  1883. -------------------------------------------------------
  1884. --End Damage Function--
  1885. -------------------------------------------------------
  1886.  
  1887. -------------------------------------------------------
  1888. --Start Damage Function Customization--
  1889. -------------------------------------------------------
  1890. function ShowDamage(Pos, Text, Time, Color)
  1891. local Rate = (1 / 30)
  1892. local Pos = (Pos or Vector3.new(0, 0, 0))
  1893. local Text = (Text or "")
  1894. local Time = (Time or 2)
  1895. local Color = (Color or Color3.new(1, 0, 1))
  1896. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1897. EffectPart.Anchored = true
  1898. local BillboardGui = Create("BillboardGui"){
  1899. Size = UDim2.new(3, 0, 3, 0),
  1900. Adornee = EffectPart,
  1901. Parent = EffectPart,
  1902. }
  1903. local TextLabel = Create("TextLabel"){
  1904. BackgroundTransparency = 1,
  1905. Size = UDim2.new(1, 0, 1, 0),
  1906. Text = Text,
  1907. Font = "Highway",
  1908. TextColor3 = Color,
  1909. TextScaled = true,
  1910. Parent = BillboardGui,
  1911. }
  1912. game.Debris:AddItem(EffectPart, (Time))
  1913. EffectPart.Parent = game:GetService("Workspace")
  1914. delay(0, function()
  1915. local Frames = (Time / Rate)
  1916. for Frame = 1, Frames do
  1917. wait(Rate)
  1918. local Percent = (Frame / Frames)
  1919. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1920. TextLabel.TextTransparency = Percent
  1921. end
  1922. if EffectPart and EffectPart.Parent then
  1923. EffectPart:Destroy()
  1924. end
  1925. end)
  1926. end
  1927. -------------------------------------------------------
  1928. --End Damage Function Customization--
  1929. -------------------------------------------------------
  1930.  
  1931. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1932. for _, c in pairs(workspace:children()) do
  1933. local hum = c:findFirstChild("Humanoid")
  1934. if hum ~= nil then
  1935. local head = c:findFirstChild("Head")
  1936. if head ~= nil then
  1937. local targ = head.Position - Part.Position
  1938. local mag = targ.magnitude
  1939. if magni >= mag and c.Name ~= plr.Name then
  1940. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  1941. end
  1942. end
  1943. end
  1944. end
  1945. end
  1946.  
  1947.  
  1948. CFuncs = {
  1949. Part = {
  1950. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1951. local Part = Create("Part")({
  1952. Parent = Parent,
  1953. Reflectance = Reflectance,
  1954. Transparency = Transparency,
  1955. CanCollide = false,
  1956. Locked = true,
  1957. BrickColor = BrickColor.new(tostring(BColor)),
  1958. Name = Name,
  1959. Size = Size,
  1960. Material = Material
  1961. })
  1962. RemoveOutlines(Part)
  1963. return Part
  1964. end
  1965. },
  1966. Mesh = {
  1967. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1968. local Msh = Create(Mesh)({
  1969. Parent = Part,
  1970. Offset = OffSet,
  1971. Scale = Scale
  1972. })
  1973. if Mesh == "SpecialMesh" then
  1974. Msh.MeshType = MeshType
  1975. Msh.MeshId = MeshId
  1976. end
  1977. return Msh
  1978. end
  1979. },
  1980. Mesh = {
  1981. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1982. local Msh = Create(Mesh)({
  1983. Parent = Part,
  1984. Offset = OffSet,
  1985. Scale = Scale
  1986. })
  1987. if Mesh == "SpecialMesh" then
  1988. Msh.MeshType = MeshType
  1989. Msh.MeshId = MeshId
  1990. end
  1991. return Msh
  1992. end
  1993. },
  1994. Weld = {
  1995. Create = function(Parent, Part0, Part1, C0, C1)
  1996. local Weld = Create("Weld")({
  1997. Parent = Parent,
  1998. Part0 = Part0,
  1999. Part1 = Part1,
  2000. C0 = C0,
  2001. C1 = C1
  2002. })
  2003. return Weld
  2004. end
  2005. },
  2006. Sound = {
  2007. Create = function(id, par, vol, pit)
  2008. coroutine.resume(coroutine.create(function()
  2009. local S = Create("Sound")({
  2010. Volume = vol,
  2011. Pitch = pit or 1,
  2012. SoundId = id,
  2013. Parent = par or workspace
  2014. })
  2015. wait()
  2016. S:play()
  2017. game:GetService("Debris"):AddItem(S, 6)
  2018. end))
  2019. end
  2020. },
  2021. ParticleEmitter = {
  2022. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  2023. local fp = Create("ParticleEmitter")({
  2024. Parent = Parent,
  2025. Color = ColorSequence.new(Color1, Color2),
  2026. LightEmission = LightEmission,
  2027. Size = Size,
  2028. Texture = Texture,
  2029. Transparency = Transparency,
  2030. ZOffset = ZOffset,
  2031. Acceleration = Accel,
  2032. Drag = Drag,
  2033. LockedToPart = LockedToPart,
  2034. VelocityInheritance = VelocityInheritance,
  2035. EmissionDirection = EmissionDirection,
  2036. Enabled = Enabled,
  2037. Lifetime = LifeTime,
  2038. Rate = Rate,
  2039. Rotation = Rotation,
  2040. RotSpeed = RotSpeed,
  2041. Speed = Speed,
  2042. VelocitySpread = VelocitySpread
  2043. })
  2044. return fp
  2045. end
  2046. }
  2047. }
  2048. function RemoveOutlines(part)
  2049. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2050. end
  2051. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2052. local Part = Create("Part")({
  2053. formFactor = FormFactor,
  2054. Parent = Parent,
  2055. Reflectance = Reflectance,
  2056. Transparency = Transparency,
  2057. CanCollide = false,
  2058. Locked = true,
  2059. BrickColor = BrickColor.new(tostring(BColor)),
  2060. Name = Name,
  2061. Size = Size,
  2062. Material = Material
  2063. })
  2064. RemoveOutlines(Part)
  2065. return Part
  2066. end
  2067. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2068. local Msh = Create(Mesh)({
  2069. Parent = Part,
  2070. Offset = OffSet,
  2071. Scale = Scale
  2072. })
  2073. if Mesh == "SpecialMesh" then
  2074. Msh.MeshType = MeshType
  2075. Msh.MeshId = MeshId
  2076. end
  2077. return Msh
  2078. end
  2079. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2080. local Weld = Create("Weld")({
  2081. Parent = Parent,
  2082. Part0 = Part0,
  2083. Part1 = Part1,
  2084. C0 = C0,
  2085. C1 = C1
  2086. })
  2087. return Weld
  2088. end
  2089.  
  2090.  
  2091. -------------------------------------------------------
  2092. --Start Effect Function--
  2093. -------------------------------------------------------
  2094. EffectModel = Instance.new("Model", char)
  2095. Effects = {
  2096. Block = {
  2097. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2098. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2099. prt.Anchored = true
  2100. prt.CFrame = cframe
  2101. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2102. game:GetService("Debris"):AddItem(prt, 10)
  2103. if Type == 1 or Type == nil then
  2104. table.insert(Effects, {
  2105. prt,
  2106. "Block1",
  2107. delay,
  2108. x3,
  2109. y3,
  2110. z3,
  2111. msh
  2112. })
  2113. elseif Type == 2 then
  2114. table.insert(Effects, {
  2115. prt,
  2116. "Block2",
  2117. delay,
  2118. x3,
  2119. y3,
  2120. z3,
  2121. msh
  2122. })
  2123. else
  2124. table.insert(Effects, {
  2125. prt,
  2126. "Block3",
  2127. delay,
  2128. x3,
  2129. y3,
  2130. z3,
  2131. msh
  2132. })
  2133. end
  2134. end
  2135. },
  2136. Sphere = {
  2137. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2138. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2139. prt.Anchored = true
  2140. prt.CFrame = cframe
  2141. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  2142. game:GetService("Debris"):AddItem(prt, 10)
  2143. table.insert(Effects, {
  2144. prt,
  2145. "Cylinder",
  2146. delay,
  2147. x3,
  2148. y3,
  2149. z3,
  2150. msh
  2151. })
  2152. end
  2153. },
  2154. Cylinder = {
  2155. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2156. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2157. prt.Anchored = true
  2158. prt.CFrame = cframe
  2159. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2160. game:GetService("Debris"):AddItem(prt, 10)
  2161. table.insert(Effects, {
  2162. prt,
  2163. "Cylinder",
  2164. delay,
  2165. x3,
  2166. y3,
  2167. z3,
  2168. msh
  2169. })
  2170. end
  2171. },
  2172. Wave = {
  2173. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2174. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2175. prt.Anchored = true
  2176. prt.CFrame = cframe
  2177. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  2178. game:GetService("Debris"):AddItem(prt, 10)
  2179. table.insert(Effects, {
  2180. prt,
  2181. "Cylinder",
  2182. delay,
  2183. x3 / 60,
  2184. y3 / 60,
  2185. z3 / 60,
  2186. msh
  2187. })
  2188. end
  2189. },
  2190. Ring = {
  2191. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2192. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2193. prt.Anchored = true
  2194. prt.CFrame = cframe
  2195. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2196. game:GetService("Debris"):AddItem(prt, 10)
  2197. table.insert(Effects, {
  2198. prt,
  2199. "Cylinder",
  2200. delay,
  2201. x3,
  2202. y3,
  2203. z3,
  2204. msh
  2205. })
  2206. end
  2207. },
  2208. Break = {
  2209. Create = function(brickcolor, cframe, x1, y1, z1)
  2210. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2211. prt.Anchored = true
  2212. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2213. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2214. local num = math.random(10, 50) / 1000
  2215. game:GetService("Debris"):AddItem(prt, 10)
  2216. table.insert(Effects, {
  2217. prt,
  2218. "Shatter",
  2219. num,
  2220. prt.CFrame,
  2221. math.random() - math.random(),
  2222. 0,
  2223. math.random(50, 100) / 100
  2224. })
  2225. end
  2226. },
  2227. Spiral = {
  2228. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2229. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2230. prt.Anchored = true
  2231. prt.CFrame = cframe
  2232. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2233. game:GetService("Debris"):AddItem(prt, 10)
  2234. table.insert(Effects, {
  2235. prt,
  2236. "Cylinder",
  2237. delay,
  2238. x3,
  2239. y3,
  2240. z3,
  2241. msh
  2242. })
  2243. end
  2244. },
  2245. Push = {
  2246. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2247. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2248. prt.Anchored = true
  2249. prt.CFrame = cframe
  2250. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2251. game:GetService("Debris"):AddItem(prt, 10)
  2252. table.insert(Effects, {
  2253. prt,
  2254. "Cylinder",
  2255. delay,
  2256. x3,
  2257. y3,
  2258. z3,
  2259. msh
  2260. })
  2261. end
  2262. }
  2263. }
  2264. -------------------------------------------------------
  2265. --End Effect Function--
  2266. -------------------------------------------------------
  2267.  
  2268. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  2269. local NSound = nil
  2270. coroutine.resume(coroutine.create(function()
  2271. NSound = Instance.new("Sound", PARENT)
  2272. NSound.Volume = VOLUME
  2273. NSound.Pitch = PITCH
  2274. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  2275. swait()
  2276. NSound:play()
  2277. game:GetService("Debris"):AddItem(NSound, 10)
  2278. end))
  2279. return NSound
  2280. end
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286. -------------------------------------------------------
  2287. --End Important Functions--
  2288. -------------------------------------------------------
  2289.  
  2290. NEWS = Instance.new("Sound", tors) --O NO
  2291. NEWS.SoundId = "http://www.roblox.com/asset/?id=271850776"
  2292. NEWS.Volume = 100
  2293. NEWS.Pitch = 1
  2294. NEWS.Looped = false
  2295. NEWS.TimePosition = 1
  2296.  
  2297. AAAAA = Instance.new("Sound", tors) --aaa
  2298. AAAAA.SoundId = "http://www.roblox.com/asset/?id=0"
  2299. AAAAA.Volume = 10
  2300. AAAAA.Pitch = 1
  2301. AAAAA.Looped = false
  2302. AAAAA.TimePosition = 1
  2303.  
  2304. MERKIO = Instance.new("Sound", tors) --why
  2305. MERKIO.SoundId = "http://www.roblox.com/asset/?id=713550954"
  2306. MERKIO.Volume = 10
  2307. MERKIO.Pitch = 1
  2308. MERKIO.Looped = false
  2309. MERKIO.TimePosition = 0
  2310.  
  2311. -------------------------------------------------------
  2312. --Start Music Option--
  2313. -------------------------------------------------------
  2314. local Music = Instance.new("Sound",tors)
  2315. Music.Volume = 2.5
  2316. Music.SoundId = "rbxassetid://"
  2317. Music.Looped = true
  2318. Music.Pitch = 1 --Pitcher
  2319. Music:Play()
  2320. -------------------------------------------------------
  2321. --End Music Option--
  2322. -------------------------------------------------------
  2323. --hi fat >:)
  2324. -------------------------------------------------------
  2325. --Start Attacks N Stuff--
  2326. -------------------------------------------------------
  2327.  
  2328. function THEBESTOVERUSEDJOKEEVER() --oh god why did i make this a thing jeezus help me pls
  2329. attack = true
  2330. hum.WalkSpeed = 16
  2331. Character.Head.face.Texture = "rbxassetid://183225545"
  2332. NEWS:Play()
  2333. repeat
  2334. NEWS.Parent = tors
  2335. swait()
  2336. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  2337. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.3)
  2338. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * RHCF * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  2339. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * LHCF * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  2340. RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  2341. LW.C0 = clerp(LW.C0, CF(-1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  2342. until NEWS.Playing == false
  2343. game.Players.LocalPlayer.Character:BreakJoints()
  2344. local S = Instance.new("Explosion",workspace)
  2345. S.Position = tors.Position
  2346. S.BlastPressure = 9
  2347. S.BlastRadius = 30
  2348. S.ExplosionType = 0
  2349. attack = false
  2350. hum.WalkSpeed = 16
  2351. Character.Head.face.Texture = "rbxassetid://295197013"
  2352. attack = false
  2353. hum.WalkSpeed = 16
  2354. end
  2355.  
  2356. function sneakonehundred()
  2357. attack = true
  2358. hum.WalkSpeed = 0.03
  2359. Character.Head.face.Texture = "rbxassetid://183225545"
  2360. CreateSound("1542642349", tors, 10, 1.05)
  2361. for i = 0,20,0.1 do
  2362. swait()
  2363. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  2364. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  2365. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2366. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2367. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.0001 * Cos(sine / 20)) * angles(Rad(1), Rad(0), Rad(-180)), 0.4)
  2368. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.0001 * Cos(sine / 20)) * angles(Rad(1), Rad(0), Rad(180)), 0.4)
  2369. end
  2370. CreateSound("138093919", tors, 10, 1.05)
  2371. wait(0.25)
  2372. Character.Head.face.Texture = "rbxassetid://1223903433"
  2373. for i = 0,7,0.1 do
  2374. swait()
  2375. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  2376. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  2377. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2378. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2379. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.0001 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(-180)), 0.4)
  2380. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.0001 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(180)), 0.4)
  2381. end
  2382. Character.Head.face.Texture = "rbxassetid://183225545"
  2383. attack = false
  2384. hum.WalkSpeed = 16
  2385. end
  2386.  
  2387. function DANCEFORME()
  2388. attack = true
  2389. Character.Head.face.Texture = "rbxassetid://183225545"
  2390. MERKIO:Play()
  2391. repeat
  2392. for i = 0,0.7,0.2 do
  2393. swait()
  2394. MERKIO.Parent = tors
  2395. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  2396. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  2397. RH.C0 = clerp(RH.C0, CF(1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  2398. LH.C0 = clerp(LH.C0, CF(-1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  2399. RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(115)), 0.77)
  2400. LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-115)), 0.67)
  2401. end
  2402. for i = 0,0.7,0.2 do
  2403. swait()
  2404. MERKIO.Parent = tors
  2405. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  2406. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  2407. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  2408. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  2409. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  2410. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.7)
  2411. end
  2412. until MERKIO.Playing == false
  2413. MERKIO:Stop()
  2414. Character.Head.face.Texture = "rbxassetid://183225545"
  2415. attack = false
  2416. hum.WalkSpeed = 16
  2417. end
  2418.  
  2419. function takethat()
  2420. attack = true
  2421. hum.WalkSpeed = 0
  2422. CreateSound("1238240145", tors, 10, 1.05)
  2423. for i = 0,8.3,0.1 do
  2424. swait()
  2425. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  2426. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.7)
  2427. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  2428. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  2429. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-.6), Rad(0)), 0.7)
  2430. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.7)
  2431. end
  2432. CreateSound("135165859", tors, 10, 1.05)
  2433. for i = 0,6,0.1 do
  2434. swait()
  2435. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2436. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.85)
  2437. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.7)
  2438. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  2439. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  2440. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-.6), Rad(0)), 0.7)
  2441. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(-.6), Rad(0 - 4.5 * Sin(sine / 20))), 0.7)
  2442. end
  2443. attack = false
  2444. hum.WalkSpeed = 16
  2445. end
  2446. function SCREAM()
  2447. attack = true
  2448. hum.WalkSpeed = 16
  2449. Character.Head.face.Texture = "rbxassetid://183225545"
  2450. local A = math.random(1,13)
  2451. if A == 1 then
  2452. AAAAA.SoundId = "rbxassetid://1213175909"
  2453. AAAAA.TimePosition = 0
  2454. end
  2455. if A == 2 then
  2456. AAAAA.SoundId = "rbxassetid://1439720915"
  2457. AAAAA.TimePosition = 0
  2458. end
  2459. if A == 3 then
  2460. AAAAA.SoundId = "rbxassetid://1213179504"
  2461. AAAAA.TimePosition = 0
  2462. end
  2463. if A == 4 then
  2464. AAAAA.SoundId = "rbxassetid://1129186687"
  2465. AAAAA.TimePosition = 0
  2466. end
  2467. if A == 5 then
  2468. AAAAA.SoundId = "rbxassetid://1163493843"
  2469. AAAAA.TimePosition = 0
  2470. end
  2471. if A == 6 then
  2472. AAAAA.SoundId = "rbxassetid://1163494840"
  2473. AAAAA.TimePosition = 0
  2474. end
  2475. if A == 7 then
  2476. AAAAA.SoundId = "rbxassetid://963936697"
  2477. AAAAA.TimePosition = 0
  2478. end
  2479. if A == 8 then
  2480. AAAAA.SoundId = "rbxassetid://1494176499"
  2481. AAAAA.TimePosition = 1
  2482. end
  2483. if A == 9 then
  2484. AAAAA.SoundId = "rbxassetid://1591656314"
  2485. AAAAA.TimePosition = 0
  2486. end
  2487. if A == 10 then
  2488. AAAAA.SoundId = "rbxassetid://130767645"
  2489. AAAAA.TimePosition = 0
  2490. end
  2491. if A == 11 then
  2492. AAAAA.SoundId = "rbxassetid://172818886"
  2493. AAAAA.TimePosition = 0
  2494. end
  2495. if A == 12 then
  2496. AAAAA.SoundId = "rbxassetid://1402021995"
  2497. AAAAA.TimePosition = 0
  2498. end
  2499. if A == 13 then
  2500. AAAAA.SoundId = "rbxassetid://130766856"
  2501. AAAAA.TimePosition = 0
  2502. end
  2503. AAAAA:Play()
  2504. repeat
  2505. swait()
  2506. AAAAA.Parent = tors
  2507. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2508. until AAAAA.Playing == false
  2509. hum.WalkSpeed = 16
  2510. attack = false
  2511. hum.WalkSpeed = 16
  2512. end
  2513.  
  2514. MoreTaunts = false
  2515. mouse.KeyDown:connect(function(key)
  2516. if attack == false then
  2517. if MoreTaunts == false then
  2518. if key == 'q' then
  2519. THEBESTOVERUSEDJOKEEVER()
  2520. elseif key == 'e' then
  2521. SCREAM()
  2522. elseif key == 'r' then
  2523. sneakonehundred()
  2524. elseif key == 't' then
  2525. DANCEFORME()
  2526. elseif key == 'y' then
  2527. takethat()
  2528. end
  2529. end
  2530. end
  2531. end)
  2532.  
  2533. -------------------------------------------------------
  2534. --End Attacks N Stuff--
  2535. -------------------------------------------------------
  2536.  
  2537.  
  2538.  
  2539.  
  2540. while jumping do
  2541. Humanoid.Jump = true
  2542. wait(0.9)
  2543. end
  2544.  
  2545.  
  2546.  
  2547.  
  2548. -------------------------------------------------------
  2549. --Start Animations--
  2550. -------------------------------------------------------
  2551. local equipped = false
  2552. local idle = 0
  2553. local change = 1
  2554. local val = 0
  2555. local toim = 0
  2556. local idleanim = 0.4
  2557. hum.Animator.Parent = nil
  2558. while true do
  2559. swait()
  2560. sine = sine + change
  2561. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2562. local velderp = root.Velocity.y
  2563. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  2564. if equipped == true or equipped == false then
  2565. if attack == false then
  2566. idle = idle + 1
  2567. else
  2568. idle = 0
  2569. end
  2570. if 1 < root.Velocity.y and hitfloor == nil then
  2571. Anim = "Jump"
  2572. if attack == false then
  2573. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(60)), 0.15)
  2574. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2575. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2576. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2577. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  2578. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  2579. end
  2580. elseif -1 > root.Velocity.y and hitfloor == nil then
  2581. Anim = "Fall"
  2582. if attack == false then
  2583. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(180), Rad(0), Rad(0)), 0.15)
  2584. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2585. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2586. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2587. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  2588. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  2589. end
  2590. elseif torvel < 1 and hitfloor ~= nil then
  2591. Anim = "Idle"
  2592. change = 1
  2593. if attack == false then
  2594. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  2595. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2596. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2597. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2598. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  2599. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  2600. end
  2601. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  2602. Anim = "Walk"
  2603. change = 1
  2604. if attack == false then
  2605. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0-255.45), Rad(0), Rad(0)), 0.15)
  2606. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2607. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2608. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2609. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  2610. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  2611. end
  2612. end
  2613. end
  2614. if 0 < #Effects then
  2615. for e = 1, #Effects do
  2616. if Effects[e] ~= nil then
  2617. local Thing = Effects[e]
  2618. if Thing ~= nil then
  2619. local Part = Thing[1]
  2620. local Mode = Thing[2]
  2621. local Delay = Thing[3]
  2622. local IncX = Thing[4]
  2623. local IncY = Thing[5]
  2624. local IncZ = Thing[6]
  2625. if 1 >= Thing[1].Transparency then
  2626. if Thing[2] == "Block1" then
  2627. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2628. local Mesh = Thing[1].Mesh
  2629. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2630. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2631. elseif Thing[2] == "Block2" then
  2632. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2633. local Mesh = Thing[7]
  2634. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2635. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2636. elseif Thing[2] == "Block3" then
  2637. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  2638. local Mesh = Thing[7]
  2639. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2640. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2641. elseif Thing[2] == "Cylinder" then
  2642. local Mesh = Thing[1].Mesh
  2643. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2644. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2645. elseif Thing[2] == "Blood" then
  2646. local Mesh = Thing[7]
  2647. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2648. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2649. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2650. elseif Thing[2] == "Elec" then
  2651. local Mesh = Thing[1].Mesh
  2652. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2653. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2654. elseif Thing[2] == "Disappear" then
  2655. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2656. elseif Thing[2] == "Shatter" then
  2657. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2658. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2659. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2660. Thing[6] = Thing[6] + Thing[5]
  2661. end
  2662. else
  2663. Part.Parent = nil
  2664. table.remove(Effects, e)
  2665. end
  2666. end
  2667. end
  2668. end
  2669. end
  2670. end
  2671. -------------------------------------------------------
  2672. --End Animations And Script--
  2673. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement