r16

Untitled

r16
Mar 29th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.11 KB | None | 0 0
  1. wait(2)
  2. local Player = game.Players.localPlayer
  3. local char = Player.Character
  4. local Character = Player.Character
  5. local Head = Character.Head
  6. local done = false
  7. local canheal = false
  8. local deathchat1 = false
  9. local once = true
  10. local dead = false
  11. local candie = true
  12. local deathchat = false
  13. local idleon = true
  14. local idle1 = true
  15. local idle = true
  16. for i, v in pairs(game:GetService("Players").LocalPlayer.Character:children()) do
  17. if v:IsA("Accessory") then
  18. v:Destroy()
  19. end
  20. end
  21. for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  22. if v:IsA("Shirt") then
  23. v:Remove()
  24. end
  25. end
  26. for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  27. if v:IsA("Pants") then
  28. v:Remove()
  29. end
  30. end
  31. wait()
  32. shirt = Instance.new("Shirt", game:GetService("Players").LocalPlayer.Character)
  33. shirt.Name = "Shirt"
  34. pants = Instance.new("Pants", game:GetService("Players").LocalPlayer.Character)
  35. pants.Name = "Pants"
  36.  
  37. local v3 = Vector3.new
  38. local num = 0
  39. local bc = BrickColor.new
  40. local new = Instance.new
  41.  
  42.  
  43. Instance.new("ForceField",char).Visible = false
  44. local poo = Instance.new("IntValue",Character)
  45. poo.Name = "haha nope"
  46. char.Humanoid.MaxHealth = math.huge
  47. wait()
  48. char.Humanoid.Health = math.huge
  49. Instance.new("ForceField",char).Visible = false
  50.  
  51. shirt = Instance.new("Shirt", char)
  52. shirt.Name = "Shirt"
  53. pants = Instance.new("Pants", char)
  54. pants.Name = "Pants"
  55. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=173754282"
  56. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=208385443"
  57. char.Head.face.Texture = "rbxassetid://9"
  58.  
  59.  
  60. Hair7 = Instance.new("Part")
  61. Hair7.Parent = char
  62. Hair7.Name = "Hair"
  63. Hair7.CanCollide = false
  64. Hair7.Locked = true
  65. Hair7.TopSurface = "Smooth"
  66. Hair7.BottomSurface = "Smooth"
  67. Hair7.formFactor = "Symmetric"
  68. Hair7.Material = "Neon"
  69. Hair7.BrickColor = BrickColor.new("Really black")
  70. Hair7.CFrame = char.Torso.CFrame
  71. Hair7.Size = Vector3.new(1, 1, 1)
  72. Hair7.Transparency = 0
  73.  
  74.  
  75. Weld1 = Instance.new("Weld")
  76. Weld1.Parent = char.Head
  77. Weld1.Part0 = char.Head
  78. Weld1.Part1 = Hair7
  79. Weld1.C0 = CFrame.new(0, 0.66, 0.6)
  80.  
  81. Mesh = Instance.new("SpecialMesh")
  82. Mesh.Offset = Vector3.new(0,-0.4,0)
  83. Mesh.Parent = Hair7
  84. Mesh.Scale = Vector3.new(0.6, 0.6, 0.6)
  85. Mesh.MeshType = "FileMesh"
  86. Mesh.MeshId = "http://www.roblox.com/asset/?id=430064078"
  87. Mesh.TextureId = "http://www.roblox.com/asset/?id=430064079"
  88.  
  89.  
  90. local ice = Instance.new("Part", Head)
  91. ice.Size = Vector3.new(0.5, 0.5, 0.5)
  92. ice.BrickColor = BrickColor.new("White")
  93. ice.CanCollide = false
  94. ice.TopSurface = 0
  95. ice.BottomSurface = 0
  96. ice.Transparency = 1
  97. local ice2 = Instance.new("SpecialMesh", ice)
  98. ice2.MeshType = "Brick"
  99. ice2.Scale = Vector3.new(1, 1, 1)
  100. local ice3 = Instance.new("Weld", ice)
  101. ice3.Part0 = Head
  102. ice3.Part1 = ice
  103. ice3.C0 = CFrame.new(0, 0, -0.8) * CFrame.Angles(0, 0, 0)
  104. local icesmoke = Instance.new("ParticleEmitter", ice)
  105. icesmoke.VelocitySpread = 5
  106. icesmoke.Size = NumberSequence.new({
  107. NumberSequenceKeypoint.new(0, 0.01),
  108. NumberSequenceKeypoint.new(1, 1)
  109. })
  110. icesmoke.Rate = math.huge
  111. icesmoke.Speed = NumberRange.new(1, 1)
  112. icesmoke.Lifetime = NumberRange.new(0.5, 0.8)
  113. icesmoke.Transparency = NumberSequence.new({
  114. NumberSequenceKeypoint.new(0, 0.9),
  115. NumberSequenceKeypoint.new(1, 1)
  116. })
  117. icesmoke.Rotation = NumberRange.new(0, 360)
  118. icesmoke.Name = "Smoke"
  119. icesmoke.LightEmission = 0
  120. icesmoke.Acceleration = Vector3.new(0,0,0)
  121. icesmoke.Texture = "http://www.roblox.com/asset/?id="
  122. icesmoke.Color = ColorSequence.new(Color3.new(0.5, 0.5, 0.5), Color3.new(0.5, 0.5, 0.5))
  123. icesmoke.LockedToPart = true
  124. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  125. secondcolor = "Really black"
  126. wait(0.016666666666666666)
  127. Effects = {}
  128. local Player = game.Players.localPlayer
  129. local Character = Player.Character
  130. local Humanoid = Character.Humanoid
  131. local mouse = Player:GetMouse()
  132. local LeftArm = Character["Left Arm"]
  133. local RightArm = Character["Right Arm"]
  134. local LeftLeg = Character["Left Leg"]
  135. local RightLeg = Character["Right Leg"]
  136. local Head = Character.Head
  137. local Torso = Character.Torso
  138. local cam = game.Workspace.CurrentCamera
  139. local RootPart = Character.HumanoidRootPart
  140. local RootJoint = RootPart.RootJoint
  141. local equipped = true
  142. local attack = false
  143. local Anim = "Idle"
  144. local idle = 0
  145. local attacktype = 1
  146. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  147. local velocity = RootPart.Velocity.y
  148. local sine = 0
  149. local change = 1
  150. local grabbed = false
  151. local cn = CFrame.new
  152. local mr = math.rad
  153. local angles = CFrame.Angles
  154. local ud = UDim2.new
  155. local c3 = Color3.new
  156. local dir = {
  157. w = 0,
  158. s = 0,
  159. a = 0,
  160. d = 0
  161. }
  162. firemode = true
  163. local Services = {
  164. SoundService = game:GetService("SoundService"),
  165. Players = game:GetService("Players"),
  166. Debris = game:GetService("Debris"),
  167. Workspace = game:GetService("Workspace"),
  168. Lighting = game:GetService("Lighting"),
  169. HttpService = game:GetService("HttpService"),
  170. InsertService = game:GetService("InsertService")
  171. }
  172. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  173. Humanoid.Animator:Destroy()
  174. Character.Animate:Destroy()
  175. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  176. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  177. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  178. RSH, LSH = nil, nil
  179. RW = Instance.new("Weld")
  180. LW = Instance.new("Weld")
  181. RH = Torso["Right Hip"]
  182. LH = Torso["Left Hip"]
  183. RSH = Torso["Right Shoulder"]
  184. LSH = Torso["Left Shoulder"]
  185. RSH.Parent = nil
  186. LSH.Parent = nil
  187. RW.Name = "RW"
  188. RW.Part0 = Torso
  189. RW.C0 = cn(1.5, 0.5, 0)
  190. RW.C1 = cn(0, 0.5, 0)
  191. RW.Part1 = RightArm
  192. RW.Parent = Torso
  193. LW.Name = "LW"
  194. LW.Part0 = Torso
  195. LW.C0 = cn(-1.5, 0.5, 0)
  196. LW.C1 = cn(0, 0.5, 0)
  197. LW.Part1 = LeftArm
  198. LW.Parent = Torso
  199. --------------
  200. function clerp(a, b, t)
  201. local qa = {
  202. QuaternionFromCFrame(a)
  203. }
  204. local qb = {
  205. QuaternionFromCFrame(b)
  206. }
  207. local ax, ay, az = a.x, a.y, a.z
  208. local bx, by, bz = b.x, b.y, b.z
  209. local _t = 1 - t
  210. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  211. end
  212. function QuaternionFromCFrame(cf)
  213. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  214. local trace = m00 + m11 + m22
  215. if trace > 0 then
  216. local s = math.sqrt(1 + trace)
  217. local recip = 0.5 / s
  218. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  219. else
  220. local i = 0
  221. if m00 < m11 then
  222. i = 1
  223. end
  224. if m22 > (i == 0 and m00 or m11) then
  225. i = 2
  226. end
  227. if i == 0 then
  228. local s = math.sqrt(m00 - m11 - m22 + 1)
  229. local recip = 0.5 / s
  230. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  231. elseif i == 1 then
  232. local s = math.sqrt(m11 - m22 - m00 + 1)
  233. local recip = 0.5 / s
  234. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  235. elseif i == 2 then
  236. local s = math.sqrt(m22 - m00 - m11 + 1)
  237. local recip = 0.5 / s
  238. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  239. end
  240. end
  241. end
  242. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  243. local xs, ys, zs = x + x, y + y, z + z
  244. local wx, wy, wz = w * xs, w * ys, w * zs
  245. local xx = x * xs
  246. local xy = x * ys
  247. local xz = x * zs
  248. local yy = y * ys
  249. local yz = y * zs
  250. local zz = z * zs
  251. 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))
  252. end
  253. function QuaternionSlerp(a, b, t)
  254. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  255. local startInterp, finishInterp
  256. if cosTheta >= 1.0E-4 then
  257. if 1 - cosTheta > 1.0E-4 then
  258. local theta = math.acos(cosTheta)
  259. local invSinTheta = 1 / math.sin(theta)
  260. startInterp = math.sin((1 - t) * theta) * invSinTheta
  261. finishInterp = math.sin(t * theta) * invSinTheta
  262. else
  263. startInterp = 1 - t
  264. finishInterp = t
  265. end
  266. elseif 1 + cosTheta > 1.0E-4 then
  267. local theta = math.acos(-cosTheta)
  268. local invSinTheta = 1 / math.sin(theta)
  269. startInterp = math.sin((t - 1) * theta) * invSinTheta
  270. finishInterp = math.sin(t * theta) * invSinTheta
  271. else
  272. startInterp = t - 1
  273. finishInterp = t
  274. end
  275. 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
  276. end
  277. function swait(num)
  278. if num == 0 or num == nil then
  279. game:service("RunService").RenderStepped:wait(0)
  280. else
  281. for i = 0, num do
  282. game:service("RunService").RenderStepped:wait(0)
  283. end
  284. end
  285. end
  286. local RbxUtility = LoadLibrary("RbxUtility")
  287. local Create = RbxUtility.Create
  288. function RemoveOutlines(part)
  289. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  290. end
  291. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  292. local Part = Create("Part")({
  293. formFactor = FormFactor,
  294. Parent = Parent,
  295. Reflectance = Reflectance,
  296. Transparency = Transparency,
  297. CanCollide = false,
  298. Locked = true,
  299. BrickColor = BrickColor.new(tostring(BColor)),
  300. Name = Name,
  301. Size = Size,
  302. Material = Material
  303. })
  304. RemoveOutlines(Part)
  305. return Part
  306. end
  307. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  308. local Msh = Create(Mesh)({
  309. Parent = Part,
  310. Offset = OffSet,
  311. Scale = Scale
  312. })
  313. if Mesh == "SpecialMesh" then
  314. Msh.MeshType = MeshType
  315. Msh.MeshId = MeshId
  316. end
  317. return Msh
  318. end
  319. function CreateWeld(Parent, Part0, Part1, C0, C1)
  320. local Weld = Create("Weld")({
  321. Parent = Parent,
  322. Part0 = Part0,
  323. Part1 = Part1,
  324. C0 = C0,
  325. C1 = C1
  326. })
  327. return Weld
  328. end
  329. function rayCast(Position, Direction, Range, Ignore)
  330. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  331. end
  332. function CreateSound(id, par, vol, pit)
  333. coroutine.resume(coroutine.create(function()
  334. local sou = Instance.new("Sound", par or workspace)
  335. sou.Volume = vol
  336. sou.Pitch = pit or 1
  337. sou.SoundId = id
  338. wait()
  339. sou:play()
  340. game:GetService("Debris"):AddItem(sou, 6)
  341. end))
  342. end
  343. function CreateSong(id, par, vol, pit)
  344. coroutine.resume(coroutine.create(function()
  345. sou2 = Instance.new("Sound", par or workspace)
  346. sou2.Volume = 1
  347. sou2.Pitch = 1
  348. sou2.SoundId = id
  349. wait()
  350. sou2:play()
  351. sou2.Looped = true
  352. end))
  353. end
  354. CreateSong("http://www.roblox.com/asset/?id=", Character, 2)
  355. local function getclosest(obj, distance)
  356. local last, lastx = distance + 1, nil
  357. for i, v in pairs(workspace:GetChildren()) do
  358. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  359. local t = v.Torso
  360. local dist = t.Position - obj.Position.magnitude
  361. if distance >= dist and last > dist then
  362. last = dist
  363. lastx = v
  364. end
  365. end
  366. end
  367. return lastx
  368. end
  369. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  370. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  371. prt.Anchored = true
  372. prt.CFrame = cframe
  373. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  374. game:GetService("Debris"):AddItem(prt, 10)
  375. if Type == 1 or Type == nil then
  376. table.insert(Effects, {
  377. prt,
  378. "Block1",
  379. delay,
  380. x3,
  381. y3,
  382. z3,
  383. msh
  384. })
  385. elseif Type == 2 then
  386. table.insert(Effects, {
  387. prt,
  388. "Block2",
  389. delay,
  390. x3,
  391. y3,
  392. z3,
  393. msh
  394. })
  395. elseif Type == 3 then
  396. table.insert(Effects, {
  397. prt,
  398. "Block3",
  399. delay,
  400. x3,
  401. y3,
  402. z3,
  403. msh
  404. })
  405. end
  406. end
  407. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  408. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  409. prt.Anchored = true
  410. prt.CFrame = cframe
  411. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  412. game:GetService("Debris"):AddItem(prt, 10)
  413. table.insert(Effects, {
  414. prt,
  415. "Cylinder",
  416. delay,
  417. x3,
  418. y3,
  419. z3,
  420. msh
  421. })
  422. end
  423. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  424. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  425. prt.Anchored = true
  426. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  427. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  428. game:GetService("Debris"):AddItem(prt, 10)
  429. table.insert(Effects, {
  430. prt,
  431. "Cylinder",
  432. delay,
  433. x3,
  434. y3,
  435. z3,
  436. msh
  437. })
  438. end
  439. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  440. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  441. prt.Anchored = true
  442. prt.CFrame = cframe
  443. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  444. game:GetService("Debris"):AddItem(prt, 10)
  445. table.insert(Effects, {
  446. prt,
  447. "Cylinder",
  448. delay,
  449. x3,
  450. y3,
  451. z3,
  452. msh
  453. })
  454. end
  455. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  456. local prt = CreatePart(3, workspace, "", 0, 0, brickcolor, "Effect", Vector3.new())
  457. prt.Anchored = true
  458. prt.CFrame = cframe
  459. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  460. game:GetService("Debris"):AddItem(prt, 10)
  461. table.insert(Effects, {
  462. prt,
  463. "Cylinder",
  464. delay,
  465. x3,
  466. y3,
  467. z3,
  468. msh
  469. })
  470. end
  471. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  472. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  473. prt.Anchored = true
  474. prt.CFrame = cframe
  475. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  476. game:GetService("Debris"):AddItem(prt, 10)
  477. table.insert(Effects, {
  478. prt,
  479. "Cylinder",
  480. delay,
  481. x3,
  482. y3,
  483. z3,
  484. msh
  485. })
  486. end
  487. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  488. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  489. prt.Anchored = true
  490. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  491. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  492. local num = math.random(10, 50) / 1000
  493. game:GetService("Debris"):AddItem(prt, 10)
  494. table.insert(Effects, {
  495. prt,
  496. "Shatter",
  497. num,
  498. prt.CFrame,
  499. math.random() - math.random(),
  500. 0,
  501. math.random(50, 100) / 100
  502. })
  503. end
  504.  
  505. attack = false
  506. game:GetService("RunService").Stepped:connect(function()
  507. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  508. velocity = RootPart.Velocity.y
  509. sine = sine + change
  510. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  511. if equipped == true or equipped == false then
  512. if 1 < RootPart.Velocity.y and hit == nil then
  513. Anim = "Jump"
  514. if attack == false and ice_mode == false then
  515. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  516. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  517. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  518. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  519. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  520. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  521. end
  522. elseif RootPart.Velocity.y < -1 and hit == nil and ice_mode == false then
  523. Anim = "Fall"
  524. if attack == false then
  525. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  526. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  529. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  530. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  531. end
  532. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 and hit ~= nil and ice_mode == false then
  533. Anim = "Idle"
  534. if attack == false then
  535. change = 1
  536. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(67)), .1)
  537. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-59)), .1)
  538. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(56 + 3 * math.cos(sine / 25))), 0.1)
  539. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(70), math.rad(60), math.rad(-50 - 3 * math.cos(sine / 25))), 0.1)
  540. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-15 + 0 * math.cos(sine / 25)), math.rad(-1), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  541. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-12 + 0 * math.cos(sine / 25)), math.rad(-1), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  542. end
  543. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 500 and hit ~= nil and ice_mode == false then
  544. Anim = "Walk"
  545. if attack==false then
  546. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0.5, -0.05 + .1 * 2.5 * math.cos(sine / 2)) * angles(math.rad(50), math.rad(2) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 2))), .2)
  547. Torso.Neck.C0 = clerp(Torso.Neck.C0, cn(0, 1.1, -0.2, -1, -0, -0, 0, 0, 1, 0, 1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
  548. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.4) * angles(math.rad(50 * math.cos(6 / 2)), math.rad(-5), math.rad(5 * math.cos(sine / 3))), .2)
  549. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.4) * angles(math.rad(50 * math.cos(6 / 2)), math.rad(5), math.rad(5 * math.cos(sine / 3))), .2)
  550. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
  551. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
  552. end
  553. end
  554. end
  555. if equipped == true or equipped == false then
  556. if 1 < RootPart.Velocity.Y and hit == nil then
  557. Anim = "Jump"
  558. if attack == false and ice_mode == true then
  559. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  560. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  561. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  562. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  563. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  564. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  565. end
  566. elseif RootPart.Velocity.Y < -1 and hit == nil and ice_mode == true then
  567. Anim = "Fall"
  568. if attack == false then
  569. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  570. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  571. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  572. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  573. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  574. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  575. end
  576. elseif(Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 and hit ~= nil and ice_mode == true then
  577. Anim = "Idle"
  578. if attack == false then
  579. change = 0.8
  580. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(9), math.rad(1), math.rad(15)), 0.1)
  581. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-9 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-15)), 0.1)
  582. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.2) * angles(math.rad(110 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-26 + 4 * math.cos(sine / 25))), 0.1)
  583. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4, -0.15) * angles(math.rad(60 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(30 - 4 * math.cos(sine / 25))), 0.1)
  584. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(-15), math.rad(19 + 2 * math.cos(sine / 25))), 0.1)
  585. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 25), -0.1) * LHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(-15), math.rad(9 + 2 * math.cos(sine / 25))), 0.1)
  586. end
  587. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 and hit ~= nil and ice_mode == true then
  588. Anim = "Walk"
  589. if attack == false then
  590. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.5 + 0.1 * math.cos(sine / 25)) * angles(math.rad(9), math.rad(1), math.rad(-70)), 0.1)
  591. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-9 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(70)), 0.1)
  592. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.2) * angles(math.rad(110 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-26 + 4 * math.cos(sine / 25))), 0.1)
  593. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4, -0.15) * angles(math.rad(60 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(30 - 4 * math.cos(sine / 25))), 0.1)
  594. RH.C0 = clerp(RH.C0, cn(0.6, -0.8 - 0.1 * math.cos(sine / 25), -0.5) * RHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(70), math.rad(4 + 2 * math.cos(sine / 25))), 0.1)
  595. LH.C0 = clerp(LH.C0, cn(-0.9, -0.8 - 0.1 * math.cos(sine / 25), 0.4) * LHCF * angles(math.rad(-4 + 2 * math.cos(sine / 25)), math.rad(70), math.rad(-19 + 2 * math.cos(sine / 25))), 0.1)
  596. end
  597. end
  598. end
  599. if 0 < #Effects then
  600. for e = 1, #Effects do
  601. if Effects[e] ~= nil then
  602. local Thing = Effects[e]
  603. if Thing ~= nil then
  604. local Part = Thing[1]
  605. local Mode = Thing[2]
  606. local Delay = Thing[3]
  607. local IncX = Thing[4]
  608. local IncY = Thing[5]
  609. local IncZ = Thing[6]
  610. if 1 >= Thing[1].Transparency then
  611. if Thing[2] == "Block1" then
  612. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  613. local Mesh = Thing[1].Mesh
  614. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  615. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  616. elseif Thing[2] == "Block2" then
  617. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, -0.3, 0)
  618. local Mesh = Thing[7]
  619. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  620. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  621. elseif Thing[2] == "Block3" then
  622. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.2, 0)
  623. local Mesh = Thing[7]
  624. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  625. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  626. elseif Thing[2] == "Cylinder" then
  627. local Mesh = Thing[1].Mesh
  628. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  629. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  630. elseif Thing[2] == "Blood" then
  631. local Mesh = Thing[7]
  632. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  633. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  634. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  635. elseif Thing[2] == "Elec" then
  636. local Mesh = Thing[1].Mesh
  637. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  638. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  639. elseif Thing[2] == "Disappear" then
  640. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  641. elseif Thing[2] == "Shatter" then
  642. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  643. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  644. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  645. Thing[6] = Thing[6] + Thing[5]
  646. end
  647. else
  648. Part.Parent = nil
  649. table.remove(Effects, e)
  650. end
  651. end
  652. end
  653. end
  654. end
  655. end)
  656. function RemoveOutlines(part)
  657. part.TopSurface = 10
  658. end
  659. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  660. local Part = Create("Part")({
  661. Parent = Parent,
  662. Reflectance = Reflectance,
  663. Transparency = Transparency,
  664. CanCollide = false,
  665. Locked = true,
  666. BrickColor = BrickColor.new(tostring(BColor)),
  667. Name = Name,
  668. Size = Size,
  669. Material = Material
  670. })
  671. RemoveOutlines(Part)
  672. return Part
  673. end
  674. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  675. local Msh = Create(Mesh)({
  676. Parent = Part,
  677. Offset = OffSet,
  678. Scale = Scale
  679. })
  680. if Mesh == "SpecialMesh" then
  681. Msh.MeshType = MeshType
  682. Msh.MeshId = MeshId
  683. end
  684. return Msh
  685. end
  686. function CreateWeld(Parent, Part0, Part1, C0, C1)
  687. local Weld = Create("Weld")({
  688. Parent = Parent,
  689. Part0 = Part0,
  690. Part1 = Part1,
  691. C0 = C0,
  692. C1 = C1
  693. })
  694. return Weld
  695. end
  696. WSHM = {
  697. "White",
  698. "Pastel light blue"
  699. }
  700. WSH = WSHM[math.random(1, #WSHM)]
  701. function IcePartFunk(HPart, aria, Min, Max)
  702. IcePart = Instance.new("Part", HPart)
  703. IcePart.Size = Vector3.new(math.random(Min, Max), math.random(Min, Max), math.random(Min, Max))
  704. IcePart.CanCollide = false
  705. IuW = Instance.new("Weld")
  706. IuW.Name = "GuW"
  707. IuW.Part0 = HPart
  708. IuW.C0 = cn(math.random(-aria, aria), math.random(-aria, aria), math.random(-aria, aria)) * angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  709. IuW.C1 = cn(0, math.random(-aria / 2, aria / 2), 0)
  710. IuW.Part1 = IcePart
  711. IuW.Parent = HPart
  712. IcePart.Transparency = 0.85
  713. IcePart.Material = "Neon"
  714. WSH = WSHM[math.random(1, #WSHM)]
  715. IcePart.BrickColor = BrickColor.new("" .. WSH)
  716. RemoveOutlines(IcePart)
  717. game:GetService("Debris"):AddItem(IuW, 4)
  718. game:GetService("Debris"):AddItem(IcePart, 6)
  719. end
  720. SpikeMeshId = 1033714
  721. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  722. local Part = Instance.new("Part", Parent)
  723. Part.Name = Name
  724. Part.BrickColor = BrickColor.new(Color)
  725. Part.Size = Size
  726. Part.Material = Material
  727. Part.Transparency = Transparency
  728. Part.CanCollide = false
  729. RemoveOutlines(Part)
  730. local Mesh = Instance.new("SpecialMesh", Part)
  731. Mesh.MeshType = "Sphere"
  732. Mesh.Scale = Scale
  733. return Mesh and Part
  734. end
  735. CFuncs = {
  736. Part = {
  737. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  738. local Part = Create("Part")({
  739. Parent = Parent,
  740. Reflectance = Reflectance,
  741. Transparency = Transparency,
  742. CanCollide = false,
  743. Locked = true,
  744. BrickColor = BrickColor.new(tostring(BColor)),
  745. Name = Name,
  746. Size = Size,
  747. Material = Material
  748. })
  749. RemoveOutlines(Part)
  750. return Part
  751. end
  752. },
  753. Mesh = {
  754. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  755. local Msh = Create(Mesh)({
  756. Parent = Part,
  757. Offset = OffSet,
  758. Scale = Scale
  759. })
  760. if Mesh == "SpecialMesh" then
  761. Msh.MeshType = MeshType
  762. Msh.MeshId = MeshId
  763. end
  764. return Msh
  765. end
  766. },
  767. Mesh = {
  768. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  769. local Msh = Create(Mesh)({
  770. Parent = Part,
  771. Offset = OffSet,
  772. Scale = Scale
  773. })
  774. if Mesh == "SpecialMesh" then
  775. Msh.MeshType = MeshType
  776. Msh.MeshId = MeshId
  777. end
  778. return Msh
  779. end
  780. },
  781. Weld = {
  782. Create = function(Parent, Part0, Part1, C0, C1)
  783. local Weld = Create("Weld")({
  784. Parent = Parent,
  785. Part0 = Part0,
  786. Part1 = Part1,
  787. C0 = C0,
  788. C1 = C1
  789. })
  790. return Weld
  791. end
  792. },
  793. Sound = {
  794. Create = function(id, par, vol, pit)
  795. coroutine.resume(coroutine.create(function()
  796. local S = Create("Sound")({
  797. Volume = vol,
  798. Pitch = pit or 1,
  799. SoundId = id,
  800. Parent = par or workspace
  801. })
  802. wait()
  803. S:play()
  804. game:GetService("Debris"):AddItem(S, 6)
  805. end))
  806. end
  807. },
  808. ParticleEmitter = {
  809. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  810. local fp = Create("ParticleEmitter")({
  811. Parent = Parent,
  812. Color = ColorSequence.new(Color1, Color2),
  813. LightEmission = LightEmission,
  814. Size = Size,
  815. Texture = Texture,
  816. Transparency = Transparency,
  817. ZOffset = ZOffset,
  818. Acceleration = Accel,
  819. Drag = Drag,
  820. LockedToPart = LockedToPart,
  821. VelocityInheritance = VelocityInheritance,
  822. EmissionDirection = EmissionDirection,
  823. Enabled = Enabled,
  824. Lifetime = LifeTime,
  825. Rate = Rate,
  826. Rotation = Rotation,
  827. RotSpeed = RotSpeed,
  828. Speed = Speed,
  829. VelocitySpread = VelocitySpread
  830. })
  831. return fp
  832. end
  833. }
  834. }
  835. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  836. if hit.Parent == nil then
  837. return
  838. end
  839. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  840. for _, v in pairs(hit.Parent:children()) do
  841. if v:IsA("Humanoid") then
  842. h = v
  843. end
  844. end
  845. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  846. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  847. return
  848. end
  849. local c = Create("ObjectValue")({
  850. Name = "creator",
  851. Value = game:service("Players").LocalPlayer,
  852. Parent = h
  853. })
  854. game:GetService("Debris"):AddItem(c, 0.5)
  855. if HitSound ~= nil and HitPitch ~= nil then
  856. CreateSound(HitSound, hit, 1, HitPitch)
  857. end
  858. local Damage = math.random(minim, maxim)
  859. local blocked = false
  860. local block = hit.Parent:findFirstChild("Block")
  861. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  862. blocked = true
  863. block.Value = block.Value - 1
  864. print(block.Value)
  865. end
  866. if blocked == false then
  867. h.Health = h.Health - Damage
  868. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  869. else
  870. h.Health = h.Health - Damage / 2
  871. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  872. end
  873. if Type == "Knockdown" then
  874. local hum = hit.Parent.Humanoid
  875. hum.PlatformStand = true
  876. coroutine.resume(coroutine.create(function(HHumanoid)
  877. swait(1)
  878. HHumanoid.PlatformStand = false
  879. end), hum)
  880. local angle = hit.Position - Property.Position + Vector3.new(0, 0, 0).unit
  881. local bodvol = Create("BodyVelocity")({
  882. velocity = angle * knockback,
  883. P = 5000,
  884. maxForce = Vector3.new(8000, 8000, 8000),
  885. Parent = hit
  886. })
  887. local rl = Create("BodyAngularVelocity")({
  888. P = 3000,
  889. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  890. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  891. Parent = hit
  892. })
  893. game:GetService("Debris"):AddItem(bodvol, 0.5)
  894. game:GetService("Debris"):AddItem(rl, 0.5)
  895. elseif Type == "Normal" then
  896. local vp = Create("BodyVelocity")({
  897. P = 500,
  898. maxForce = Vector3.new(math.huge, 0, math.huge),
  899. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  900. })
  901. if knockback > 0 then
  902. vp.Parent = hit.Parent.Torso
  903. end
  904. game:GetService("Debris"):AddItem(vp, 0.5)
  905. elseif Type == "Impale" then
  906. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Pastel light blue", Vector3.new(1, 1, 1), "Neon", 0.7, Vector3.new(1, 25, 1))
  907. Spike.Anchored = true
  908. Spike.Rotation = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10))
  909. Spike.Position = hit.Parent.Torso.Position
  910. for i = 1, 5 do
  911. IcePartFunk(hit.Parent.Torso, 0.55, 0.1, 1)
  912. end
  913. Services.Debris:AddItem(Spike, 4)
  914. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, 0.8, 2)
  915. hit.Parent.Humanoid.PlatformStand = true
  916. swait(1)
  917. hit.Parent.Humanoid.PlatformStand = false
  918. elseif Type == "Up" then
  919. local bodyVelocity = Create("BodyVelocity")({
  920. velocity = Vector3.new(0, 20, 0),
  921. P = 5000,
  922. maxForce = Vector3.new(8000, 8000, 8000),
  923. Parent = hit
  924. })
  925. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  926. local bodyVelocity = Create("BodyVelocity")({
  927. velocity = Vector3.new(0, 20, 0),
  928. P = 5000,
  929. maxForce = Vector3.new(8000, 8000, 8000),
  930. Parent = hit
  931. })
  932. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  933. elseif Type == "Snare" then
  934. local bp = Create("BodyPosition")({
  935. P = 900,
  936. D = 1000,
  937. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  938. position = hit.Parent.Torso.Position,
  939. Parent = hit.Parent.Torso
  940. })
  941. game:GetService("Debris"):AddItem(bp, 1)
  942. elseif Type == "Slowness" then
  943. local SpeedSave = hit.Parent.Humanoid.WalkSpeed
  944. for i = 1, 25 do
  945. hit.Parent.Humanoid.WalkSpeed = 4
  946. IcePartFunk(hit.Parent.Torso, 0.55, 0.1, 1)
  947. end
  948. wait(4)
  949. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  950. elseif Type == "FireDmg" then
  951. for i = 1, math.random(60, 150) do
  952. BlockEffect(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05, 3)
  953. BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05, 3)
  954. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035, 3)
  955. wait(0.1)
  956. MagniDamage(hit.Parent.Torso, 12304, 1, 8, 0, "Normal")
  957. end
  958. elseif Type == "Freeze" then
  959. local bp = Create("BodyPosition")({
  960. P = 900,
  961. D = 1000,
  962. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  963. position = hit.Parent.Torso.Position,
  964. Parent = hit.Parent.Torso
  965. })
  966. game:GetService("Debris"):AddItem(bp, 4)
  967. for i = 1, 25 do
  968. IcePartFunk(hit.Parent.Torso, 1, 1.5, 2)
  969. end
  970. elseif Type == "Freeze2" then
  971. local BodPos = Create("BodyPosition")({
  972. P = 50000,
  973. D = 1000,
  974. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  975. position = hit.Parent.Torso.Position,
  976. Parent = hit.Parent.Torso
  977. })
  978. local BodGy = Create("BodyGyro")({
  979. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  980. P = 20000,
  981. Parent = hit.Parent.Torso,
  982. cframe = hit.Parent.Torso.CFrame
  983. })
  984. hit.Parent.Torso.Anchored = true
  985. coroutine.resume(coroutine.create(function(Part)
  986. swait(1.5)
  987. Part.Anchored = false
  988. end), hit.Parent.Torso)
  989. game:GetService("Debris"):AddItem(BodPos, 3)
  990. game:GetService("Debris"):AddItem(BodGy, 3)
  991. end
  992. local debounce = Create("BoolValue")({
  993. Name = "DebounceHit",
  994. Parent = hit.Parent,
  995. Value = true
  996. })
  997. game:GetService("Debris"):AddItem(debounce, Delay)
  998. c = Instance.new("ObjectValue")
  999. c.Name = "creator"
  1000. c.Value = Player
  1001. c.Parent = h
  1002. game:GetService("Debris"):AddItem(c, 0.5)
  1003. end
  1004. end
  1005. function ShowDamage(Pos, Text, Time, Color)
  1006. local Rate = 0.033333333333333
  1007. if not Pos then
  1008. local Pos = Vector3.new(0, 0, 0)
  1009. end
  1010. local Text = Text or ""
  1011. local Time = Time or 2
  1012. if not Color then
  1013. local Color = Color3.new(1, 0, 1)
  1014. end
  1015. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1016. EffectPart.Anchored = true
  1017. local BillboardGui = Create("BillboardGui")({
  1018. Size = UDim2.new(3, 0, 3, 0),
  1019. Adornee = EffectPart,
  1020. Parent = EffectPart
  1021. })
  1022. local TextLabel = Create("TextLabel")({
  1023. BackgroundTransparency = 1,
  1024. Size = UDim2.new(1, 0, 1, 0),
  1025. Text = Text,
  1026. TextColor3 = Color,
  1027. TextScaled = true,
  1028. Font = Enum.Font.ArialBold,
  1029. Parent = BillboardGui
  1030. })
  1031. game.Debris:AddItem(EffectPart, Time + 0.1)
  1032. EffectPart.Parent = game:GetService("Workspace")
  1033. delay(0, function()
  1034. local Frames = Time / Rate
  1035. for Frame = 1, Frames do
  1036. wait(Rate)
  1037. local Percent = Frame / Frames
  1038. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1039. TextLabel.TextTransparency = Percent
  1040. end
  1041. if EffectPart and EffectPart.Parent then
  1042. EffectPart:Destroy()
  1043. end
  1044. end)
  1045. end
  1046. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1047. for _, c in pairs(workspace:children()) do
  1048. local hum = c:findFirstChild("Humanoid")
  1049. if hum ~= nil then
  1050. local head = c:findFirstChild("Head")
  1051. if head ~= nil then
  1052. local targ = head.Position - Part.Position
  1053. local mag = targ.magnitude
  1054. if magni >= mag and c.Name ~= Player.Name then
  1055. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=1050733875", 1)
  1056. end
  1057. end
  1058. end
  1059. end
  1060. end
  1061. function MagniKILL(Part, magni, knock, Type)
  1062. for _, c in pairs(workspace:children()) do
  1063. local hum = c:findFirstChild("Humanoid")
  1064. if hum ~= nil then
  1065. local head = c:findFirstChild("Head")
  1066. if head ~= nil then
  1067. local targ = head.Position - Part.Position
  1068. local mag = targ.magnitude
  1069. if magni >= mag and c.Name ~= Player.Name then
  1070. hum.Health = 0
  1071. end
  1072. end
  1073. end
  1074. end
  1075. end
  1076. EffectModel = Instance.new("Model", Character)
  1077. EffectModel.Name = "Effects"
  1078. Effects = {
  1079. Block = {
  1080. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1081. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1082. prt.Anchored = true
  1083. prt.CFrame = cframe
  1084. local msh = CFuncs.Mesh.Create(
Add Comment
Please, Sign In to add comment