Advertisement
Guest User

Untitled

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