r16

Untitled

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