Advertisement
LOl2x234

Untitled

Feb 10th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.95 KB | None | 0 0
  1. --[[Psychov3 A remake/script By makhail07
  2.  
  3.  
  4. No this is not a fucking edit just becuase the walks look the same.
  5. Now please go be a skid somewhere else.
  6.  
  7. Description:A murderer?
  8.  
  9. ]]--
  10.  
  11. local IDs = {340106355,927529620,876981900}
  12.  
  13. function swait(num)
  14. if num==0 or num==nil then
  15. game:service'RunService'.Stepped:wait(0)
  16. else
  17. for i=0,num do
  18. game:service'RunService'.Stepped:wait(0)
  19. end
  20. end
  21. end
  22. function thread(f)
  23. coroutine.resume(coroutine.create(f))
  24. end
  25. function clerp(a, b, t)
  26. local qa = {
  27. QuaternionFromCFrame(a)
  28. }
  29. local qb = {
  30. QuaternionFromCFrame(b)
  31. }
  32. local ax, ay, az = a.x, a.y, a.z
  33. local bx, by, bz = b.x, b.y, b.z
  34. local _t = 1 - t
  35. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  36. end
  37. function QuaternionFromCFrame(cf)
  38. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  39. local trace = m00 + m11 + m22
  40. if trace > 0 then
  41. local s = math.sqrt(1 + trace)
  42. local recip = 0.5 / s
  43. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  44. else
  45. local i = 0
  46. if m00 < m11 then
  47. i = 1
  48. end
  49. if m22 > (i == 0 and m00 or m11) then
  50. i = 2
  51. end
  52. if i == 0 then
  53. local s = math.sqrt(m00 - m11 - m22 + 1)
  54. local recip = 0.5 / s
  55. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  56. elseif i == 1 then
  57. local s = math.sqrt(m11 - m22 - m00 + 1)
  58. local recip = 0.5 / s
  59. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  60. elseif i == 2 then
  61. local s = math.sqrt(m22 - m00 - m11 + 1)
  62. local recip = 0.5 / s
  63. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  64. end
  65. end
  66. end
  67. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  68. local xs, ys, zs = x + x, y + y, z + z
  69. local wx, wy, wz = w * xs, w * ys, w * zs
  70. local xx = x * xs
  71. local xy = x * ys
  72. local xz = x * zs
  73. local yy = y * ys
  74. local yz = y * zs
  75. local zz = z * zs
  76. 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))
  77. end
  78. function QuaternionSlerp(a, b, t)
  79. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  80. local startInterp, finishInterp
  81. if cosTheta >= 1.0E-4 then
  82. if 1 - cosTheta > 1.0E-4 then
  83. local theta = math.acos(cosTheta)
  84. local invSinTheta = 1 / math.sin(theta)
  85. startInterp = math.sin((1 - t) * theta) * invSinTheta
  86. finishInterp = math.sin(t * theta) * invSinTheta
  87. else
  88. startInterp = 1 - t
  89. finishInterp = t
  90. end
  91. elseif 1 + cosTheta > 1.0E-4 then
  92. local theta = math.acos(-cosTheta)
  93. local invSinTheta = 1 / math.sin(theta)
  94. startInterp = math.sin((t - 1) * theta) * invSinTheta
  95. finishInterp = math.sin(t * theta) * invSinTheta
  96. else
  97. startInterp = t - 1
  98. finishInterp = t
  99. end
  100. 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
  101. end
  102. function rayCast(Position, Direction, Range, Ignore)
  103. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  104. end
  105. --Wait what okay
  106. wait()
  107. local plr = game:service'Players'.LocalPlayer
  108. local char = plr.Character
  109. local hum = char.Humanoid
  110. local ra = char["Right Arm"]
  111. local la= char["Left Arm"]
  112. local rl= char["Right Leg"]
  113. local ll = char["Left Leg"]
  114. local hed = char.Head
  115. local root = char.HumanoidRootPart
  116. local rootj = root.RootJoint
  117. local tors = char.Torso
  118. local mouse = plr:GetMouse()
  119. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  120. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  121. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  122. local maincolor = BrickColor.new("Magenta")
  123. cf = CFrame.new
  124. angles = CFrame.Angles
  125. attack = false
  126. euler=CFrame.fromEulerAnglesXYZ
  127. equipped = false
  128. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  129. RSH, LSH = nil, nil
  130. RW = Instance.new("Weld")
  131. LW = Instance.new("Weld")
  132. RH = tors["Right Hip"]
  133. LH = tors["Left Hip"]
  134. RSH = tors["Right Shoulder"]
  135. LSH = tors["Left Shoulder"]
  136. RSH.Parent = nil
  137. LSH.Parent = nil
  138. RW.Name = "RW"
  139. RW.Part0 = tors
  140. RW.C0 = CFrame.new(1.5, 0.5, 0)
  141. RW.C1 = CFrame.new(0, 0.5, 0)
  142. RW.Part1 = ra
  143. RW.Parent = tors
  144. LW.Name = "LW"
  145. LW.Part0 = tors
  146. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  147. LW.C1 = CFrame.new(0, 0.5, 0)
  148. LW.Part1 = la
  149. LW.Parent = tors
  150. print('User is '..plr.Name)
  151. Effects = {}
  152.  
  153. ArtificialHB = Instance.new("BindableEvent", script)
  154. ArtificialHB.Name = "Heartbeat"
  155.  
  156. script:WaitForChild("Heartbeat")
  157.  
  158. frame = 1 / 60
  159. tf = 0
  160. allowframeloss = false
  161. tossremainder = false
  162. lastframe = tick()
  163. script.Heartbeat:Fire()
  164.  
  165. game:GetService("RunService").Heartbeat:connect(function(s, p)
  166. tf = tf + s
  167. if tf >= frame then
  168. if allowframeloss then
  169. script.Heartbeat:Fire()
  170. lastframe = tick()
  171. else
  172. for i = 1, math.floor(tf / frame) do
  173. script.Heartbeat:Fire()
  174. end
  175. lastframe = tick()
  176. end
  177. if tossremainder then
  178. tf = 0
  179. else
  180. tf = tf - frame * math.floor(tf / frame)
  181. end
  182. end
  183. end)
  184. local RbxUtility = LoadLibrary("RbxUtility")
  185. local Create = RbxUtility.Create
  186.  
  187.  
  188. CFuncs = {
  189. Part = {
  190. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  191. local Part = Create("Part")({
  192. Parent = Parent,
  193. Reflectance = Reflectance,
  194. Transparency = Transparency,
  195. CanCollide = false,
  196. Locked = true,
  197. BrickColor = BrickColor.new(tostring(BColor)),
  198. Name = Name,
  199. Size = Size,
  200. Material = Material
  201. })
  202. RemoveOutlines(Part)
  203. return Part
  204. end
  205. },
  206. Mesh = {
  207. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  208. local Msh = Create(Mesh)({
  209. Parent = Part,
  210. Offset = OffSet,
  211. Scale = Scale
  212. })
  213. if Mesh == "SpecialMesh" then
  214. Msh.MeshType = MeshType
  215. Msh.MeshId = MeshId
  216. end
  217. return Msh
  218. end
  219. },
  220. Mesh = {
  221. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  222. local Msh = Create(Mesh)({
  223. Parent = Part,
  224. Offset = OffSet,
  225. Scale = Scale
  226. })
  227. if Mesh == "SpecialMesh" then
  228. Msh.MeshType = MeshType
  229. Msh.MeshId = MeshId
  230. end
  231. return Msh
  232. end
  233. },
  234. Weld = {
  235. Create = function(Parent, Part0, Part1, C0, C1)
  236. local Weld = Create("Weld")({
  237. Parent = Parent,
  238. Part0 = Part0,
  239. Part1 = Part1,
  240. C0 = C0,
  241. C1 = C1
  242. })
  243. return Weld
  244. end
  245. },
  246. Sound = {
  247. Create = function(id, par, vol, pit)
  248. coroutine.resume(coroutine.create(function()
  249. local S = Create("Sound")({
  250. Volume = vol,
  251. Pitch = pit or 1,
  252. SoundId = id,
  253. Parent = par or workspace
  254. })
  255. wait()
  256. S:play()
  257. game:GetService("Debris"):AddItem(S, 6)
  258. end))
  259. end
  260. },
  261. ParticleEmitter = {
  262. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  263. local fp = Create("ParticleEmitter")({
  264. Parent = Parent,
  265. Color = ColorSequence.new(Color1, Color2),
  266. LightEmission = LightEmission,
  267. Size = Size,
  268. Texture = Texture,
  269. Transparency = Transparency,
  270. ZOffset = ZOffset,
  271. Acceleration = Accel,
  272. Drag = Drag,
  273. LockedToPart = LockedToPart,
  274. VelocityInheritance = VelocityInheritance,
  275. EmissionDirection = EmissionDirection,
  276. Enabled = Enabled,
  277. Lifetime = LifeTime,
  278. Rate = Rate,
  279. Rotation = Rotation,
  280. RotSpeed = RotSpeed,
  281. Speed = Speed,
  282. VelocitySpread = VelocitySpread
  283. })
  284. return fp
  285. end
  286. }
  287. }
  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. EffectModel = Instance.new("Model", char)
  330. Effects = {
  331. Block = {
  332. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  333. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  334. prt.Anchored = true
  335. prt.CFrame = cframe
  336. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  337. game:GetService("Debris"):AddItem(prt, 10)
  338. if Type == 1 or Type == nil then
  339. table.insert(Effects, {
  340. prt,
  341. "Block1",
  342. delay,
  343. x3,
  344. y3,
  345. z3,
  346. msh
  347. })
  348. elseif Type == 2 then
  349. table.insert(Effects, {
  350. prt,
  351. "Block2",
  352. delay,
  353. x3,
  354. y3,
  355. z3,
  356. msh
  357. })
  358. else
  359. table.insert(Effects, {
  360. prt,
  361. "Block3",
  362. delay,
  363. x3,
  364. y3,
  365. z3,
  366. msh
  367. })
  368. end
  369. end
  370. },
  371. Sphere = {
  372. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  373. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  374. prt.Anchored = true
  375. prt.CFrame = cframe
  376. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  377. game:GetService("Debris"):AddItem(prt, 10)
  378. table.insert(Effects, {
  379. prt,
  380. "Cylinder",
  381. delay,
  382. x3,
  383. y3,
  384. z3,
  385. msh
  386. })
  387. end
  388. },
  389. Cylinder = {
  390. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  391. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  392. prt.Anchored = true
  393. prt.CFrame = cframe
  394. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  395. game:GetService("Debris"):AddItem(prt, 10)
  396. table.insert(Effects, {
  397. prt,
  398. "Cylinder",
  399. delay,
  400. x3,
  401. y3,
  402. z3,
  403. msh
  404. })
  405. end
  406. },
  407. Wave = {
  408. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  409. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  410. prt.Anchored = true
  411. prt.CFrame = cframe
  412. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  413. game:GetService("Debris"):AddItem(prt, 10)
  414. table.insert(Effects, {
  415. prt,
  416. "Cylinder",
  417. delay,
  418. x3 / 60,
  419. y3 / 60,
  420. z3 / 60,
  421. msh
  422. })
  423. end
  424. },
  425. Ring = {
  426. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  427. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  428. prt.Anchored = true
  429. prt.CFrame = cframe
  430. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  431. game:GetService("Debris"):AddItem(prt, 10)
  432. table.insert(Effects, {
  433. prt,
  434. "Cylinder",
  435. delay,
  436. x3,
  437. y3,
  438. z3,
  439. msh
  440. })
  441. end
  442. },
  443. Break = {
  444. Create = function(brickcolor, cframe, x1, y1, z1)
  445. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  446. prt.Anchored = true
  447. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  448. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  449. local num = math.random(10, 50) / 1000
  450. game:GetService("Debris"):AddItem(prt, 10)
  451. table.insert(Effects, {
  452. prt,
  453. "Shatter",
  454. num,
  455. prt.CFrame,
  456. math.random() - math.random(),
  457. 0,
  458. math.random(50, 100) / 100
  459. })
  460. end
  461. }
  462. }
  463. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  464. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  465. prt.Anchored = true
  466. prt.CFrame = cframe
  467. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  468. game:GetService("Debris"):AddItem(prt, 10)
  469. if Type == 1 or Type == nil then
  470. table.insert(Effects, {
  471. prt,
  472. "Block1",
  473. delay,
  474. x3,
  475. y3,
  476. z3,
  477. msh
  478. })
  479. elseif Type == 2 then
  480. table.insert(Effects, {
  481. prt,
  482. "Block2",
  483. delay,
  484. x3,
  485. y3,
  486. z3,
  487. msh
  488. })
  489. elseif Type == 3 then
  490. table.insert(Effects, {
  491. prt,
  492. "Block3",
  493. delay,
  494. x3,
  495. y3,
  496. z3,
  497. msh
  498. })
  499. end
  500. end
  501. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  502. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  503. prt.Anchored = true
  504. prt.CFrame = cframe
  505. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  506. game:GetService("Debris"):AddItem(prt, 10)
  507. table.insert(Effects, {
  508. prt,
  509. "Cylinder",
  510. delay,
  511. x3,
  512. y3,
  513. z3,
  514. msh
  515. })
  516. end
  517. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  518. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  519. prt.Anchored = true
  520. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  521. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  522. game:GetService("Debris"):AddItem(prt, 10)
  523. table.insert(Effects, {
  524. prt,
  525. "Cylinder",
  526. delay,
  527. x3,
  528. y3,
  529. z3,
  530. msh
  531. })
  532. end
  533. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  534. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  535. prt.Anchored = true
  536. prt.CFrame = cframe
  537. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  538. game:GetService("Debris"):AddItem(prt, 10)
  539. table.insert(Effects, {
  540. prt,
  541. "Cylinder",
  542. delay,
  543. x3,
  544. y3,
  545. z3,
  546. msh
  547. })
  548. end
  549. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  550. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  551. prt.Anchored = true
  552. prt.CFrame = cframe
  553. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  554. game:GetService("Debris"):AddItem(prt, 10)
  555. table.insert(Effects, {
  556. prt,
  557. "Cylinder",
  558. delay,
  559. x3,
  560. y3,
  561. z3,
  562. msh
  563. })
  564. end
  565. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  566. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  567. prt.Anchored = true
  568. prt.CFrame = cframe
  569. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  570. game:GetService("Debris"):AddItem(prt, 10)
  571. table.insert(Effects, {
  572. prt,
  573. "Cylinder",
  574. delay,
  575. x3,
  576. y3,
  577. z3,
  578. msh
  579. })
  580. end
  581. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  582. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  583. prt.Anchored = true
  584. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  585. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  586. local num = math.random(10, 50) / 1000
  587. game:GetService("Debris"):AddItem(prt, 10)
  588. table.insert(Effects, {
  589. prt,
  590. "Shatter",
  591. num,
  592. prt.CFrame,
  593. math.random() - math.random(),
  594. 0,
  595. math.random(50, 100) / 100
  596. })
  597. end
  598. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  599. local fp=Instance.new("Part")
  600. fp.formFactor=formfactor
  601. fp.Parent=parent
  602. fp.Reflectance=reflectance
  603. fp.Transparency=transparency
  604. fp.CanCollide=false
  605. fp.Locked=true
  606. fp.BrickColor=brickcolor
  607. fp.Name=name
  608. fp.Size=size
  609. fp.Position=tors.Position
  610. RemoveOutlines(fp)
  611. fp.Material="SmoothPlastic"
  612. fp:BreakJoints()
  613. return fp
  614. end
  615.  
  616. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  617. local mesh=Instance.new(Mesh)
  618. mesh.Parent=part
  619. if Mesh=="SpecialMesh" then
  620. mesh.MeshType=meshtype
  621. if meshid~="nil" then
  622. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  623. end
  624. end
  625. mesh.Offset=offset
  626. mesh.Scale=scale
  627. return mesh
  628. end
  629. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  630. local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  631. prt.Anchored=true
  632. prt.Material = "Neon"
  633. prt.CFrame=cframe
  634. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  635. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  636. game:GetService("Debris"):AddItem(prt,5)
  637. coroutine.resume(coroutine.create(function(Part,Mesh)
  638. for i=0,1,delay do
  639. swait()
  640. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  641. Part.Transparency=i
  642. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  643. end
  644. Part.Parent=nil
  645. end),prt,msh)
  646. end
  647. function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  648. local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
  649. prt.Anchored=true
  650. prt.Material = "Neon"
  651. prt.CFrame=cframe
  652. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  653. game:GetService("Debris"):AddItem(prt,5)
  654. coroutine.resume(coroutine.create(function(Part,Mesh)
  655. local rtype = rottype
  656. for i=0,1,delay do
  657. swait()
  658. if rtype == 1 then
  659. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  660. elseif rtype == 2 then
  661. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  662. end
  663. prt.Transparency=i
  664. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  665. end
  666. Part.Parent=nil
  667. end),prt,msh)
  668. end
  669. Thetown = Instance.new("Sound",tors)
  670. Thetown.SoundId = "rbxassetid://900450645"
  671. Thetown.Volume = 1.5
  672. Thetown.Looped = true
  673. Thetown:Play()
  674.  
  675.  
  676.  
  677.  
  678. --[[
  679. Thanks for using Build-To-Lua by jarredbcv.
  680. ]]--
  681.  
  682. New = function(Object, Parent, Name, Data)
  683. local Object = Instance.new(Object)
  684. for Index, Value in pairs(Data or {}) do
  685. Object[Index] = Value
  686. end
  687. Object.Parent = Parent
  688. Object.Name = Name
  689. return Object
  690. end
  691.  
  692. Knife = New("Model",char,"Knife",{})
  693. Handle = New("Part",Knife,"Handle",{BrickColor = BrickColor.new("Bright green"),Transparency = 1,Transparency = 1,Size = Vector3.new(1.65882361, 1.99058843, 1.65882361),CFrame = CFrame.new(82.2077255, 1.57540321, 117.400002, 0, 0, -1, 1, 0, 0, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.294118, 0.592157, 0.294118),})
  694. Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.200000003, 1.20000005),})
  695. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.46481109, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  696. Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),MeshType = Enum.MeshType.Wedge,})
  697. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110592127, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  698. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.2456055, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  699. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.466666669, 0.0666666701),})
  700. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 0.962120056, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  701. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.5110245, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  702. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  703. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.69670105, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  704. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.9533539, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  705. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  706. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.254371643, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  707. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745453, 1.6859839, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  708. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),})
  709. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110580683, 0, 0.0331802368, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  710. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9108047, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  711. Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.24000001, 0.0800000057, 0.24000001),})
  712. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, -1.70307922, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  713. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745529, 1.46481287, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  714. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),})
  715. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110590339, 0, 0.0331726074, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  716. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.3957291, 1.57539487, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  717. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  718. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-8.34465027e-06, 0, -0.18800354, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  719. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.0465393, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  720. Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.13333334, 0.0666666701),MeshType = Enum.MeshType.Wedge,})
  721. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 1.16118622, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  722. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9550476, 1.57542157, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  723. Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.220000014, 0.0733333379, 0.220000014),})
  724. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.83582306e-05, 0, -1.74732208, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  725. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9707947, 1.57539833, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  726. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 0.0666666701, 0.333333343),})
  727. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-4.88758087e-06, 0, -0.763069153, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  728. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9311295, 1.94298697, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  729. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),})
  730. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(0.367583752, 0, -0.723403931, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  731. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.1571426, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  732. Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.200000018, 0.0666666701),MeshType = Enum.MeshType.Wedge,})
  733. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, 1.05058289, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  734. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.8380737, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  735. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  736. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, -0.630348206, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  737. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.57540166, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  738. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),})
  739. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-1.54972076e-06, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  740. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.424202, 1.57539666, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  741. Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 1.4000001, 0.200000003),})
  742. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-6.55651093e-06, 0, -1.21647644, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  743. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.0150146, 1.21046209, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  744. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),})
  745. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(-0.36494112, 0, -0.807289124, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  746.  
  747.  
  748.  
  749. for _,v in next, Knife:GetChildren() do
  750. if v:IsA'BasePart' then
  751. v.CanCollide = false
  752. end
  753. end
  754. local NewInstance = function(instance,parent,properties)
  755. local inst = Instance.new(instance,parent)
  756. if(properties)then
  757. for i,v in next, properties do
  758. pcall(function() inst[i] = v end)
  759. end
  760. end
  761. return inst;
  762. end
  763. local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(0,-1,1.3)*CFrame.Angles(math.rad(0),0,math.rad(90))})
  764. local Hitbox = New("Part",Knife,"Hitbox",{Size=Vector3.new(1,1,2),CanCollide=false,Transparency=1})
  765. local HitboxWeld = New("Weld",Knife,"Weldie",{Part0=Hitbox,Part1=Handle,C0=CFrame.new(0,0,0)})
  766.  
  767. --Thanks to sugarie/CK or as some call em shuggy x3
  768. local p1mit = Instance.new("ParticleEmitter",Hitbox)
  769. p1mit.Texture = "http://www.roblox.com/asset/?id=243132757"
  770. p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))})
  771. p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.1),NumberSequenceKeypoint.new(1,.1)})
  772. p1mit.Lifetime = NumberRange.new(1)
  773. p1mit.Rate = 20
  774. p1mit.Acceleration = Vector3.new(0,-10,0)
  775. p1mit.Speed = NumberRange.new(0)
  776.  
  777.  
  778. local p2mit = Instance.new("ParticleEmitter",Hitbox)
  779. p2mit.Texture = "http://www.roblox.com/asset/?id=243132757"
  780. p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))})
  781. p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.1),NumberSequenceKeypoint.new(1,.1)})
  782. p2mit.Lifetime = NumberRange.new(1)
  783. p2mit.Rate = 10
  784. p2mit.Acceleration = Vector3.new(0,-10,0)
  785. p2mit.Speed = NumberRange.new(0)
  786.  
  787.  
  788. kachow=Instance.new("Sound",tors)
  789. kachow.Volume = 1
  790. kachow.Looped = false
  791. kachow.Pitch = .5
  792. kachow.SoundId = "rbxassetid://12222208"
  793.  
  794. Stab=Instance.new("Sound",tors)
  795. Stab.Volume = 1
  796. Stab.Looped = false
  797. Stab.Pitch = .5
  798. Stab.SoundId = "rbxassetid://429400881"
  799.  
  800. WashDING=Instance.new("Sound",tors)
  801. WashDING.Volume = 1
  802. WashDING.Looped = false
  803. WashDING.Pitch = .5
  804. WashDING.SoundId = "rbxassetid://62339698"
  805.  
  806. local crosshair = Instance.new("BillboardGui",char)
  807. crosshair.Size = UDim2.new(10,0,10,0)
  808. crosshair.Enabled = false
  809.  
  810. local imgl = Instance.new("ImageLabel",crosshair)
  811. imgl.Position = UDim2.new(0,0,0,0)
  812. imgl.Size = UDim2.new(1,0,1,0)
  813. imgl.Image = "rbxassetid://233522684"
  814. imgl.BackgroundTransparency = 1
  815. imgl.ImageColor3 = Color3.new(.6,0,0)
  816. local img2 = Instance.new("ImageLabel",crosshair)
  817. img2.Position = UDim2.new(0,0,0,0)
  818. img2.Size = UDim2.new(1,0,1,0)
  819. img2.Image = "rbxassetid://233522684"
  820. img2.BackgroundTransparency = 1
  821. img2.ImageColor3 = Color3.new(.6,0,0)
  822.  
  823. -- Explosive Hitbox
  824. function ExHitbox(rad,pos,damage,env,toim)
  825. local E = Instance.new("Explosion")
  826. E.Position = pos
  827. E.Parent = workspace
  828. E.BlastRadius = rad
  829. E.BlastPressure = 0
  830. E.Visible = false
  831. E.Hit:connect(function(hit)
  832. if hit and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") and notWhitelisted(hit.Parent) and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 and hit.Parent ~= char and not hit.Parent:FindFirstChild("HitPsy3") then
  833. for _,ch in next, hit.Parent:children() do
  834. if ch:IsA'BasePart' then
  835. local efff = p1mit:Clone()
  836. efff.Enabled = true
  837. efff.Parent = ch
  838. delay(1,function()
  839. efff.Enabled = false
  840. end)
  841. end
  842. end
  843. hit.Parent:BreakJoints()
  844. if(target == hit.Parent)then
  845. target = nil
  846. end
  847. delay(2,function()
  848. WashDING:Play()
  849. --pcall(game.Destroy,duder:FindFirstChildOfClass"Humanoid")
  850. for _,v in next, hit.Parent:children() do
  851. if v:IsA"BasePart" then
  852. v.BrickColor = BrickColor.new"Lime green"
  853. v.Transparency = 1
  854. local bodpos = Instance.new("BodyPosition",v)
  855. bodpos.Position = v.Position + Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  856. local emi = p1mit:Clone()
  857. emi.LightEmission = 1
  858. emi.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,0))})
  859. emi.Parent = v
  860. emi.Enabled = true
  861. for i = 1, 5 do
  862. local trace = Instance.new("Part",v)
  863. trace.Size = Vector3.new(1,1,1)
  864. trace.Transparency = 1
  865. trace.Anchored = true
  866. trace.CFrame = (root.CFrame + root.CFrame.lookVector * (5*i))
  867. game:service'Debris':AddItem(trace,.25)
  868. end
  869. local trace = Instance.new("Part",v)
  870. trace.BrickColor = BrickColor.new("Really red")
  871. trace.CanCollide = false
  872. trace.Size = Vector3.new(1,1,1)
  873. trace.BottomSurface = 0
  874. trace.TopSurface = 0
  875. trace.Anchored = true
  876. trace.CFrame = v.CFrame + v.CFrame.lookVector * 12.5
  877. trace.Material = "Neon"
  878. local tracem = Instance.new("SpecialMesh",trace)
  879. tracem.MeshType = "Sphere"
  880. tracem.Scale = Vector3.new(1,1,50)
  881. coroutine.wrap(function()
  882. for i = 0, 1, .1 do
  883. trace.Transparency = i
  884. wait()
  885. end
  886. trace:destroy();
  887. end)()
  888. game:service'Debris':AddItem(v,1)
  889. end
  890. end
  891. end)
  892. end
  893. end)
  894. end
  895. -- Damage
  896. function fuckingmurderem(vro,suicide)
  897. if(vro == char or vro and notWhitelisted(vro))then
  898. local humR = vro:FindFirstChild"HumanoidRootPart"
  899. local huma = vro:FindFirstChildOfClass"Humanoid"
  900. local hed = vro:FindFirstChild"Head"
  901. NewInstance("BoolValue",vro,{Name = 'HitPsy3',Value = true})
  902. if(humR) then
  903. humR:destroy()
  904. end
  905. if(huma)then
  906. huma:ChangeState(Enum.HumanoidStateType.Physics)
  907. huma.PlatformStand = true
  908. end
  909. if(humR or huma) then
  910. if(plr.UserId == 19909695 or plr.UserId ~= 5719877)then
  911. delay(2,function()
  912. if(vro == target)then
  913. target = nil
  914. end
  915.  
  916. vro:BreakJoints()
  917. WashDING:Play()
  918. --pcall(game.Destroy,vro:FindFirstChildOfClass"Humanoid")
  919. for _,v in next, vro:children() do
  920. if v:IsA"BasePart" then
  921. v.BrickColor = BrickColor.new"Lime green"
  922. v.Transparency = 1
  923. local bodpos = Instance.new("BodyPosition",v)
  924. bodpos.Position = v.Position + Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  925. local emi = p1mit:Clone()
  926. emi.LightEmission = 1
  927. emi.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(1,Color3.new(1,0,0))})
  928. emi.Parent = v
  929. emi.Enabled = true
  930. for i = 1, 5 do
  931. local trace = Instance.new("Part",v)
  932. trace.Size = Vector3.new(1,1,1)
  933. trace.Transparency = 1
  934. trace.Anchored = true
  935. trace.CFrame = (root.CFrame + root.CFrame.lookVector * (5*i))
  936. game:service'Debris':AddItem(trace,.25)
  937. end
  938. local trace = Instance.new("Part",v)
  939. trace.BrickColor = BrickColor.new("Really red")
  940. trace.CanCollide = false
  941. trace.Size = Vector3.new(1,1,1)
  942. trace.BottomSurface = 0
  943. trace.TopSurface = 0
  944. trace.Anchored = true
  945. trace.CFrame = v.CFrame + v.CFrame.lookVector * 12.5
  946. trace.Material = "Neon"
  947. local tracem = Instance.new("SpecialMesh",trace)
  948. tracem.MeshType = "Sphere"
  949. tracem.Scale = Vector3.new(1,1,50)
  950. coroutine.wrap(function()
  951. for i = 0, 1, .1 do
  952. trace.Transparency = i
  953. wait()
  954. end
  955. trace:destroy();
  956. end)()
  957. game:service'Debris':AddItem(v,1)
  958. end
  959. end
  960. end)
  961. else
  962. vro:BreakJoints()
  963. end
  964. end
  965. end
  966. end
  967. local doingDamage = false;
  968. function notWhitelisted(char)
  969. local player = game:service'Players':GetPlayerFromCharacter(char)
  970. if(not player or player.UserId ~= 19909695 or plr.UserId ~= 5719877)then
  971. return true;
  972. else
  973. return false
  974. end
  975. end
  976. Hitbox.Touched:connect(function(t)
  977. if(doingDamage and t and t.Parent)then
  978. local hum = t.Parent:FindFirstChildOfClass'Humanoid'
  979. local hed = t.Parent:FindFirstChild'Head'
  980. if(t.Parent ~= char and notWhitelisted(t.Parent))then
  981. if(hum and hum.Health > 0 and not t.Parent:FindFirstChild'HitPsy3')then
  982. p1mit.Enabled = true
  983. Stab:Play()
  984. fuckingmurderem(t.Parent)
  985. wait(.5)
  986. p1mit.Enabled = false
  987. end
  988. end
  989. end
  990. end)
  991.  
  992. -- Keystroke system
  993. local lastKeypress = time();
  994. local Keystroke = ""
  995. local KeystrokeKeys = {
  996. [Enum.KeyCode.W] = true,
  997. [Enum.KeyCode.A] = true,
  998. [Enum.KeyCode.S] = true,
  999. [Enum.KeyCode.D] = true,
  1000. [Enum.KeyCode.C] = true,
  1001. [Enum.KeyCode.F] = true,
  1002. [Enum.KeyCode.X] = true,
  1003. }
  1004.  
  1005.  
  1006.  
  1007. local Keystrokes = {
  1008. ['DSC'] = {"Murder",function()
  1009. attack=true
  1010. hum.WalkSpeed = 0
  1011. kachow:Play()
  1012. local BodVel = Instance.new("BodyVelocity",tors)
  1013. BodVel.P = 10000
  1014. BodVel.MaxForce = Vector3.new(BodVel.P,BodVel.P,BodVel.P)
  1015. BodVel.Velocity = Vector3.new(0,100,0) + root.CFrame.lookVector*5
  1016. doingDamage = true
  1017. for i = 0,2,0.1 do
  1018. swait()
  1019. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1020. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  1021. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(90)), 0.3)
  1022. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1023. HW.C0=clerp(HW.C0,cf(0,-.9,1.3)*angles(math.rad(5),math.rad(0),math.rad(90)),0.15)
  1024. end
  1025. wait(.4)
  1026. attack=false
  1027. doingDamage = false
  1028. hum.WalkSpeed = 2.5
  1029. BodVel:Destroy()
  1030. end},
  1031.  
  1032.  
  1033. ['AWC'] = {"Kill", function()
  1034. attack=true
  1035. hum.WalkSpeed = 0
  1036. kachow:Play()
  1037. doingDamage = true
  1038. for i = 0,2,0.1 do
  1039. swait()
  1040. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1041. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  1042. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1044. HW.C0=clerp(HW.C0,cf(0,-2,0)*angles(math.rad(90),math.rad(0),math.rad(0)),0.15)
  1045. end
  1046. wait(1)
  1047. attack=false
  1048. doingDamage = false
  1049. hum.WalkSpeed = 2.5
  1050. end}
  1051. }
  1052. local UIP = game:service'UserInputService'
  1053. local TweS = game:GetService("TweenService")
  1054. local RunS = game:GetService("RunService")
  1055. UIP.InputBegan:connect(function(io,gp)
  1056. if(not gp and not attack)then
  1057. if(KeystrokeKeys[io.KeyCode])then
  1058. lastKeypress = time()
  1059. if(#Keystroke > 6) then
  1060. Keystroke = ""
  1061. end
  1062. Keystroke = Keystroke..tostring(io.KeyCode):sub(14)
  1063. print(Keystroke)
  1064. for i,v in next, Keystrokes do
  1065. if(Keystroke == i)then
  1066. v[2]()
  1067. Keystroke = "";
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end)
  1073.  
  1074. UIP.InputBegan:connect(function(io,gp)
  1075. if(not gp and not attack and io.KeyCode == Enum.KeyCode.Q)then
  1076. if(mouse.Target and mouse.Target.Parent:FindFirstChildOfClass'Humanoid' and not mouse.Target.Parent:FindFirstChild'HitMarkerPsycho2')then
  1077. target = mouse.Target.Parent
  1078. local info = TweenInfo.new(.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false)
  1079. img2.ImageTransparency = 0
  1080. img2.Size = UDim2.new(1,0,1,0)
  1081. img2.Position = UDim2.new(0,0,0,0)
  1082. local tween = TweS:Create(img2, info, {ImageTransparency = 1,Size=UDim2.new(2.5,0,2.5,0),Position=UDim2.new(-.75,0,-.75,0)})
  1083.  
  1084. tween:Play();
  1085. end
  1086. end
  1087. end)
  1088. RunS.RenderStepped:connect(function()
  1089. if(time() - lastKeypress) > 0.5 then
  1090. Keystroke = ""
  1091. end
  1092. end)
  1093.  
  1094.  
  1095.  
  1096.  
  1097. hum.WalkSpeed = 2.5
  1098. idle=0
  1099. local sine = 0
  1100. local change = 1
  1101. local val = 0
  1102. toim = 0
  1103. hum.Animator.Parent = nil
  1104. idleanim=.4
  1105. while true do
  1106. swait()
  1107. sine = sine + change
  1108. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1109. local velderp=root.Velocity.y
  1110. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1111. if equipped==true or equipped==false then
  1112. if attack==false then
  1113. idle=idle+1
  1114. else
  1115. idle=0
  1116. end
  1117. if root.Velocity.y > 1 and hitfloor==nil then
  1118. Anim="Jump"
  1119. if attack==false then
  1120. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1121. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1122. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  1123. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1124. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1125. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1126. end
  1127. elseif root.Velocity.y < -1 and hitfloor==nil then
  1128. Anim="Fall"
  1129. if attack==false then
  1130. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1131. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1132. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1133. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1134. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  1135. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
  1136. end
  1137. elseif torvel<1 and hitfloor~=nil then
  1138. Anim="Idle"
  1139. change = 1
  1140. if attack==false then
  1141. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1142. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/20))),.3)
  1143. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1144. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1145. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5+0.05*math.sin(sine/30),0)*angles(math.rad(-3),math.rad(0),math.rad(10)),0.15)
  1146. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(115 + 4), math.rad(45), math.rad(50)), 0.1)
  1147. HW.C0=clerp(HW.C0,cf(0,-1,1.3)*angles(math.rad(0),math.rad(0),math.rad(90)),0.15)
  1148. end
  1149. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1150. Anim="Walk"
  1151. change = 0.5
  1152. if attack==false then
  1153. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1154. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1155. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/7))+ math.sin(sine/7)/8.5,math.rad(0),math.rad(10)),0.15)
  1156. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/7))+ -math.sin(sine/7)/8.5,math.rad(0),math.rad(-10)),0.15)
  1157. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/8)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/8.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1158. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/8)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/8.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1159. HW.C0=clerp(HW.C0,cf(0,-1,1.3)*angles(math.rad(0),math.rad(0),math.rad(90)),.15)
  1160. end
  1161. elseif torvel>=22 and hitfloor~=nil then
  1162. Anim="Run"
  1163. end
  1164. end
  1165. if 0 < #Effects then
  1166. for e = 1, #Effects do
  1167. if Effects[e] ~= nil then
  1168. local Thing = Effects[e]
  1169. if Thing ~= nil then
  1170. local Part = Thing[1]
  1171. local Mode = Thing[2]
  1172. local Delay = Thing[3]
  1173. local IncX = Thing[4]
  1174. local IncY = Thing[5]
  1175. local IncZ = Thing[6]
  1176. if 1 >= Thing[1].Transparency then
  1177. if Thing[2] == "Block1" then
  1178. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1179. local Mesh = Thing[1].Mesh
  1180. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1181. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1182. elseif Thing[2] == "Block2" then
  1183. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1184. local Mesh = Thing[7]
  1185. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1186. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1187. elseif Thing[2] == "Block3" then
  1188. 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)
  1189. local Mesh = Thing[7]
  1190. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1191. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1192. elseif Thing[2] == "Cylinder" then
  1193. local Mesh = Thing[1].Mesh
  1194. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1195. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1196. elseif Thing[2] == "Blood" then
  1197. local Mesh = Thing[7]
  1198. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1199. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1200. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1201. elseif Thing[2] == "Elec" then
  1202. local Mesh = Thing[1].Mesh
  1203. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1204. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1205. elseif Thing[2] == "Disappear" then
  1206. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1207. elseif Thing[2] == "Shatter" then
  1208. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1209. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1210. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1211. Thing[6] = Thing[6] + Thing[5]
  1212. end
  1213. else
  1214. Part.Parent = nil
  1215. table.remove(Effects, e)
  1216. end
  1217. end
  1218. end
  1219. end
  1220. end
  1221. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement