Advertisement
doryna2281337

Untitled

Sep 9th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.59 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.  
  918.  
  919. Humanoid.DisplayDistanceType = "None"
  920. local naeeym2 = IT("BillboardGui",Character)
  921. naeeym2.AlwaysOnTop = true
  922. naeeym2.Size = UDim2.new(5,35,2,15)
  923. naeeym2.StudsOffset = Vector3.new(0,2,0)
  924. naeeym2.MaxDistance = 75
  925. naeeym2.Adornee = Character.Head
  926. naeeym2.Name = "Name"
  927. local tecks2 = IT("TextLabel",naeeym2)
  928. tecks2.BackgroundTransparency = 1
  929. tecks2.TextScaled = true
  930. tecks2.BorderSizePixel = 0
  931. tecks2.Text = "meme security"
  932. tecks2.Font = "Fantasy"
  933. tecks2.TextSize = 30
  934. tecks2.TextStrokeTransparency = 0
  935. tecks2.TextColor3 = C3(0,0,0)
  936. tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255)
  937. tecks2.Size = UDim2.new(1,0,0.5,0)
  938. tecks2.Parent = naeeym2
  939. local top = Instance.new("Shirt")
  940. top.ShirtTemplate = "rbxassetid://45695443"
  941. top.Parent = Character
  942. top.Name = "Cloth"
  943. local bottom = Instance.new("Pants")
  944. bottom.PantsTemplate = "rbxassetid://45696190"
  945. bottom.Parent = Character
  946. bottom.Name = "Cloth"
  947.  
  948. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  949. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  950. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  951. local BODYGYRO = IT("BodyGyro", STATPART)
  952. local BODYPOSITION = IT("BodyPosition", STATPART)
  953. BODYPOSITION.P = 2000
  954. BODYPOSITION.D = 100
  955. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  956. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  957. game:GetService("Debris"):AddItem(STATPART ,5)
  958. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  959. BILLBOARDGUI.Adornee = STATPART
  960. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  961. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  962. BILLBOARDGUI.AlwaysOnTop = false
  963. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  964. TEXTLABEL.BackgroundTransparency = 1
  965. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  966. TEXTLABEL.Text = TEXT
  967. TEXTLABEL.Font = "SciFi"
  968. TEXTLABEL.FontSize="Size42"
  969. TEXTLABEL.TextColor3 = COLOR
  970. TEXTLABEL.TextStrokeTransparency = 1
  971. TEXTLABEL.TextScaled = true
  972. TEXTLABEL.TextWrapped = true
  973. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  974. if LABELTYPE == "Normal" then
  975. for i = 1, 20 do
  976. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  977. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  978. end
  979. elseif LABELTYPE == "Debuff" then
  980. for i = 1, 20 do
  981. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  982. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  983. end
  984. elseif LABELTYPE == "Shock" then
  985. local ORIGIN = STATPART.Position
  986. for i = 1, 20 do
  987. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  988. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  989. end
  990. end
  991. THEPART.Parent = nil
  992. end),STATPART, BODYPOSITION, TEXTLABEL)
  993. end
  994.  
  995. function BulletDetection(FROM,TO,BRUTAL)
  996. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  997. coroutine.resume(coroutine.create(function()
  998. if AIMHIT ~= nil then
  999. if AIMHIT.Parent ~= Character then
  1000. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1001. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1002. if BRUTAL == true then
  1003. Kill(AIMHIT.Parent)
  1004. else
  1005. getbloody(AIMHIT,15)
  1006. AIMHIT.Parent:BreakJoints()
  1007. if AIMHIT.Name == "Head" then
  1008. AIMHIT.Name = "HEADSHOT"
  1009. AIMHIT:remove()
  1010. end
  1011. end
  1012. else
  1013. if BRUTAL == true then
  1014. Kill(AIMHIT.Parent.Parent)
  1015. else
  1016. AIMHIT.Parent.Parent:BreakJoints()
  1017. end
  1018. end
  1019. end
  1020. end
  1021. end
  1022. end))
  1023. SpawnTrail(FROM,AIMPOS)
  1024. return AIMHIT,AIMPOS,NORMAL
  1025. end
  1026.  
  1027. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain)
  1028. local dmg = math.random(min,max)
  1029. for i,v in ipairs(workspace:GetChildren()) do
  1030. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1031. local body = v:GetChildren()
  1032. for part = 1, #body do
  1033. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1034. if(body[part].Position - position).Magnitude < radius then
  1035. if v.ClassName == "Model" then
  1036. if v:FindFirstChildOfClass("Humanoid") then
  1037. local HUMAN = v:FindFirstChildOfClass("Humanoid")
  1038. if HUMAN.Health ~= 0 then
  1039. if HasChain == true then
  1040. local defence = Instance.new("BoolValue",v)
  1041. defence.Name = ("HitBy"..Player.Name)
  1042. game:GetService("Debris"):AddItem(defence, 1)
  1043. coroutine.resume(coroutine.create(function()
  1044. local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1045. if TORSO then
  1046. --print("Found "..v.Name.."'s Torso")
  1047. local PART = IT("Part",Effects)
  1048. PART.Anchored = true
  1049. PART.CanCollide = false
  1050. PART.Transparency = 1
  1051. PART.CFrame = CF(position)
  1052. Debris:AddItem(PART,15)
  1053. local A = IT("Attachment",PART)
  1054. --TORSO.Anchored = true
  1055. local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1056. --print("Chain start")
  1057. Front.CFrame = CF(position)
  1058. Front.CanCollide = true
  1059. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  1060. local B = IT("Attachment",Front)
  1061. local ChainLink = IT("Beam",Effects)
  1062. ChainLink.Texture = "rbxassetid://1262544869"
  1063. ChainLink.TextureSpeed = 0
  1064. ChainLink.FaceCamera = true
  1065. ChainLink.Width0 = 3
  1066. ChainLink.Attachment0 = A
  1067. ChainLink.Attachment1 = B
  1068. ChainLink.TextureMode = "Static"
  1069. local bv = Instance.new("BodyVelocity")
  1070. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1071. bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500
  1072. bv.Parent = Front
  1073. bv.Name = "MOVE"
  1074. --print("Chain made")
  1075. coroutine.resume(coroutine.create(function()
  1076. Swait(30)
  1077. bv:remove()
  1078. local POS = Front.Position
  1079. Front.CanCollide = false
  1080. local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0)
  1081. local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0)
  1082. for i = 0, 1, 0.07 do
  1083. Swait()
  1084. Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i))
  1085. end
  1086. Front:remove()
  1087. ChainLink:remove()
  1088. end))
  1089. local harm = Front.Touched:Connect(function(hit)
  1090. impale(Front,hit)
  1091. end)
  1092. end
  1093. end))
  1094. elseif DoesWarp == true then
  1095. local defence = Instance.new("BoolValue",v)
  1096. defence.Name = ("HitBy"..Player.Name)
  1097. game:GetService("Debris"):AddItem(defence, 0.001)
  1098. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1099. Warp(TORSO,Instakill)
  1100. else
  1101. if CanBeDodgedByJumping == true then
  1102. if body[part].Position.Y < position.Y+5 then
  1103. if math.random(1,100) < critrate+1 then
  1104. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  1105. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1106. else
  1107. HUMAN.Health = HUMAN.Health - dmg
  1108. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1109. end
  1110. local defence = Instance.new("BoolValue",v)
  1111. defence.Name = ("HitBy"..Player.Name)
  1112. game:GetService("Debris"):AddItem(defence, 0.01)
  1113. end
  1114. else
  1115. if beserk == true then
  1116. HUMAN.Health = 0
  1117. end
  1118. if math.random(1,100) < critrate+1 then
  1119. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  1120. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1121. else
  1122. HUMAN.Health = HUMAN.Health - dmg
  1123. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1124. end
  1125. local defence = Instance.new("BoolValue",v)
  1126. defence.Name = ("HitBy"..Player.Name)
  1127. game:GetService("Debris"):AddItem(defence, 0.01)
  1128. end
  1129. end
  1130. end
  1131. end
  1132. end
  1133. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1134. end
  1135. end
  1136. end
  1137. if v.ClassName == "Part" then
  1138. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1139. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1140. end
  1141. end
  1142. end
  1143. end
  1144. end
  1145.  
  1146. function Warp(Victim,WarpToVoid)
  1147. print("Warping "..Victim.Name.."...")
  1148. Victim.Anchored = true
  1149. coroutine.resume(coroutine.create(function()
  1150. local GUI,GUI2 = CreateGUICircle(Victim)
  1151. CreateSound("1208650519", Victim, 10, 1)
  1152. for i = 1, 100 do
  1153. Swait()
  1154. GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0)
  1155. GUI2.Rotation = GUI2.Rotation + 4
  1156. end
  1157. CastWarpOutlines(Victim.Parent)
  1158. if WarpToVoid == false then
  1159. Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  1160. CreateSound("1177785010", Victim, 10, 1)
  1161. local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  1162. if HUMANOID ~= nil then
  1163. local dmg = MRANDOM(75,95)
  1164. HUMANOID.Health = HUMANOID.Health - dmg
  1165. StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  1166. end
  1167. for i = 1, 50 do
  1168. Swait()
  1169. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1170. GUI2.Rotation = GUI2.Rotation - 8
  1171. end
  1172. Victim.Anchored = false
  1173. GUI:remove()
  1174. elseif WarpToVoid == true then
  1175. CastWarpOutlines(Victim.Parent)
  1176. q = Victim.Parent:GetChildren()
  1177. for i = 1, #q do
  1178. if q[i] ~= Victim then
  1179. q[i]:remove()
  1180. end
  1181. end
  1182. CreateSound("1177785010", Victim, 10, 1)
  1183. Victim.Transparency = 1
  1184. for i = 1, 50 do
  1185. Swait()
  1186. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1187. GUI2.Rotation = GUI2.Rotation - 8
  1188. end
  1189. Victim.Parent:remove()
  1190. end
  1191. end))
  1192. end
  1193.  
  1194. function killnearest(position,range,maxstrength)
  1195. for i,v in ipairs(workspace:GetChildren()) do
  1196. local body = v:GetChildren()
  1197. for part = 1, #body do
  1198. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1199. if(body[part].Position - position).Magnitude < range then
  1200. if v.ClassName == "Model" then
  1201. v:BreakJoints()
  1202. end
  1203. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1204. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1205. end
  1206. end
  1207. end
  1208. if v.ClassName == "Part" then
  1209. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1210. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1211. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1212. end
  1213. end
  1214. end
  1215. end
  1216.  
  1217. function AttackTemplate()
  1218. ATTACK = true
  1219. Rooted = false
  1220. for i=0, 1, 0.1 / Animation_Speed do
  1221. Swait()
  1222. 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)
  1223. 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)
  1224. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1225. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1226. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1227. 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)
  1228. 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)
  1229. end
  1230. ATTACK = false
  1231. Rooted = false
  1232. end
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247. wait()
  1248. local Player = game.Players.localPlayer
  1249. local Character = Player.Character
  1250. local plr = game:service'Players'.LocalPlayer
  1251. local Humanoid = Character.Humanoid
  1252. local char = plr.Character
  1253. local hum = char.Humanoid
  1254. local ra = char["Right Arm"]
  1255. local la= char["Left Arm"]
  1256. local rl= char["Right Leg"]
  1257. local ll = char["Left Leg"]
  1258. local hed = char.Head
  1259. local root = char.HumanoidRootPart
  1260. local rootj = root.RootJoint
  1261. local tors = char.Torso
  1262. local mouse = plr:GetMouse()
  1263. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1264. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1265. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1266. local cam = game.Workspace.CurrentCamera
  1267. trazx = Instance.new("ParticleEmitter")
  1268. c = game.Players.LocalPlayer.Character
  1269. local sine=0
  1270. Character.Head.face.Texture = "rbxassetid://183225545"
  1271.  
  1272. -------------------------------------------------------
  1273. --Start Good Stuff--
  1274. -------------------------------------------------------
  1275. CF = CFrame.new
  1276. angles = CFrame.Angles
  1277. attack = false
  1278. timetofly = true
  1279. Euler = CFrame.fromEulerAnglesXYZ
  1280. Rad = math.rad
  1281. IT = Instance.new
  1282. BrickC = BrickColor.new
  1283. Cos = math.cos
  1284. Acos = math.acos
  1285. Sin = math.sin
  1286. Asin = math.asin
  1287. Abs = math.abs
  1288. Mrandom = math.random
  1289. Floor = math.floor
  1290. random = math.random
  1291. radian = math.rad
  1292. Vec3 = Vector3.new
  1293. cFrame = CFrame.new
  1294. Euler = CFrame.fromEulerAnglesXYZ
  1295. -------------------------------------------------------
  1296. --End Good Stuff--
  1297. -------------------------------------------------------
  1298. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1299. RSH, LSH = nil, nil
  1300. RW = Instance.new("Weld")
  1301. LW = Instance.new("Weld")
  1302. RH = tors["Right Hip"]
  1303. LH = tors["Left Hip"]
  1304. RSH = tors["Right Shoulder"]
  1305. LSH = tors["Left Shoulder"]
  1306. RSH.Parent = nil
  1307. LSH.Parent = nil
  1308. RW.Name = "RW"
  1309. RW.Part0 = tors
  1310. RW.C0 = CF(1.5, 0.5, 0)
  1311. RW.C1 = CF(0, 0.5, 0)
  1312. RW.Part1 = ra
  1313. RW.Parent = tors
  1314. LW.Name = "LW"
  1315. LW.Part0 = tors
  1316. LW.C0 = CF(-1.5, 0.5, 0)
  1317. LW.C1 = CF(0, 0.5, 0)
  1318. LW.Part1 = la
  1319. LW.Parent = tors
  1320. Effects = {}
  1321.  
  1322. -------------------------------------------------------
  1323. --Start HeartBeat--
  1324. -------------------------------------------------------
  1325. ArtificialHB = Instance.new("BindableEvent", script)
  1326. ArtificialHB.Name = "Heartbeat"
  1327. script:WaitForChild("Heartbeat")
  1328.  
  1329. frame = 1 / 60
  1330. tf = 0
  1331. allowframeloss = false
  1332. tossremainder = false
  1333.  
  1334.  
  1335. lastframe = tick()
  1336. script.Heartbeat:Fire()
  1337.  
  1338.  
  1339. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1340. tf = tf + s
  1341. if tf >= frame then
  1342. if allowframeloss then
  1343. script.Heartbeat:Fire()
  1344. lastframe = tick()
  1345. else
  1346. for i = 1, math.floor(tf / frame) do
  1347. script.Heartbeat:Fire()
  1348. end
  1349. lastframe = tick()
  1350. end
  1351. if tossremainder then
  1352. tf = 0
  1353. else
  1354. tf = tf - frame * math.floor(tf / frame)
  1355. end
  1356. end
  1357. end)
  1358. -------------------------------------------------------
  1359. --End HeartBeat--
  1360. -------------------------------------------------------
  1361.  
  1362. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  1363. coroutine.resume(coroutine.create(function()
  1364. local intensity = 1 * Intensity
  1365. local rotM = 0.01 * Intensity
  1366. for i = 0, Length, 0.1 do
  1367. swait()
  1368. intensity = intensity - 0.05 * Intensity / Length
  1369. rotM = rotM - 5.0E-4 * Intensity / Length
  1370. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1371. 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)
  1372. end
  1373. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1374. end))
  1375. end
  1376.  
  1377. local joyemoji = Instance.new('ParticleEmitter', tors)
  1378. joyemoji.VelocitySpread = 2000
  1379. joyemoji.Lifetime = NumberRange.new(1)
  1380. joyemoji.Speed = NumberRange.new(40)
  1381. joy= {}
  1382. for i=0, 19 do
  1383. joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1384. end
  1385. joyemoji.Size = NumberSequence.new(joy)
  1386. joyemoji.Rate = 0
  1387. joyemoji.LockedToPart = false
  1388. joyemoji.LightEmission = 0
  1389. joyemoji.Texture = "rbxassetid://1176402123"
  1390. joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1391.  
  1392.  
  1393. local LIT = Instance.new('ParticleEmitter', tors)
  1394. LIT.VelocitySpread = 2000
  1395. LIT.Lifetime = NumberRange.new(1)
  1396. LIT.Speed = NumberRange.new(45)
  1397. nani= {}
  1398. for i=0, 19 do
  1399. nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1400. end
  1401. LIT.Size = NumberSequence.new(nani)
  1402. LIT.Rate = 0
  1403. LIT.LockedToPart = false
  1404. LIT.LightEmission = 0
  1405. LIT.Texture = "rbxassetid://1492670151"
  1406. LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1407.  
  1408. local toast = Instance.new('ParticleEmitter', tors)
  1409. toast.VelocitySpread = 2000
  1410. toast.Lifetime = NumberRange.new(1)
  1411. toast.Speed = NumberRange.new(60)
  1412. toasterstoasttoast= {}
  1413. for i=0, 19 do
  1414. toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1415. end
  1416. toast.Size = NumberSequence.new(toasterstoasttoast)
  1417. toast.Rate = 0
  1418. toast.LockedToPart = false
  1419. toast.LightEmission = 0
  1420. toast.Texture = "rbxassetid://436096230"
  1421. toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1422.  
  1423. local ok = Instance.new('ParticleEmitter', tors)
  1424. ok.VelocitySpread = 2000
  1425. ok.Lifetime = NumberRange.new(1)
  1426. ok.Speed = NumberRange.new(50)
  1427. cool= {}
  1428. for i=0, 19 do
  1429. cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1430. end
  1431. ok.Size = NumberSequence.new(cool)
  1432. ok.Rate = 0
  1433. ok.LockedToPart = false
  1434. ok.LightEmission = 0
  1435. ok.Texture = "rbxassetid://636768448"
  1436. ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  1437.  
  1438. -------------------------------------------------------
  1439. --Start Kyu's shitty stuff--
  1440. -------------------------------------------------------
  1441.  
  1442. function ragdoll(model)
  1443. local char = model
  1444. torso = char.HumanoidRootPart
  1445. torso2 = char.Torso
  1446. LW.Parent = nil
  1447. RW.Parent = nil
  1448. LH.Parent = nil
  1449. RH.Parent = nil
  1450. if hum ~= nil then
  1451. hum.PlatformStand = true
  1452. end
  1453.  
  1454. local Head = char:FindFirstChild("Head")
  1455. if Head then
  1456. local Neck = Instance.new("Weld")
  1457. Neck.Name = "Neck"
  1458. Neck.Part0 = torso
  1459. Neck.Part1 = Head
  1460. Neck.C0 = CFrame.new(0, 1.5, 0)
  1461. Neck.C1 = CFrame.new()
  1462. Neck.Parent = torso
  1463. end
  1464. local Limb = char:FindFirstChild("Right Arm")
  1465. if Limb then
  1466.  
  1467. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  1468. local Joint = Instance.new("Glue")
  1469. Joint.Name = "RightShoulder"
  1470. Joint.Part0 = torso
  1471. Joint.Part1 = Limb
  1472. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1473. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1474. Joint.Parent = torso
  1475.  
  1476. local B = Instance.new("Part")
  1477. B.TopSurface = 0
  1478. B.BottomSurface = 0
  1479. B.formFactor = "Symmetric"
  1480. B.Size = Vector3.new(1, 1, 1)
  1481. B.Transparency = 1
  1482. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1483. B.Parent = char
  1484. local W = Instance.new("Weld")
  1485. W.Part0 = Limb
  1486. W.Part1 = B
  1487. W.C0 = CFrame.new(0, -0.5, 0)
  1488. W.Parent = Limb
  1489.  
  1490. end
  1491. local Limb = char:FindFirstChild("Left Arm")
  1492. if Limb then
  1493.  
  1494. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  1495. local Joint = Instance.new("Glue")
  1496. Joint.Name = "LeftShoulder"
  1497. Joint.Part0 = torso
  1498. Joint.Part1 = Limb
  1499. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1500. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1501. Joint.Parent = torso
  1502.  
  1503. local B = Instance.new("Part")
  1504. B.TopSurface = 0
  1505. B.BottomSurface = 0
  1506. B.formFactor = "Symmetric"
  1507. B.Size = Vector3.new(1, 1, 1)
  1508. B.Transparency = 1
  1509. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1510. B.Parent = char
  1511. local W = Instance.new("Weld")
  1512. W.Part0 = Limb
  1513. W.Part1 = B
  1514. W.C0 = CFrame.new(0, -0.5, 0)
  1515. W.Parent = Limb
  1516.  
  1517. end
  1518. local Limb = char:FindFirstChild("Right Leg")
  1519. if Limb then
  1520.  
  1521. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  1522. local Joint = Instance.new("Glue")
  1523. Joint.Name = "RightHip"
  1524. Joint.Part0 = torso
  1525. Joint.Part1 = Limb
  1526. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1527. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1528. Joint.Parent = torso
  1529.  
  1530. local B = Instance.new("Part")
  1531. B.TopSurface = 0
  1532. B.BottomSurface = 0
  1533. B.formFactor = "Symmetric"
  1534. B.Size = Vector3.new(1, 1, 1)
  1535. B.Transparency = 1
  1536. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1537. B.Parent = char
  1538. local W = Instance.new("Weld")
  1539. W.Part0 = Limb
  1540. W.Part1 = B
  1541. W.C0 = CFrame.new(0, -0.5, 0)
  1542. W.Parent = Limb
  1543.  
  1544. end
  1545. local Limb = char:FindFirstChild("Left Leg")
  1546. if Limb then
  1547.  
  1548. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  1549. local Joint = Instance.new("Glue")
  1550. Joint.Name = "LeftHip"
  1551. Joint.Part0 = torso
  1552. Joint.Part1 = Limb
  1553. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1554. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1555. Joint.Parent = torso
  1556.  
  1557. local B = Instance.new("Part")
  1558. B.TopSurface = 0
  1559. B.BottomSurface = 0
  1560. B.formFactor = "Symmetric"
  1561. B.Size = Vector3.new(1, 1, 1)
  1562. B.Transparency = 1
  1563. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1564. B.Parent = char
  1565. local W = Instance.new("Weld")
  1566. W.Part0 = Limb
  1567. W.Part1 = B
  1568. W.C0 = CFrame.new(0, -0.5, 0)
  1569. W.Parent = Limb
  1570.  
  1571. end
  1572. --[
  1573. local Bar = Instance.new("Part")
  1574. Bar.TopSurface = 0
  1575. Bar.BottomSurface = 0
  1576. Bar.formFactor = "Symmetric"
  1577. Bar.Size = Vector3.new(1, 1, 1)
  1578. Bar.Transparency = 1
  1579. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  1580. Bar.Parent = char
  1581. local Weld = Instance.new("Weld")
  1582. Weld.Part0 = torso
  1583. Weld.Part1 = Bar
  1584. Weld.C0 = CFrame.new(0, 0.5, 0)
  1585. Weld.Parent = torso
  1586. --]]
  1587.  
  1588. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  1589.  
  1590. end
  1591.  
  1592. -------------------------------------------------------
  1593. --End Kyu's shitty stuff--
  1594. -------------------------------------------------------
  1595.  
  1596. -------------------------------------------------------
  1597. --Start Important Functions--
  1598. -------------------------------------------------------
  1599. function swait(num)
  1600. if num == 0 or num == nil then
  1601. game:service("RunService").Stepped:wait(0)
  1602. else
  1603. for i = 0, num do
  1604. game:service("RunService").Stepped:wait(0)
  1605. end
  1606. end
  1607. end
  1608. function thread(f)
  1609. coroutine.resume(coroutine.create(f))
  1610. end
  1611. function clerp(a, b, t)
  1612. local qa = {
  1613. QuaternionFromCFrame(a)
  1614. }
  1615. local qb = {
  1616. QuaternionFromCFrame(b)
  1617. }
  1618. local ax, ay, az = a.x, a.y, a.z
  1619. local bx, by, bz = b.x, b.y, b.z
  1620. local _t = 1 - t
  1621. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1622. end
  1623. function QuaternionFromCFrame(cf)
  1624. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1625. local trace = m00 + m11 + m22
  1626. if trace > 0 then
  1627. local s = math.sqrt(1 + trace)
  1628. local recip = 0.5 / s
  1629. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1630. else
  1631. local i = 0
  1632. if m00 < m11 then
  1633. i = 1
  1634. end
  1635. if m22 > (i == 0 and m00 or m11) then
  1636. i = 2
  1637. end
  1638. if i == 0 then
  1639. local s = math.sqrt(m00 - m11 - m22 + 1)
  1640. local recip = 0.5 / s
  1641. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1642. elseif i == 1 then
  1643. local s = math.sqrt(m11 - m22 - m00 + 1)
  1644. local recip = 0.5 / s
  1645. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1646. elseif i == 2 then
  1647. local s = math.sqrt(m22 - m00 - m11 + 1)
  1648. local recip = 0.5 / s
  1649. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1650. end
  1651. end
  1652. end
  1653. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1654. local xs, ys, zs = x + x, y + y, z + z
  1655. local wx, wy, wz = w * xs, w * ys, w * zs
  1656. local xx = x * xs
  1657. local xy = x * ys
  1658. local xz = x * zs
  1659. local yy = y * ys
  1660. local yz = y * zs
  1661. local zz = z * zs
  1662. 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))
  1663. end
  1664. function QuaternionSlerp(a, b, t)
  1665. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1666. local startInterp, finishInterp
  1667. if cosTheta >= 1.0E-4 then
  1668. if 1 - cosTheta > 1.0E-4 then
  1669. local theta = math.acos(cosTheta)
  1670. local invSinTheta = 1 / Sin(theta)
  1671. startInterp = Sin((1 - t) * theta) * invSinTheta
  1672. finishInterp = Sin(t * theta) * invSinTheta
  1673. else
  1674. startInterp = 1 - t
  1675. finishInterp = t
  1676. end
  1677. elseif 1 + cosTheta > 1.0E-4 then
  1678. local theta = math.acos(-cosTheta)
  1679. local invSinTheta = 1 / Sin(theta)
  1680. startInterp = Sin((t - 1) * theta) * invSinTheta
  1681. finishInterp = Sin(t * theta) * invSinTheta
  1682. else
  1683. startInterp = t - 1
  1684. finishInterp = t
  1685. end
  1686. 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
  1687. end
  1688. function rayCast(Position, Direction, Range, Ignore)
  1689. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1690. end
  1691. local RbxUtility = LoadLibrary("RbxUtility")
  1692. local Create = RbxUtility.Create
  1693.  
  1694. -------------------------------------------------------
  1695. --Start Damage Function--
  1696. -------------------------------------------------------
  1697. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1698. if hit.Parent == nil then
  1699. return
  1700. end
  1701. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1702. for _, v in pairs(hit.Parent:children()) do
  1703. if v:IsA("Humanoid") then
  1704. h = v
  1705. end
  1706. end
  1707. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1708. warn'No R15 allowed'
  1709. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1710. end
  1711.  
  1712. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1713. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1714. if hit.Parent.DebounceHit.Value == true then
  1715. return
  1716. end
  1717. end
  1718. if insta == true then
  1719. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1720. end
  1721. local c = Create("ObjectValue"){
  1722. Name = "creator",
  1723. Value = game:service("Players").LocalPlayer,
  1724. Parent = h,
  1725. }
  1726. game:GetService("Debris"):AddItem(c, .5)
  1727. if HitSound ~= nil and HitPitch ~= nil then
  1728. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1729. end
  1730. local Damage = math.random(minim, maxim)
  1731. local blocked = false
  1732. local block = hit.Parent:findFirstChild("Block")
  1733. if block ~= nil then
  1734. if block.className == "IntValue" then
  1735. if block.Value > 0 then
  1736. blocked = true
  1737. block.Value = block.Value - 1
  1738. print(block.Value)
  1739. end
  1740. end
  1741. end
  1742. if blocked == false then
  1743. h.Health = h.Health - Damage
  1744. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1745. else
  1746. h.Health = h.Health - (Damage / 2)
  1747. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1748. end
  1749. if Type == "Knockdown" then
  1750. local hum = hit.Parent.Humanoid
  1751. hum.PlatformStand = true
  1752. coroutine.resume(coroutine.create(function(HHumanoid)
  1753. swait(1)
  1754. HHumanoid.PlatformStand = false
  1755. end), hum)
  1756. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1757. local bodvol = Create("BodyVelocity"){
  1758. velocity = angle * knockback,
  1759. P = 5000,
  1760. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1761. Parent = hit,
  1762. }
  1763. local rl = Create("BodyAngularVelocity"){
  1764. P = 3000,
  1765. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1766. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1767. Parent = hit,
  1768. }
  1769. game:GetService("Debris"):AddItem(bodvol, .5)
  1770. game:GetService("Debris"):AddItem(rl, .5)
  1771. elseif Type == "Normal" then
  1772. local vp = Create("BodyVelocity"){
  1773. P = 500,
  1774. maxForce = Vector3.new(math.huge, 0, math.huge),
  1775. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1776. }
  1777. if knockback > 0 then
  1778. vp.Parent = hit.Parent.Torso
  1779. end
  1780. game:GetService("Debris"):AddItem(vp, .5)
  1781. elseif Type == "Up" then
  1782. local bodyVelocity = Create("BodyVelocity"){
  1783. velocity = Vector3.new(0, 20, 0),
  1784. P = 5000,
  1785. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1786. Parent = hit,
  1787. }
  1788. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1789. elseif Type == "DarkUp" then
  1790. coroutine.resume(coroutine.create(function()
  1791. for i = 0, 1, 0.1 do
  1792. swait()
  1793. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1794. end
  1795. end))
  1796. local bodyVelocity = Create("BodyVelocity"){
  1797. velocity = Vector3.new(0, 20, 0),
  1798. P = 5000,
  1799. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1800. Parent = hit,
  1801. }
  1802. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1803. elseif Type == "Snare" then
  1804. local bp = Create("BodyPosition"){
  1805. P = 2000,
  1806. D = 100,
  1807. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1808. position = hit.Parent.Torso.Position,
  1809. Parent = hit.Parent.Torso,
  1810. }
  1811. game:GetService("Debris"):AddItem(bp, 1)
  1812. elseif Type == "Freeze" then
  1813. local BodPos = Create("BodyPosition"){
  1814. P = 50000,
  1815. D = 1000,
  1816. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1817. position = hit.Parent.Torso.Position,
  1818. Parent = hit.Parent.Torso,
  1819. }
  1820. local BodGy = Create("BodyGyro") {
  1821. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1822. P = 20e+003,
  1823. Parent = hit.Parent.Torso,
  1824. cframe = hit.Parent.Torso.CFrame,
  1825. }
  1826. hit.Parent.Torso.Anchored = true
  1827. coroutine.resume(coroutine.create(function(Part)
  1828. swait(1.5)
  1829. Part.Anchored = false
  1830. end), hit.Parent.Torso)
  1831. game:GetService("Debris"):AddItem(BodPos, 3)
  1832. game:GetService("Debris"):AddItem(BodGy, 3)
  1833. end
  1834. local debounce = Create("BoolValue"){
  1835. Name = "DebounceHit",
  1836. Parent = hit.Parent,
  1837. Value = true,
  1838. }
  1839. game:GetService("Debris"):AddItem(debounce, Delay)
  1840. c = Create("ObjectValue"){
  1841. Name = "creator",
  1842. Value = Player,
  1843. Parent = h,
  1844. }
  1845. game:GetService("Debris"):AddItem(c, .5)
  1846. end
  1847. end
  1848. -------------------------------------------------------
  1849. --End Damage Function--
  1850. -------------------------------------------------------
  1851.  
  1852. -------------------------------------------------------
  1853. --Start Damage Function Customization--
  1854. -------------------------------------------------------
  1855. function ShowDamage(Pos, Text, Time, Color)
  1856. local Rate = (1 / 30)
  1857. local Pos = (Pos or Vector3.new(0, 0, 0))
  1858. local Text = (Text or "")
  1859. local Time = (Time or 2)
  1860. local Color = (Color or Color3.new(1, 0, 1))
  1861. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1862. EffectPart.Anchored = true
  1863. local BillboardGui = Create("BillboardGui"){
  1864. Size = UDim2.new(3, 0, 3, 0),
  1865. Adornee = EffectPart,
  1866. Parent = EffectPart,
  1867. }
  1868. local TextLabel = Create("TextLabel"){
  1869. BackgroundTransparency = 1,
  1870. Size = UDim2.new(1, 0, 1, 0),
  1871. Text = Text,
  1872. Font = "Highway",
  1873. TextColor3 = Color,
  1874. TextScaled = true,
  1875. Parent = BillboardGui,
  1876. }
  1877. game.Debris:AddItem(EffectPart, (Time))
  1878. EffectPart.Parent = game:GetService("Workspace")
  1879. delay(0, function()
  1880. local Frames = (Time / Rate)
  1881. for Frame = 1, Frames do
  1882. wait(Rate)
  1883. local Percent = (Frame / Frames)
  1884. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1885. TextLabel.TextTransparency = Percent
  1886. end
  1887. if EffectPart and EffectPart.Parent then
  1888. EffectPart:Destroy()
  1889. end
  1890. end)
  1891. end
  1892. -------------------------------------------------------
  1893. --End Damage Function Customization--
  1894. -------------------------------------------------------
  1895.  
  1896. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1897. for _, c in pairs(workspace:children()) do
  1898. local hum = c:findFirstChild("Humanoid")
  1899. if hum ~= nil then
  1900. local head = c:findFirstChild("Head")
  1901. if head ~= nil then
  1902. local targ = head.Position - Part.Position
  1903. local mag = targ.magnitude
  1904. if magni >= mag and c.Name ~= plr.Name then
  1905. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  1906. end
  1907. end
  1908. end
  1909. end
  1910. end
  1911.  
  1912.  
  1913. CFuncs = {
  1914. Part = {
  1915. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1916. local Part = Create("Part")({
  1917. Parent = Parent,
  1918. Reflectance = Reflectance,
  1919. Transparency = Transparency,
  1920. CanCollide = false,
  1921. Locked = true,
  1922. BrickColor = BrickColor.new(tostring(BColor)),
  1923. Name = Name,
  1924. Size = Size,
  1925. Material = Material
  1926. })
  1927. RemoveOutlines(Part)
  1928. return Part
  1929. end
  1930. },
  1931. Mesh = {
  1932. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1933. local Msh = Create(Mesh)({
  1934. Parent = Part,
  1935. Offset = OffSet,
  1936. Scale = Scale
  1937. })
  1938. if Mesh == "SpecialMesh" then
  1939. Msh.MeshType = MeshType
  1940. Msh.MeshId = MeshId
  1941. end
  1942. return Msh
  1943. end
  1944. },
  1945. Mesh = {
  1946. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1947. local Msh = Create(Mesh)({
  1948. Parent = Part,
  1949. Offset = OffSet,
  1950. Scale = Scale
  1951. })
  1952. if Mesh == "SpecialMesh" then
  1953. Msh.MeshType = MeshType
  1954. Msh.MeshId = MeshId
  1955. end
  1956. return Msh
  1957. end
  1958. },
  1959. Weld = {
  1960. Create = function(Parent, Part0, Part1, C0, C1)
  1961. local Weld = Create("Weld")({
  1962. Parent = Parent,
  1963. Part0 = Part0,
  1964. Part1 = Part1,
  1965. C0 = C0,
  1966. C1 = C1
  1967. })
  1968. return Weld
  1969. end
  1970. },
  1971. Sound = {
  1972. Create = function(id, par, vol, pit)
  1973. coroutine.resume(coroutine.create(function()
  1974. local S = Create("Sound")({
  1975. Volume = vol,
  1976. Pitch = pit or 1,
  1977. SoundId = id,
  1978. Parent = par or workspace
  1979. })
  1980. wait()
  1981. S:play()
  1982. game:GetService("Debris"):AddItem(S, 6)
  1983. end))
  1984. end
  1985. },
  1986. ParticleEmitter = {
  1987. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1988. local fp = Create("ParticleEmitter")({
  1989. Parent = Parent,
  1990. Color = ColorSequence.new(Color1, Color2),
  1991. LightEmission = LightEmission,
  1992. Size = Size,
  1993. Texture = Texture,
  1994. Transparency = Transparency,
  1995. ZOffset = ZOffset,
  1996. Acceleration = Accel,
  1997. Drag = Drag,
  1998. LockedToPart = LockedToPart,
  1999. VelocityInheritance = VelocityInheritance,
  2000. EmissionDirection = EmissionDirection,
  2001. Enabled = Enabled,
  2002. Lifetime = LifeTime,
  2003. Rate = Rate,
  2004. Rotation = Rotation,
  2005. RotSpeed = RotSpeed,
  2006. Speed = Speed,
  2007. VelocitySpread = VelocitySpread
  2008. })
  2009. return fp
  2010. end
  2011. }
  2012. }
  2013. function RemoveOutlines(part)
  2014. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2015. end
  2016. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2017. local Part = Create("Part")({
  2018. formFactor = FormFactor,
  2019. Parent = Parent,
  2020. Reflectance = Reflectance,
  2021. Transparency = Transparency,
  2022. CanCollide = false,
  2023. Locked = true,
  2024. BrickColor = BrickColor.new(tostring(BColor)),
  2025. Name = Name,
  2026. Size = Size,
  2027. Material = Material
  2028. })
  2029. RemoveOutlines(Part)
  2030. return Part
  2031. end
  2032. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2033. local Msh = Create(Mesh)({
  2034. Parent = Part,
  2035. Offset = OffSet,
  2036. Scale = Scale
  2037. })
  2038. if Mesh == "SpecialMesh" then
  2039. Msh.MeshType = MeshType
  2040. Msh.MeshId = MeshId
  2041. end
  2042. return Msh
  2043. end
  2044. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2045. local Weld = Create("Weld")({
  2046. Parent = Parent,
  2047. Part0 = Part0,
  2048. Part1 = Part1,
  2049. C0 = C0,
  2050. C1 = C1
  2051. })
  2052. return Weld
  2053. end
  2054.  
  2055.  
  2056. -------------------------------------------------------
  2057. --Start Effect Function--
  2058. -------------------------------------------------------
  2059. EffectModel = Instance.new("Model", char)
  2060. Effects = {
  2061. Block = {
  2062. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2063. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2064. prt.Anchored = true
  2065. prt.CFrame = cframe
  2066. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2067. game:GetService("Debris"):AddItem(prt, 10)
  2068. if Type == 1 or Type == nil then
  2069. table.insert(Effects, {
  2070. prt,
  2071. "Block1",
  2072. delay,
  2073. x3,
  2074. y3,
  2075. z3,
  2076. msh
  2077. })
  2078. elseif Type == 2 then
  2079. table.insert(Effects, {
  2080. prt,
  2081. "Block2",
  2082. delay,
  2083. x3,
  2084. y3,
  2085. z3,
  2086. msh
  2087. })
  2088. else
  2089. table.insert(Effects, {
  2090. prt,
  2091. "Block3",
  2092. delay,
  2093. x3,
  2094. y3,
  2095. z3,
  2096. msh
  2097. })
  2098. end
  2099. end
  2100. },
  2101. Sphere = {
  2102. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2103. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2104. prt.Anchored = true
  2105. prt.CFrame = cframe
  2106. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  2107. game:GetService("Debris"):AddItem(prt, 10)
  2108. table.insert(Effects, {
  2109. prt,
  2110. "Cylinder",
  2111. delay,
  2112. x3,
  2113. y3,
  2114. z3,
  2115. msh
  2116. })
  2117. end
  2118. },
  2119. Cylinder = {
  2120. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2121. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2122. prt.Anchored = true
  2123. prt.CFrame = cframe
  2124. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2125. game:GetService("Debris"):AddItem(prt, 10)
  2126. table.insert(Effects, {
  2127. prt,
  2128. "Cylinder",
  2129. delay,
  2130. x3,
  2131. y3,
  2132. z3,
  2133. msh
  2134. })
  2135. end
  2136. },
  2137. Wave = {
  2138. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2139. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2140. prt.Anchored = true
  2141. prt.CFrame = cframe
  2142. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  2143. game:GetService("Debris"):AddItem(prt, 10)
  2144. table.insert(Effects, {
  2145. prt,
  2146. "Cylinder",
  2147. delay,
  2148. x3 / 60,
  2149. y3 / 60,
  2150. z3 / 60,
  2151. msh
  2152. })
  2153. end
  2154. },
  2155. Ring = {
  2156. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2157. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2158. prt.Anchored = true
  2159. prt.CFrame = cframe
  2160. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2161. game:GetService("Debris"):AddItem(prt, 10)
  2162. table.insert(Effects, {
  2163. prt,
  2164. "Cylinder",
  2165. delay,
  2166. x3,
  2167. y3,
  2168. z3,
  2169. msh
  2170. })
  2171. end
  2172. },
  2173. Break = {
  2174. Create = function(brickcolor, cframe, x1, y1, z1)
  2175. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2176. prt.Anchored = true
  2177. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2178. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2179. local num = math.random(10, 50) / 1000
  2180. game:GetService("Debris"):AddItem(prt, 10)
  2181. table.insert(Effects, {
  2182. prt,
  2183. "Shatter",
  2184. num,
  2185. prt.CFrame,
  2186. math.random() - math.random(),
  2187. 0,
  2188. math.random(50, 100) / 100
  2189. })
  2190. end
  2191. },
  2192. Spiral = {
  2193. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2194. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2195. prt.Anchored = true
  2196. prt.CFrame = cframe
  2197. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2198. game:GetService("Debris"):AddItem(prt, 10)
  2199. table.insert(Effects, {
  2200. prt,
  2201. "Cylinder",
  2202. delay,
  2203. x3,
  2204. y3,
  2205. z3,
  2206. msh
  2207. })
  2208. end
  2209. },
  2210. Push = {
  2211. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2212. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2213. prt.Anchored = true
  2214. prt.CFrame = cframe
  2215. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2216. game:GetService("Debris"):AddItem(prt, 10)
  2217. table.insert(Effects, {
  2218. prt,
  2219. "Cylinder",
  2220. delay,
  2221. x3,
  2222. y3,
  2223. z3,
  2224. msh
  2225. })
  2226. end
  2227. }
  2228. }
  2229. -------------------------------------------------------
  2230. --End Effect Function--
  2231. -------------------------------------------------------
  2232.  
  2233. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  2234. local NSound = nil
  2235. coroutine.resume(coroutine.create(function()
  2236. NSound = Instance.new("Sound", PARENT)
  2237. NSound.Volume = VOLUME
  2238. NSound.Pitch = PITCH
  2239. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  2240. swait()
  2241. NSound:play()
  2242. game:GetService("Debris"):AddItem(NSound, 10)
  2243. end))
  2244. return NSound
  2245. end
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251. -------------------------------------------------------
  2252. --End Important Functions--
  2253. -------------------------------------------------------
  2254.  
  2255. NEWS = Instance.new("Sound", tors) --O NO
  2256. NEWS.SoundId = "http://www.roblox.com/asset/?id=271850776"
  2257. NEWS.Volume = 100
  2258. NEWS.Pitch = 1
  2259. NEWS.Looped = false
  2260. NEWS.TimePosition = 1
  2261.  
  2262. AAAAA = Instance.new("Sound", tors) --aaa
  2263. AAAAA.SoundId = "http://www.roblox.com/asset/?id=0"
  2264. AAAAA.Volume = 10
  2265. AAAAA.Pitch = 1
  2266. AAAAA.Looped = false
  2267. AAAAA.TimePosition = 1
  2268.  
  2269. MERKIO = Instance.new("Sound", tors) --why
  2270. MERKIO.SoundId = "http://www.roblox.com/asset/?id=713550954"
  2271. MERKIO.Volume = 10
  2272. MERKIO.Pitch = 1
  2273. MERKIO.Looped = false
  2274. MERKIO.TimePosition = 0
  2275.  
  2276. -------------------------------------------------------
  2277. --Start Music Option--
  2278. -------------------------------------------------------
  2279. local Music = Instance.new("Sound",tors)
  2280. Music.Volume = 2.5
  2281. Music.SoundId = "rbxassetid://"
  2282. Music.Looped = true
  2283. Music.Pitch = 1 --Pitcher
  2284. Music:Play()
  2285. -------------------------------------------------------
  2286. --End Music Option--
  2287. -------------------------------------------------------
  2288. --hi fat >:)
  2289. -------------------------------------------------------
  2290. --Start Attacks N Stuff--
  2291. -------------------------------------------------------
  2292.  
  2293. function THEBESTOVERUSEDJOKEEVER() --oh god why did i make this a thing jeezus help me pls
  2294. attack = true
  2295. hum.WalkSpeed = 16
  2296. Character.Head.face.Texture = "rbxassetid://183225545"
  2297. NEWS:Play()
  2298. repeat
  2299. NEWS.Parent = tors
  2300. swait()
  2301. 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)
  2302. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.3)
  2303. 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)
  2304. 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)
  2305. 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)
  2306. 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)
  2307. until NEWS.Playing == false
  2308. game.Players.LocalPlayer.Character:BreakJoints()
  2309. local S = Instance.new("Explosion",workspace)
  2310. S.Position = tors.Position
  2311. S.BlastPressure = 9
  2312. S.BlastRadius = 30
  2313. S.ExplosionType = 0
  2314. attack = false
  2315. hum.WalkSpeed = 16
  2316. Character.Head.face.Texture = "rbxassetid://295197013"
  2317. attack = false
  2318. hum.WalkSpeed = 16
  2319. end
  2320.  
  2321. function sneakonehundred()
  2322. attack = true
  2323. hum.WalkSpeed = 0.03
  2324. Character.Head.face.Texture = "rbxassetid://948481357"
  2325. CreateSound("1542642349", tors, 10, 1.05)
  2326. for i = 0,20,0.1 do
  2327. swait()
  2328. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  2329. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  2330. 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)
  2331. 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)
  2332. 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)
  2333. 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)
  2334. end
  2335. CreateSound("236018639", tors, 10, 1.05)
  2336. wait(0.25)
  2337. Character.Head.face.Texture = "rbxassetid://1223903433"
  2338. for i = 0,7,0.1 do
  2339. swait()
  2340. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  2341. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  2342. 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)
  2343. 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)
  2344. 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)
  2345. 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)
  2346. end
  2347. Character.Head.face.Texture = "rbxassetid://183225545"
  2348. attack = false
  2349. hum.WalkSpeed = 16
  2350. end
  2351.  
  2352. function DANCEFORME()
  2353. attack = true
  2354. Character.Head.face.Texture = "rbxassetid://183225545"
  2355. MERKIO:Play()
  2356. repeat
  2357. for i = 0,0.7,0.2 do
  2358. swait()
  2359. MERKIO.Parent = tors
  2360. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  2361. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  2362. 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)
  2363. 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)
  2364. 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)
  2365. 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)
  2366. end
  2367. for i = 0,0.7,0.2 do
  2368. swait()
  2369. MERKIO.Parent = tors
  2370. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  2371. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  2372. 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)
  2373. 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)
  2374. 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)
  2375. 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)
  2376. end
  2377. until MERKIO.Playing == false
  2378. MERKIO:Stop()
  2379. Character.Head.face.Texture = "rbxassetid://183225545"
  2380. attack = false
  2381. hum.WalkSpeed = 16
  2382. end
  2383.  
  2384. function takethat()
  2385. attack = true
  2386. hum.WalkSpeed = 0
  2387. CreateSound("1238240145", tors, 10, 1.05)
  2388. for i = 0,8.3,0.1 do
  2389. swait()
  2390. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  2391. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.7)
  2392. 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)
  2393. 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)
  2394. 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)
  2395. 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)
  2396. end
  2397. CreateSound("135165859", tors, 10, 1.05)
  2398. for i = 0,6,0.1 do
  2399. swait()
  2400. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2401. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.85)
  2402. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.7)
  2403. 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)
  2404. 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)
  2405. 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)
  2406. 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)
  2407. end
  2408. attack = false
  2409. hum.WalkSpeed = 16
  2410. end
  2411. function SCREAM()
  2412. attack = true
  2413. hum.WalkSpeed = 16
  2414. Character.Head.face.Texture = "rbxassetid://183225545"
  2415. local A = math.random(1,13)
  2416. if A == 1 then
  2417. AAAAA.SoundId = "rbxassetid://1213175909"
  2418. AAAAA.TimePosition = 0
  2419. end
  2420. if A == 2 then
  2421. AAAAA.SoundId = "rbxassetid://1439720915"
  2422. AAAAA.TimePosition = 0
  2423. end
  2424. if A == 3 then
  2425. AAAAA.SoundId = "rbxassetid://1213179504"
  2426. AAAAA.TimePosition = 0
  2427. end
  2428. if A == 4 then
  2429. AAAAA.SoundId = "rbxassetid://1129186687"
  2430. AAAAA.TimePosition = 0
  2431. end
  2432. if A == 5 then
  2433. AAAAA.SoundId = "rbxassetid://1163493843"
  2434. AAAAA.TimePosition = 0
  2435. end
  2436. if A == 6 then
  2437. AAAAA.SoundId = "rbxassetid://1163494840"
  2438. AAAAA.TimePosition = 0
  2439. end
  2440. if A == 7 then
  2441. AAAAA.SoundId = "rbxassetid://963936697"
  2442. AAAAA.TimePosition = 0
  2443. end
  2444. if A == 8 then
  2445. AAAAA.SoundId = "rbxassetid://1494176499"
  2446. AAAAA.TimePosition = 1
  2447. end
  2448. if A == 9 then
  2449. AAAAA.SoundId = "rbxassetid://1591656314"
  2450. AAAAA.TimePosition = 0
  2451. end
  2452. if A == 10 then
  2453. AAAAA.SoundId = "rbxassetid://130767645"
  2454. AAAAA.TimePosition = 0
  2455. end
  2456. if A == 11 then
  2457. AAAAA.SoundId = "rbxassetid://172818886"
  2458. AAAAA.TimePosition = 0
  2459. end
  2460. if A == 12 then
  2461. AAAAA.SoundId = "rbxassetid://1402021995"
  2462. AAAAA.TimePosition = 0
  2463. end
  2464. if A == 13 then
  2465. AAAAA.SoundId = "rbxassetid://130766856"
  2466. AAAAA.TimePosition = 0
  2467. end
  2468. AAAAA:Play()
  2469. repeat
  2470. swait()
  2471. AAAAA.Parent = tors
  2472. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2473. until AAAAA.Playing == false
  2474. hum.WalkSpeed = 16
  2475. attack = false
  2476. hum.WalkSpeed = 16
  2477. end
  2478.  
  2479. MoreTaunts = false
  2480. mouse.KeyDown:connect(function(key)
  2481. if attack == false then
  2482. if MoreTaunts == false then
  2483. if key == 'q' then
  2484. THEBESTOVERUSEDJOKEEVER()
  2485. elseif key == 'e' then
  2486. SCREAM()
  2487. elseif key == 'r' then
  2488. sneakonehundred()
  2489. elseif key == 't' then
  2490. DANCEFORME()
  2491. elseif key == 'y' then
  2492. takethat()
  2493. end
  2494. end
  2495. end
  2496. end)
  2497.  
  2498. -------------------------------------------------------
  2499. --End Attacks N Stuff--
  2500. -------------------------------------------------------
  2501.  
  2502.  
  2503.  
  2504.  
  2505. while jumping do
  2506. Humanoid.Jump = true
  2507. wait(0.9)
  2508. end
  2509.  
  2510.  
  2511.  
  2512.  
  2513. -------------------------------------------------------
  2514. --Start Animations--
  2515. -------------------------------------------------------
  2516. local equipped = false
  2517. local idle = 0
  2518. local change = 1
  2519. local val = 0
  2520. local toim = 0
  2521. local idleanim = 0.4
  2522. hum.Animator.Parent = nil
  2523. while true do
  2524. swait()
  2525. sine = sine + change
  2526. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2527. local velderp = root.Velocity.y
  2528. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  2529. if equipped == true or equipped == false then
  2530. if attack == false then
  2531. idle = idle + 1
  2532. else
  2533. idle = 0
  2534. end
  2535. if 1 < root.Velocity.y and hitfloor == nil then
  2536. Anim = "Jump"
  2537. if attack == false then
  2538. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(60)), 0.15)
  2539. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2540. 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)
  2541. 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)
  2542. 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)
  2543. 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)
  2544. end
  2545. elseif -1 > root.Velocity.y and hitfloor == nil then
  2546. Anim = "Fall"
  2547. if attack == false then
  2548. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(180), Rad(0), Rad(0)), 0.15)
  2549. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2550. 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)
  2551. 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)
  2552. 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)
  2553. 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)
  2554. end
  2555. elseif torvel < 1 and hitfloor ~= nil then
  2556. Anim = "Idle"
  2557. change = 1
  2558. if attack == false then
  2559. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  2560. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2561. 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)
  2562. 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)
  2563. 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)
  2564. 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)
  2565. end
  2566. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  2567. Anim = "Walk"
  2568. change = 1
  2569. if attack == false then
  2570. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0-255.45), Rad(0), Rad(0)), 0.15)
  2571. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  2572. 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)
  2573. 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)
  2574. 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)
  2575. 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)
  2576. end
  2577. end
  2578. end
  2579. if 0 < #Effects then
  2580. for e = 1, #Effects do
  2581. if Effects[e] ~= nil then
  2582. local Thing = Effects[e]
  2583. if Thing ~= nil then
  2584. local Part = Thing[1]
  2585. local Mode = Thing[2]
  2586. local Delay = Thing[3]
  2587. local IncX = Thing[4]
  2588. local IncY = Thing[5]
  2589. local IncZ = Thing[6]
  2590. if 1 >= Thing[1].Transparency then
  2591. if Thing[2] == "Block1" then
  2592. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2593. local Mesh = Thing[1].Mesh
  2594. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2595. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2596. elseif Thing[2] == "Block2" then
  2597. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2598. local Mesh = Thing[7]
  2599. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2600. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2601. elseif Thing[2] == "Block3" then
  2602. 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)
  2603. local Mesh = Thing[7]
  2604. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2605. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2606. elseif Thing[2] == "Cylinder" then
  2607. local Mesh = Thing[1].Mesh
  2608. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2609. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2610. elseif Thing[2] == "Blood" then
  2611. local Mesh = Thing[7]
  2612. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2613. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2614. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2615. elseif Thing[2] == "Elec" then
  2616. local Mesh = Thing[1].Mesh
  2617. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2618. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2619. elseif Thing[2] == "Disappear" then
  2620. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2621. elseif Thing[2] == "Shatter" then
  2622. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2623. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2624. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2625. Thing[6] = Thing[6] + Thing[5]
  2626. end
  2627. else
  2628. Part.Parent = nil
  2629. table.remove(Effects, e)
  2630. end
  2631. end
  2632. end
  2633. end
  2634. end
  2635. end
  2636. -------------------------------------------------------
  2637. --End Animations And Script--
  2638. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement