Advertisement
Telamun

=) Script

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