Advertisement
richblackpowner

Untitled

Apr 26th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.02 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 8671
  3.  
  4. local Scripts = { function()
  5. function Poison(lastTime)
  6.  
  7. local character = script.Parent
  8. local humanoid = character:FindFirstChild("Humanoid")
  9.  
  10.  
  11.  
  12.  
  13. local childs = character:GetChildren()
  14.  
  15. local colors = {}
  16.  
  17. for i=1,#childs do
  18. if (childs[i].className == "Part") then
  19. colors[i] = childs[i].BrickColor
  20. childs[i].BrickColor = BrickColor.new(119)
  21. end
  22. end
  23.  
  24. wait(1)
  25.  
  26. for i=1,#childs do
  27. if (childs[i].className == "Part") then
  28. childs[i].BrickColor = colors[i]
  29. end
  30. end
  31.  
  32.  
  33. tagHumanoid(humanoid)
  34. humanoid.Health = humanoid.Health - (humanoid.MaxHealth / 8) -- forcefield won't stop poison damage
  35. wait(1)
  36. --untagHumanoid(humanoid)
  37.  
  38. end
  39.  
  40. function tagHumanoid(humanoid)
  41. local poisoner = script:FindFirstChild("poisoner")
  42.  
  43. if (poisoner ~= nil) then
  44.  
  45. local creator_tag = Instance.new("ObjectValue")
  46. creator_tag.Value = poisoner.Value
  47. creator_tag.Name = "creator"
  48. creator_tag.Parent = humanoid
  49. game.Debris:AddItem(creator_tag, 1)
  50. end
  51. end
  52.  
  53. for i=1,5 do
  54. Poison(i == 5)
  55. wait(.1)
  56. end
  57.  
  58.  
  59. script.Parent = nil
  60. end; function()
  61. -------- OMG HAX
  62.  
  63. r = game:service("RunService")
  64.  
  65.  
  66. local damage = 5
  67.  
  68.  
  69. local slash_damage = 10
  70. local lunge_damage = 20
  71.  
  72. sword = script.Parent.Handle
  73. Tool = script.Parent
  74.  
  75.  
  76. local SlashSound = Instance.new("Sound")
  77. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  78. SlashSound.Parent = sword
  79. SlashSound.Volume = .7
  80.  
  81. local LungeSound = Instance.new("Sound")
  82. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  83. LungeSound.Parent = sword
  84. LungeSound.Volume = .6
  85.  
  86. local UnsheathSound = Instance.new("Sound")
  87. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  88. UnsheathSound.Parent = sword
  89. UnsheathSound.Volume = 1
  90.  
  91. function Poison(humanoid, character, attacker)
  92.  
  93. if (character:FindFirstChild("ForceField") ~= nil) then return end
  94. if (character:FindFirstChild("Poison") == nil ) then
  95. local s = script.Parent.Poison:clone()
  96. tagPoison(s, player)
  97. s.Disabled = false
  98. s.Parent = character
  99.  
  100.  
  101. end
  102.  
  103. end
  104.  
  105.  
  106.  
  107.  
  108. function blow(hit)
  109. local humanoid = hit.Parent:findFirstChild("Humanoid")
  110. local vCharacter = Tool.Parent
  111. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  112. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  113. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  114. -- final check, make sure sword is in-hand
  115.  
  116. local right_arm = vCharacter:FindFirstChild("Right Arm")
  117. if (right_arm ~= nil) then
  118. local joint = right_arm:FindFirstChild("RightGrip")
  119. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  120. Poison(humanoid, humanoid.Parent, attacker)
  121. tagHumanoid(humanoid, vPlayer)
  122. humanoid:TakeDamage(damage)
  123. end
  124. end
  125.  
  126.  
  127. end
  128. end
  129.  
  130.  
  131.  
  132. function tagHumanoid(humanoid, player)
  133. local creator_tag = Instance.new("ObjectValue")
  134. creator_tag.Value = player
  135. creator_tag.Name = "creator"
  136. creator_tag.Parent = humanoid
  137. game.Debris:AddItem(creator_tag, 1)
  138. end
  139.  
  140. function tagPoison(s, player)
  141. local creator_tag = Instance.new("ObjectValue")
  142. creator_tag.Value = player
  143. creator_tag.Name = "poisoner"
  144. creator_tag.Parent = s
  145. end
  146.  
  147.  
  148. function attack()
  149. damage = slash_damage
  150. SlashSound:play()
  151. local anim = Instance.new("StringValue")
  152. anim.Name = "toolanim"
  153. anim.Value = "Slash"
  154. anim.Parent = Tool
  155. end
  156.  
  157. function lunge()
  158. damage = lunge_damage
  159.  
  160. LungeSound:play()
  161.  
  162. local anim = Instance.new("StringValue")
  163. anim.Name = "toolanim"
  164. anim.Value = "Lunge"
  165. anim.Parent = Tool
  166.  
  167.  
  168. local force = Instance.new("BodyVelocity")
  169. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  170. force.Parent = Tool.Parent.Torso
  171. wait(.25)
  172. swordOut()
  173. wait(.25)
  174. force.Parent = nil
  175. wait(.5)
  176. swordUp()
  177.  
  178. damage = slash_damage
  179. end
  180.  
  181. function swordUp()
  182. Tool.GripForward = Vector3.new(-1,0,0)
  183. Tool.GripRight = Vector3.new(0,1,0)
  184. Tool.GripUp = Vector3.new(0,0,1)
  185. end
  186.  
  187. function swordOut()
  188. Tool.GripForward = Vector3.new(0,0,1)
  189. Tool.GripRight = Vector3.new(0,-1,0)
  190. Tool.GripUp = Vector3.new(-1,0,0)
  191. end
  192.  
  193. function swordAcross()
  194. -- parry
  195. end
  196.  
  197.  
  198. Tool.Enabled = true
  199. local last_attack = 0
  200. function onActivated()
  201.  
  202. if not Tool.Enabled then
  203. return
  204. end
  205.  
  206. Tool.Enabled = false
  207.  
  208. local character = Tool.Parent;
  209. local humanoid = character.Humanoid
  210. if humanoid == nil then
  211. print("Humanoid not found")
  212. return
  213. end
  214.  
  215. t = r.Stepped:wait()
  216.  
  217. if (t - last_attack < 2) then
  218. lunge()
  219. else
  220. attack()
  221. end
  222.  
  223. last_attack = t
  224.  
  225. --wait(.5)
  226.  
  227. Tool.Enabled = true
  228. end
  229.  
  230.  
  231. function onEquipped()
  232. UnsheathSound:play()
  233. end
  234.  
  235.  
  236. script.Parent.Activated:connect(onActivated)
  237. script.Parent.Equipped:connect(onEquipped)
  238.  
  239.  
  240. connection = sword.Touched:connect(blow)
  241.  
  242.  
  243.  
  244. end; function()
  245. local Tool = script.Parent;
  246.  
  247. enabled = true
  248. function onButton1Down(mouse)
  249. if not enabled then
  250. return
  251. end
  252.  
  253. enabled = false
  254. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  255.  
  256. wait(.5)
  257. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  258. enabled = true
  259.  
  260. end
  261.  
  262. function onEquippedLocal(mouse)
  263.  
  264. if mouse == nil then
  265. print("Mouse not found")
  266. return
  267. end
  268.  
  269. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  270. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  271. end
  272.  
  273.  
  274. Tool.Equipped:connect(onEquippedLocal)
  275.  
  276. end; function()
  277. -------- OMG HAX
  278.  
  279. r = game:service("RunService")
  280.  
  281.  
  282. local damage = 10
  283.  
  284. local slash_damage = 12
  285. local lunge_damage = 25
  286.  
  287. sword = script.Parent.Handle
  288. Tool = script.Parent
  289.  
  290.  
  291. local SlashSound = Instance.new("Sound")
  292. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  293. SlashSound.Parent = sword
  294. SlashSound.Volume = .7
  295.  
  296. local LungeSound = Instance.new("Sound")
  297. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  298. LungeSound.Parent = sword
  299. LungeSound.Volume = .6
  300.  
  301. local UnsheathSound = Instance.new("Sound")
  302. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  303. UnsheathSound.Parent = sword
  304. UnsheathSound.Volume = 1
  305.  
  306.  
  307. function blow(hit)
  308. local humanoid = hit.Parent:findFirstChild("Humanoid")
  309. local vCharacter = Tool.Parent
  310. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  311. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  312. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  313. -- final check, make sure sword is in-hand
  314.  
  315. local right_arm = vCharacter:FindFirstChild("Right Arm")
  316. if (right_arm ~= nil) then
  317. local joint = right_arm:FindFirstChild("RightGrip")
  318. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  319. tagHumanoid(humanoid, vPlayer)
  320. humanoid:TakeDamage(damage)
  321. end
  322. end
  323.  
  324.  
  325. end
  326. end
  327.  
  328.  
  329. function tagHumanoid(humanoid, player)
  330. local creator_tag = Instance.new("ObjectValue")
  331. creator_tag.Value = player
  332. creator_tag.Name = "creator"
  333. creator_tag.Parent = humanoid
  334. game.Debris:AddItem(creator_tag, 1)
  335. end
  336.  
  337.  
  338. function attack()
  339. damage = slash_damage
  340. SlashSound:play()
  341. local anim = Instance.new("StringValue")
  342. anim.Name = "toolanim"
  343. anim.Value = "Slash"
  344. anim.Parent = Tool
  345. end
  346.  
  347. function lunge()
  348. damage = lunge_damage
  349.  
  350. LungeSound:play()
  351.  
  352. local anim = Instance.new("StringValue")
  353. anim.Name = "toolanim"
  354. anim.Value = "Lunge"
  355. anim.Parent = Tool
  356.  
  357.  
  358. local force = Instance.new("BodyVelocity")
  359. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  360. force.Parent = Tool.Parent.Torso
  361. wait(.25)
  362. swordOut()
  363. wait(.25)
  364. force.Parent = nil
  365. wait(.5)
  366. swordUp()
  367.  
  368. damage = slash_damage
  369. end
  370.  
  371. function swordUp()
  372. Tool.GripForward = Vector3.new(-1,0,0)
  373. Tool.GripRight = Vector3.new(0,1,0)
  374. Tool.GripUp = Vector3.new(0,0,1)
  375. end
  376.  
  377. function swordOut()
  378. Tool.GripForward = Vector3.new(0,0,1)
  379. Tool.GripRight = Vector3.new(0,-1,0)
  380. Tool.GripUp = Vector3.new(-1,0,0)
  381. end
  382.  
  383. function swordAcross()
  384. -- parry
  385. end
  386.  
  387.  
  388. Tool.Enabled = true
  389. local last_attack = 0
  390. function onActivated()
  391.  
  392. if not Tool.Enabled then
  393. return
  394. end
  395.  
  396. Tool.Enabled = false
  397.  
  398. local character = Tool.Parent;
  399. local humanoid = character.Humanoid
  400. if humanoid == nil then
  401. print("Humanoid not found")
  402. return
  403. end
  404.  
  405. t = r.Stepped:wait()
  406.  
  407. if (t - last_attack < 4) then
  408. lunge()
  409. else
  410. attack()
  411. end
  412.  
  413. last_attack = t
  414.  
  415. --wait(.5)
  416.  
  417. Tool.Enabled = true
  418. end
  419.  
  420.  
  421. function onEquipped()
  422. UnsheathSound:play()
  423. end
  424.  
  425.  
  426. script.Parent.Activated:connect(onActivated)
  427. script.Parent.Equipped:connect(onEquipped)
  428.  
  429.  
  430. connection = sword.Touched:connect(blow)
  431.  
  432.  
  433.  
  434. end; function()
  435. local Tool = script.Parent;
  436.  
  437. enabled = true
  438. function onButton1Down(mouse)
  439. if not enabled then
  440. return
  441. end
  442.  
  443. enabled = false
  444. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  445.  
  446. wait(.5)
  447. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  448. enabled = true
  449.  
  450. end
  451.  
  452. function onEquippedLocal(mouse)
  453.  
  454. if mouse == nil then
  455. print("Mouse not found")
  456. return
  457. end
  458.  
  459. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  460. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  461. end
  462.  
  463.  
  464. Tool.Equipped:connect(onEquippedLocal)
  465.  
  466. end; function()
  467. -------- OMG HAX
  468.  
  469. r = game:service("RunService")
  470.  
  471.  
  472. local damage = 10
  473.  
  474. local damage_base = 15
  475. local damage_max = 25
  476.  
  477. local slash_damage = 10
  478. local lunge_damage = 20
  479.  
  480. sword = script.Parent.Handle
  481. Tool = script.Parent
  482.  
  483. local ghostEffect = nil
  484. local ghostChar = nil
  485.  
  486. local equalizingForce = 236 / 1.2 -- amount of force required to levitate a mass
  487. local gravity = .75 -- things float at > 1
  488.  
  489. local SlashSound = Instance.new("Sound")
  490. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  491. SlashSound.Parent = sword
  492. SlashSound.Volume = .7
  493.  
  494. local LungeSound = Instance.new("Sound")
  495. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  496. LungeSound.Parent = sword
  497. LungeSound.Volume = .6
  498.  
  499. local UnsheathSound = Instance.new("Sound")
  500. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  501. UnsheathSound.Parent = sword
  502. UnsheathSound.Volume = 1
  503.  
  504.  
  505. function recursiveGetMass(node)
  506. local m = 0
  507. local c = node:GetChildren()
  508. for i=1,#c do
  509. if c[i].className == "Part" then
  510. m = m + c[i]:GetMass()
  511. end
  512. m = m + recursiveGetMass(c[i])
  513. end
  514. return m
  515. end
  516.  
  517.  
  518. function makeMeGhostly(trans)
  519.  
  520. if ghostChar == nil then return end
  521.  
  522. local parts = {"Head", "Torso", "Left Leg", "Right Leg", "Left Arm", "Right Arm"}
  523.  
  524. for i=1,#parts do
  525. local p = ghostChar:FindFirstChild(parts[i])
  526. if p ~= nil then p.Transparency = trans end
  527. end
  528.  
  529.  
  530. end
  531.  
  532.  
  533. function UpdateGhostState(isUnequipping)
  534.  
  535. if isUnequipping == true then
  536. makeMeGhostly(0)
  537. ghostEffect.Parent = nil
  538. ghostEffect = nil
  539. ghostChar = nil
  540. else
  541. if ghostEffect == nil then
  542. local char = Tool.Parent
  543. if char == nil then return end
  544. ghostEffect = Instance.new("BodyForce")
  545. ghostEffect.Name = "GhostEffect"
  546. ghostEffect.force = Vector3.new(0, recursiveGetMass(char) * equalizingForce * gravity,0)
  547. ghostEffect.Parent = char.Head
  548. ghostChar = char
  549. end
  550. local power = script.Parent.Kills.Value
  551. if power > 9 then power = 9 end
  552.  
  553. script.Parent.Name = "Ghostwalker (" .. power .. ")"
  554.  
  555. slash_damage = damage_base + (damage_max - damage_base) * (power / 9)
  556. lunge_damage = 2 * (damage_base + (damage_max - damage_base) * (power / 9))
  557.  
  558. makeMeGhostly(.2 + ((power / 9) * .8))
  559.  
  560. end
  561.  
  562.  
  563. end
  564.  
  565.  
  566.  
  567.  
  568. function blow(hit)
  569. local humanoid = hit.Parent:findFirstChild("Humanoid")
  570. local vCharacter = Tool.Parent
  571. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  572. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  573. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  574. -- final check, make sure sword is in-hand
  575.  
  576. local right_arm = vCharacter:FindFirstChild("Right Arm")
  577. if (right_arm ~= nil) then
  578. local joint = right_arm:FindFirstChild("RightGrip")
  579. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword) and humanoid.Health > 0) then
  580. tagHumanoid(humanoid, vPlayer)
  581. humanoid:TakeDamage(damage)
  582. if (humanoid.Health <= 0) then
  583. script.Parent.Kills.Value = script.Parent.Kills.Value + 1
  584. local sound = script.Parent.Handle:findFirstChild("GhostSound")
  585. if sound == nil then
  586. sound = Instance.new("Sound")
  587. sound.Name = "GhostSound"
  588. sound.SoundId = "rbxasset://sounds\\HalloweenGhost.wav"
  589. sound.Parent = script.Parent.Handle
  590. end
  591. sound:play()
  592. UpdateGhostState(false)
  593. end
  594. end
  595. end
  596.  
  597.  
  598. end
  599. end
  600.  
  601.  
  602.  
  603. function tagHumanoid(humanoid, player)
  604. local creator_tag = Instance.new("ObjectValue")
  605. creator_tag.Value = player
  606. creator_tag.Name = "creator"
  607. creator_tag.Parent = humanoid
  608. game.Debris:AddItem(creator_tag, 1)
  609. end
  610.  
  611.  
  612.  
  613.  
  614. function attack()
  615. damage = slash_damage
  616. SlashSound:play()
  617. local anim = Instance.new("StringValue")
  618. anim.Name = "toolanim"
  619. anim.Value = "Slash"
  620. anim.Parent = Tool
  621. end
  622.  
  623. function lunge()
  624. damage = lunge_damage
  625.  
  626. LungeSound:play()
  627.  
  628. local anim = Instance.new("StringValue")
  629. anim.Name = "toolanim"
  630. anim.Value = "Lunge"
  631. anim.Parent = Tool
  632.  
  633.  
  634. local force = Instance.new("BodyVelocity")
  635. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  636. force.Parent = Tool.Parent.Torso
  637. wait(.25)
  638. swordOut()
  639. wait(.25)
  640. force.Parent = nil
  641. wait(.5)
  642. swordUp()
  643.  
  644. damage = slash_damage
  645. end
  646.  
  647. function swordUp()
  648. Tool.GripForward = Vector3.new(-1,0,0)
  649. Tool.GripRight = Vector3.new(0,1,0)
  650. Tool.GripUp = Vector3.new(0,0,1)
  651. end
  652.  
  653. function swordOut()
  654. Tool.GripForward = Vector3.new(0,0,1)
  655. Tool.GripRight = Vector3.new(0,-1,0)
  656. Tool.GripUp = Vector3.new(-1,0,0)
  657. end
  658.  
  659. function swordAcross()
  660. -- parry
  661. end
  662.  
  663.  
  664. Tool.Enabled = true
  665. local last_attack = 0
  666. function onActivated()
  667.  
  668. if not Tool.Enabled then
  669. return
  670. end
  671.  
  672. Tool.Enabled = false
  673.  
  674. local character = Tool.Parent;
  675. local humanoid = character.Humanoid
  676. if humanoid == nil then
  677. print("Humanoid not found")
  678. return
  679. end
  680.  
  681. t = r.Stepped:wait()
  682.  
  683. if (t - last_attack < .2) then
  684. lunge()
  685. else
  686. attack()
  687. end
  688.  
  689. last_attack = t
  690.  
  691. --wait(.5)
  692.  
  693. Tool.Enabled = true
  694. end
  695.  
  696.  
  697. function onEquipped()
  698. UnsheathSound:play()
  699. UpdateGhostState(false)
  700. end
  701.  
  702. function onUnequipped()
  703. UpdateGhostState(true)
  704. end
  705.  
  706.  
  707. script.Parent.Activated:connect(onActivated)
  708. script.Parent.Equipped:connect(onEquipped)
  709. script.Parent.Unequipped:connect(onUnequipped)
  710.  
  711. connection = sword.Touched:connect(blow)
  712.  
  713.  
  714.  
  715. end; function()
  716. local Tool = script.Parent;
  717.  
  718. enabled = true
  719. function onButton1Down(mouse)
  720. if not enabled then
  721. return
  722. end
  723.  
  724. enabled = false
  725. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  726.  
  727. wait(.5)
  728. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  729. enabled = true
  730.  
  731. end
  732.  
  733. function onEquippedLocal(mouse)
  734.  
  735. if mouse == nil then
  736. print("Mouse not found")
  737. return
  738. end
  739.  
  740. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  741. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  742. end
  743.  
  744.  
  745. Tool.Equipped:connect(onEquippedLocal)
  746.  
  747. end; function()
  748. -------- OMG HAX
  749.  
  750. r = game:service("RunService")
  751.  
  752.  
  753. local damage = 20
  754.  
  755.  
  756. local slash_damage = 16
  757. local lunge_damage = 32
  758.  
  759. sword = script.Parent.Handle
  760. Tool = script.Parent
  761.  
  762.  
  763. local SlashSound = Instance.new("Sound")
  764. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  765. SlashSound.Parent = sword
  766. SlashSound.Volume = .7
  767.  
  768. local LungeSound = Instance.new("Sound")
  769. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  770. LungeSound.Parent = sword
  771. LungeSound.Volume = .6
  772.  
  773. local UnsheathSound = Instance.new("Sound")
  774. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  775. UnsheathSound.Parent = sword
  776. UnsheathSound.Volume = 1
  777.  
  778. function DarkKill(character, humanoid, attacker)
  779.  
  780. if (character:FindFirstChild("ForceField") ~= nil) then return end
  781.  
  782. local childs = character:GetChildren()
  783.  
  784. local colors = {}
  785.  
  786. tagHumanoid(humanoid, attacker)
  787. humanoid.Health = 0
  788.  
  789. for i=1,#childs do
  790. if (childs[i].className == "Part") then
  791. colors[i] = childs[i].BrickColor
  792. childs[i].BrickColor = BrickColor.new(26)
  793. childs[i].CanCollide = true
  794. childs[i].Anchored = true
  795. end
  796. end
  797.  
  798. wait(.25)
  799.  
  800. for i=1,#childs do
  801. if (childs[i].className == "Part") then
  802. local b = Instance.new("BodyVelocity")
  803. b.velocity = Vector3.new(math.random() - .5, 0, math.random() - .5).unit * 80
  804. b.maxForce = Vector3.new(1e5,1e5,1e5)
  805. b.Parent = childs[i]
  806. end
  807. end
  808.  
  809. for i=1,#childs do
  810. if (childs[i].className == "Part") then
  811. childs[i].Anchored = false
  812. end
  813. end
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822. end
  823.  
  824.  
  825.  
  826.  
  827. function blow(hit)
  828. local humanoid = hit.Parent:findFirstChild("Humanoid")
  829. local vCharacter = Tool.Parent
  830. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  831. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  832. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  833. -- final check, make sure sword is in-hand
  834.  
  835. local right_arm = vCharacter:FindFirstChild("Right Arm")
  836. if (right_arm ~= nil) then
  837. local joint = right_arm:FindFirstChild("RightGrip")
  838. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  839. hum.Health = hum.Health + (damage * .4)
  840. if humanoid.Health > damage then
  841. tagHumanoid(humanoid, vPlayer)
  842. humanoid:TakeDamage(damage)
  843. else
  844. DarkKill(humanoid.Parent, humanoid, vPlayer)
  845. end
  846. end
  847. end
  848.  
  849.  
  850. end
  851. end
  852.  
  853.  
  854.  
  855. function tagHumanoid(humanoid, player)
  856. local creator_tag = Instance.new("ObjectValue")
  857. creator_tag.Value = player
  858. creator_tag.Name = "creator"
  859. creator_tag.Parent = humanoid
  860. game.Debris:AddItem(creator_tag, 1)
  861. end
  862.  
  863.  
  864.  
  865.  
  866. function attack()
  867. damage = slash_damage
  868. SlashSound:play()
  869. local anim = Instance.new("StringValue")
  870. anim.Name = "toolanim"
  871. anim.Value = "Slash"
  872. anim.Parent = Tool
  873. end
  874.  
  875. function lunge()
  876. damage = lunge_damage
  877.  
  878. LungeSound:play()
  879.  
  880. local anim = Instance.new("StringValue")
  881. anim.Name = "toolanim"
  882. anim.Value = "Lunge"
  883. anim.Parent = Tool
  884.  
  885.  
  886. local force = Instance.new("BodyVelocity")
  887. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  888. force.Parent = Tool.Parent.Torso
  889. wait(.25)
  890. swordOut()
  891. wait(.25)
  892. force.Parent = nil
  893. wait(.5)
  894. swordUp()
  895.  
  896. damage = slash_damage
  897. end
  898.  
  899. function swordUp()
  900. Tool.GripForward = Vector3.new(-1,0,0)
  901. Tool.GripRight = Vector3.new(0,1,0)
  902. Tool.GripUp = Vector3.new(0,0,1)
  903. end
  904.  
  905. function swordOut()
  906. Tool.GripForward = Vector3.new(0,0,1)
  907. Tool.GripRight = Vector3.new(0,-1,0)
  908. Tool.GripUp = Vector3.new(-1,0,0)
  909. end
  910.  
  911. function swordAcross()
  912. -- parry
  913. end
  914.  
  915.  
  916. Tool.Enabled = true
  917. local last_attack = 0
  918. function onActivated()
  919.  
  920. if not Tool.Enabled then
  921. return
  922. end
  923.  
  924. Tool.Enabled = false
  925.  
  926. local character = Tool.Parent;
  927. local humanoid = character.Humanoid
  928. if humanoid == nil then
  929. print("Humanoid not found")
  930. return
  931. end
  932.  
  933. t = r.Stepped:wait()
  934.  
  935. if (t - last_attack < .2) then
  936. lunge()
  937. else
  938. attack()
  939. end
  940.  
  941. last_attack = t
  942.  
  943. --wait(.5)
  944.  
  945. Tool.Enabled = true
  946. end
  947.  
  948.  
  949. function onEquipped()
  950. UnsheathSound:play()
  951. end
  952.  
  953.  
  954. script.Parent.Activated:connect(onActivated)
  955. script.Parent.Equipped:connect(onEquipped)
  956.  
  957.  
  958. connection = sword.Touched:connect(blow)
  959.  
  960.  
  961.  
  962. end; function()
  963. local Tool = script.Parent;
  964.  
  965. enabled = true
  966. function onButton1Down(mouse)
  967. if not enabled then
  968. return
  969. end
  970.  
  971. enabled = false
  972. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  973.  
  974. wait(.5)
  975. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  976. enabled = true
  977.  
  978. end
  979.  
  980. function onEquippedLocal(mouse)
  981.  
  982. if mouse == nil then
  983. print("Mouse not found")
  984. return
  985. end
  986.  
  987. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  988. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  989. end
  990.  
  991.  
  992. Tool.Equipped:connect(onEquippedLocal)
  993.  
  994. end; function()
  995. -------- OMG HAX
  996.  
  997. r = game:service("RunService")
  998.  
  999.  
  1000. local damage = 5
  1001.  
  1002.  
  1003. local slash_damage = 10
  1004. local lunge_damage = 15
  1005.  
  1006. sword = script.Parent.Handle
  1007. Tool = script.Parent
  1008.  
  1009.  
  1010. local SlashSound = Instance.new("Sound")
  1011. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1012. SlashSound.Parent = sword
  1013. SlashSound.Volume = .7
  1014.  
  1015. local LungeSound = Instance.new("Sound")
  1016. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  1017. LungeSound.Parent = sword
  1018. LungeSound.Volume = .6
  1019.  
  1020. local UnsheathSound = Instance.new("Sound")
  1021. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  1022. UnsheathSound.Parent = sword
  1023. UnsheathSound.Volume = 1
  1024.  
  1025. local isDeadly = false
  1026.  
  1027. function toggleDeadly(on)
  1028. isDeadly = on
  1029. if (on == true) then
  1030. Tool.Handle.BrickColor = BrickColor.new(23)
  1031. else
  1032. Tool.Handle.BrickColor = BrickColor.new(1)
  1033. end
  1034. end
  1035.  
  1036. function FreezeKill(character, humanoid, attacker)
  1037.  
  1038. if (character:FindFirstChild("ForceField") ~= nil) then return end
  1039. if (character:FindFirstChild("Firebrand") ~= nil) then return end
  1040.  
  1041.  
  1042.  
  1043. -- make sure this dude dies (edge case when ice dagger wielder gets killed, we may not get back here)
  1044. local dies = script.MakeSureDudeDies:clone()
  1045. dies.Disabled = false
  1046. dies.Parent = character
  1047.  
  1048. local childs = character:GetChildren()
  1049.  
  1050. local colors = {}
  1051.  
  1052. for i=1,#childs do
  1053. if (childs[i].className == "Part") then
  1054. colors[i] = childs[i].BrickColor
  1055. childs[i].BrickColor = BrickColor.new(11)
  1056. childs[i].Transparency = .5
  1057. childs[i].Anchored = true
  1058. end
  1059. end
  1060.  
  1061. wait(2)
  1062.  
  1063. for i=1,#childs do
  1064. if (childs[i].className == "Part") then
  1065. childs[i].Anchored = false
  1066. end
  1067. end
  1068.  
  1069.  
  1070. tagHumanoid(humanoid, attacker)
  1071.  
  1072. humanoid.Health = 0
  1073.  
  1074.  
  1075. end
  1076.  
  1077.  
  1078.  
  1079.  
  1080. function blow(hit)
  1081. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1082. local vCharacter = Tool.Parent
  1083. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1084. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1085. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1086. -- final check, make sure sword is in-hand
  1087.  
  1088. local right_arm = vCharacter:FindFirstChild("Right Arm")
  1089. if (right_arm ~= nil) then
  1090. local joint = right_arm:FindFirstChild("RightGrip")
  1091. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  1092. if (isDeadly == true) then
  1093. FreezeKill(humanoid.Parent, humanoid, vPlayer)
  1094. else
  1095. tagHumanoid(humanoid, vPlayer)
  1096. humanoid:TakeDamage(damage)
  1097. end
  1098. end
  1099. end
  1100.  
  1101.  
  1102. end
  1103. end
  1104.  
  1105.  
  1106.  
  1107. function tagHumanoid(humanoid, player)
  1108. local creator_tag = Instance.new("ObjectValue")
  1109. creator_tag.Value = player
  1110. creator_tag.Name = "creator"
  1111. creator_tag.Parent = humanoid
  1112. game.Debris:AddItem(creator_tag, 1)
  1113. end
  1114.  
  1115.  
  1116. function attack()
  1117. damage = slash_damage
  1118. SlashSound:play()
  1119. local anim = Instance.new("StringValue")
  1120. anim.Name = "toolanim"
  1121. anim.Value = "Slash"
  1122. anim.Parent = Tool
  1123. end
  1124.  
  1125. function lunge()
  1126. damage = lunge_damage
  1127.  
  1128. LungeSound:play()
  1129.  
  1130. local anim = Instance.new("StringValue")
  1131. anim.Name = "toolanim"
  1132. anim.Value = "Lunge"
  1133. anim.Parent = Tool
  1134.  
  1135.  
  1136. local force = Instance.new("BodyVelocity")
  1137. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  1138. force.Parent = Tool.Parent.Torso
  1139. wait(.25)
  1140. swordOut()
  1141. wait(.25)
  1142. force.Parent = nil
  1143. wait(.5)
  1144. swordUp()
  1145.  
  1146. damage = slash_damage
  1147. end
  1148.  
  1149. function swordUp()
  1150. Tool.GripForward = Vector3.new(-1,0,0)
  1151. Tool.GripRight = Vector3.new(0,1,0)
  1152. Tool.GripUp = Vector3.new(0,0,1)
  1153. end
  1154.  
  1155. function swordOut()
  1156. Tool.GripForward = Vector3.new(0,0,1)
  1157. Tool.GripRight = Vector3.new(0,-1,0)
  1158. Tool.GripUp = Vector3.new(-1,0,0)
  1159. end
  1160.  
  1161. function swordAcross()
  1162. -- parry
  1163. end
  1164.  
  1165.  
  1166. Tool.Enabled = true
  1167. local last_attack = 0
  1168. function onActivated()
  1169.  
  1170. if not Tool.Enabled then
  1171. return
  1172. end
  1173.  
  1174. Tool.Enabled = false
  1175.  
  1176. local character = Tool.Parent;
  1177. local humanoid = character.Humanoid
  1178. if humanoid == nil then
  1179. print("Humanoid not found")
  1180. return
  1181. end
  1182.  
  1183. t = r.Stepped:wait()
  1184.  
  1185. if (t - last_attack < .2) then
  1186. lunge()
  1187. else
  1188. attack()
  1189. end
  1190.  
  1191. last_attack = t
  1192.  
  1193. --wait(.5)
  1194.  
  1195. Tool.Enabled = true
  1196. end
  1197.  
  1198.  
  1199. function onEquipped()
  1200. toggleDeadly(false)
  1201. wait(3)
  1202. toggleDeadly(true)
  1203. UnsheathSound:play()
  1204. end
  1205.  
  1206.  
  1207. function onUnequipped()
  1208. toggleDeadly(false)
  1209. end
  1210.  
  1211. script.Parent.Activated:connect(onActivated)
  1212. script.Parent.Equipped:connect(onEquipped)
  1213. script.Parent.Unequipped:connect(onUnequipped)
  1214.  
  1215.  
  1216. connection = sword.Touched:connect(blow)
  1217.  
  1218.  
  1219.  
  1220. end; function()
  1221. wait(2)
  1222.  
  1223. -- we're in the character model
  1224.  
  1225. script.Parent.Humanoid.Health = 0
  1226.  
  1227. end; function()
  1228. local Tool = script.Parent;
  1229.  
  1230. enabled = true
  1231. function onButton1Down(mouse)
  1232. if not enabled then
  1233. return
  1234. end
  1235.  
  1236. enabled = false
  1237. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  1238.  
  1239. wait(.5)
  1240. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1241. enabled = true
  1242.  
  1243. end
  1244.  
  1245. function onEquippedLocal(mouse)
  1246.  
  1247. if mouse == nil then
  1248. print("Mouse not found")
  1249. return
  1250. end
  1251.  
  1252. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1253. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1254. end
  1255.  
  1256.  
  1257. Tool.Equipped:connect(onEquippedLocal)
  1258.  
  1259. end; function()
  1260. -------- OMG HAX
  1261.  
  1262. r = game:service("RunService")
  1263.  
  1264.  
  1265. local damage = 10
  1266.  
  1267.  
  1268. local slash_damage = 20
  1269. local lunge_damage = 40
  1270.  
  1271. sword = script.Parent.Handle
  1272. Tool = script.Parent
  1273.  
  1274.  
  1275. local SlashSound = Instance.new("Sound")
  1276. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1277. SlashSound.Parent = sword
  1278. SlashSound.Volume = .7
  1279.  
  1280. local LungeSound = Instance.new("Sound")
  1281. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  1282. LungeSound.Parent = sword
  1283. LungeSound.Volume = .6
  1284.  
  1285. local UnsheathSound = Instance.new("Sound")
  1286. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  1287. UnsheathSound.Parent = sword
  1288. UnsheathSound.Volume = 1
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295. function blow(hit)
  1296. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1297. local vCharacter = Tool.Parent
  1298. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1299. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1300. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1301. -- final check, make sure sword is in-hand
  1302.  
  1303. local right_arm = vCharacter:FindFirstChild("Right Arm")
  1304. if (right_arm ~= nil) then
  1305. local joint = right_arm:FindFirstChild("RightGrip")
  1306. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  1307. tagHumanoid(humanoid, vPlayer)
  1308. humanoid:TakeDamage(damage)
  1309.  
  1310. end
  1311. end
  1312.  
  1313.  
  1314. end
  1315. end
  1316.  
  1317.  
  1318.  
  1319. function tagHumanoid(humanoid, player)
  1320. local creator_tag = Instance.new("ObjectValue")
  1321. creator_tag.Value = player
  1322. creator_tag.Name = "creator"
  1323. creator_tag.Parent = humanoid
  1324. game.Debris:AddItem(creator_tag, 1)
  1325. end
  1326.  
  1327.  
  1328.  
  1329. function attack()
  1330. damage = slash_damage
  1331. SlashSound:play()
  1332. local anim = Instance.new("StringValue")
  1333. anim.Name = "toolanim"
  1334. anim.Value = "Slash"
  1335. anim.Parent = Tool
  1336. end
  1337.  
  1338. function lunge()
  1339. damage = lunge_damage
  1340.  
  1341. LungeSound:play()
  1342.  
  1343. local anim = Instance.new("StringValue")
  1344. anim.Name = "toolanim"
  1345. anim.Value = "Lunge"
  1346. anim.Parent = Tool
  1347.  
  1348.  
  1349. local force = Instance.new("BodyVelocity")
  1350. force.velocity = Vector3.new(0,80,0)
  1351. force.Parent = Tool.Parent.Torso
  1352. wait(.25)
  1353. force.velocity = (Tool.Parent.Torso.CFrame.lookVector * 120) + Vector3.new(0, 60,0)
  1354. swordOut()
  1355. wait(.5)
  1356. force.Parent = nil
  1357. wait(.5)
  1358. swordUp()
  1359.  
  1360. damage = slash_damage
  1361. end
  1362.  
  1363. function swordUp()
  1364. Tool.GripForward = Vector3.new(-1,0,0)
  1365. Tool.GripRight = Vector3.new(0,1,0)
  1366. Tool.GripUp = Vector3.new(0,0,1)
  1367. end
  1368.  
  1369. function swordOut()
  1370. Tool.GripForward = Vector3.new(0,0,1)
  1371. Tool.GripRight = Vector3.new(0,-1,0)
  1372. Tool.GripUp = Vector3.new(-1,0,0)
  1373. end
  1374.  
  1375. function swordAcross()
  1376. -- parry
  1377. end
  1378.  
  1379.  
  1380. Tool.Enabled = true
  1381. local last_attack = 0
  1382. function onActivated()
  1383.  
  1384. if not Tool.Enabled then
  1385. return
  1386. end
  1387.  
  1388. Tool.Enabled = false
  1389.  
  1390. local character = Tool.Parent;
  1391. local humanoid = character.Humanoid
  1392. if humanoid == nil then
  1393. print("Humanoid not found")
  1394. return
  1395. end
  1396.  
  1397. t = r.Stepped:wait()
  1398.  
  1399. if (t - last_attack < .2) then
  1400. lunge()
  1401. else
  1402. attack()
  1403. end
  1404.  
  1405. last_attack = t
  1406.  
  1407. --wait(.5)
  1408.  
  1409. Tool.Enabled = true
  1410. end
  1411.  
  1412.  
  1413. function onEquipped()
  1414. UnsheathSound:play()
  1415. end
  1416.  
  1417. function reveal()
  1418. -- tag all nearby invisible players for reveal
  1419.  
  1420. -- only check when the weapon is equipped
  1421. if (script:IsDescendantOf(game.Workspace) == false) then return end
  1422.  
  1423. local p = game.Players:GetPlayers()
  1424. for i=1,#p do
  1425. local c = p[i].Character
  1426. if (c ~= nil) then
  1427.  
  1428. if (script.Parent.Parent ~= nil and script.Parent.Parent ~= c) then -- don't check self
  1429.  
  1430. local torso = c:FindFirstChild("Torso")
  1431. if (torso ~= nil) then
  1432. if (torso.Position - script.Parent.Handle.Position).magnitude < 32 then
  1433. local parts = c:GetChildren()
  1434. for j=1,#parts do
  1435. if (parts[j].className == "Part") then
  1436. if (parts[j]:FindFirstChild("IlluminaSparkles") == nil) then
  1437. if (parts[j].Transparency > 0) then
  1438. local s = script.Parent.Handle.IlluminaSparkles:Clone()
  1439. game.Debris:AddItem(s, 2)
  1440. s.Parent = parts[j]
  1441. end
  1442. end
  1443. end
  1444. end
  1445. end
  1446. end
  1447. end
  1448. end
  1449. end
  1450. end
  1451.  
  1452. script.Parent.Activated:connect(onActivated)
  1453. script.Parent.Equipped:connect(onEquipped)
  1454.  
  1455.  
  1456. connection = sword.Touched:connect(blow)
  1457.  
  1458. while true do
  1459. wait(.25)
  1460. reveal()
  1461. end
  1462.  
  1463.  
  1464. end; function()
  1465. local Tool = script.Parent;
  1466.  
  1467. enabled = true
  1468. function onButton1Down(mouse)
  1469. if not enabled then
  1470. return
  1471. end
  1472.  
  1473. enabled = false
  1474. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  1475.  
  1476. wait(.5)
  1477. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1478. enabled = true
  1479.  
  1480. end
  1481.  
  1482. function onEquippedLocal(mouse)
  1483.  
  1484. if mouse == nil then
  1485. print("Mouse not found")
  1486. return
  1487. end
  1488.  
  1489. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1490. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1491. end
  1492.  
  1493.  
  1494. Tool.Equipped:connect(onEquippedLocal)
  1495.  
  1496. end;}local ActualScripts = {}
  1497. function s(var)
  1498. local func = table.remove(Scripts,1)
  1499. local env = getfenv(func)
  1500. local newenv = setmetatable({},{
  1501. __index = function(self,k)
  1502. if k=="script" then
  1503. return var
  1504. else
  1505. return env[k]
  1506. end
  1507. end,
  1508. })
  1509. setfenv(func,newenv)
  1510. table.insert(ActualScripts,coroutine.wrap(func))
  1511. end
  1512.  
  1513. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  1514. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  1515. function(t,f)
  1516. for a,b in pairs(t) do
  1517. f(a,b)
  1518. end
  1519. end
  1520. local Types = {
  1521. Color3 = Color3.new,
  1522. Vector3 = Vector3.new,
  1523. Vector2 = Vector2.new,
  1524. UDim = UDim.new,
  1525. UDim2 = UDim2.new,
  1526. CFrame = CFrame.new,
  1527. Rect = Rect.new,
  1528. NumberRange = NumberRange.new,
  1529. NumberSequence = function(...)
  1530. local a = {...}
  1531. local t = {}
  1532. repeat
  1533. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  1534. until #a==0
  1535. return NumberSequence.new(t)
  1536. end,
  1537. ColorSequence = function(...)
  1538. local a = {...}
  1539. local t = {}
  1540. repeat
  1541. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  1542. until #a==0
  1543. return ColorSequence.new(t)
  1544. end,
  1545. number = tonumber,
  1546. boolean = function(a)
  1547. return a=="true"
  1548. end
  1549. }
  1550. split = function(str,sep)
  1551. if not str then return end
  1552. local fields = {}
  1553. local ConcatNext = false
  1554. str:gsub(("([^%s]+)"):format(sep),function(c)
  1555. if ConcatNext == true then
  1556. fields[#fields] = fields[#fields]..sep..c
  1557. ConcatNext = false
  1558. else
  1559. fields[#fields+1] = c
  1560. end
  1561. if c:sub(#c)=="\\" then
  1562. c = fields[#fields]
  1563. fields[#fields] = c:sub(1,#c-1)
  1564. ConcatNext = true
  1565. end
  1566. end)
  1567. return fields
  1568. end
  1569. RemoveAndSplit = function(t)
  1570. return split(table_remove(t,1),comma)
  1571. end
  1572. t = split(str,";")
  1573. props = RemoveAndSplit(t)
  1574. classes = RemoveAndSplit(t)
  1575. values = split(table_remove(t,1),'|')
  1576. ICList = RemoveAndSplit(t)
  1577. InstanceList = {}
  1578. Model = inst"Model"
  1579. CurPar = Model
  1580. table_foreach(t,function(ct,c)
  1581. if c=="n" or c=="p" then
  1582. CurPar = c=="n" and LastIns or CurPar[parnt]
  1583. else
  1584. ct = split(c,"|")
  1585. local class = classes[tonum(table_remove(ct,1))]
  1586. if class=="UnionOperation" then
  1587. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  1588. else
  1589. LastIns = inst(class)
  1590. if LastIns:IsA"Script" then
  1591. s(LastIns)
  1592. end
  1593. end
  1594.  
  1595. local function SetProperty(LastIns,p,str,s)
  1596. s = Types[typeof(LastIns[p])]
  1597. LastIns[p] = s and s(unpack(split(str,comma))) or str
  1598. end
  1599.  
  1600. local UnionData
  1601. table_foreach(ct,function(s,p,a,str)
  1602. a = p:find":"
  1603. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  1604. if p=="UnionData" then
  1605. UnionData = split(str," ")
  1606. return
  1607. end
  1608. if class=="UnionOperation" then
  1609. LastIns[p] = str
  1610. return
  1611. end
  1612. SetProperty(LastIns,p,str)
  1613. end)
  1614.  
  1615. if UnionData then
  1616. local LI_Data = LastIns
  1617. LastIns = DecodeUnion(UnionData)
  1618. table_foreach(LI_Data,function(p,str)
  1619. SetProperty(LastIns,p,str)
  1620. end)
  1621. end
  1622. table.insert(InstanceList,LastIns)
  1623. LastIns[parnt] = CurPar
  1624. end
  1625. end)
  1626. table_remove(ICList,1)
  1627. table_foreach(ICList,function(a,b)
  1628. b = split(b,">")
  1629. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  1630. end)
  1631.  
  1632. return Model
  1633. end
  1634.  
  1635. local Model = Decode('Name,PrimaryPart,Color,Position,Orientation,Size,TopSurface,Scale,CFrame,Texture,Transparency,CanCollide,BottomSurface,MaxVelocity,C0,C1,Part0,Part1,LeftSurface,RightSurface,AttachmentPoint,Attachment'
  1636. ..'Pos,Locked,MeshId,TextureId,MeshType,Rotation,Value,HeadColor3,LeftArmColor3,RightArmColor3,LeftLegColor3,RightLegColor3,TorsoColor3,ShirtTemplate,PantsTemplate,Grip,GripPos,GripForward,GripRight,Grip'
  1637. ..'Up,Reflectance,Velocity,VertexColor,SoundId,Volume,Anchored,BackSurface,FrontSurface,SparkleColor;Part,Model,SpecialMesh,Attachment,Decal,Motor6D,Humanoid,Accessory,Vector3Value,BodyColors,Shirt,Pants'
  1638. ..',Tool,Sound,Script,LocalScript,Snap,IntValue,Weld,SpawnLocation,RotateP,Sparkles;Part|ExShadowKid: Enjoy The Swords Bois|Head|0.066,0.066,0.066|-31.399,4.5,46.449|0,-90,0|2,1,1|Smooth|1.25,1.25,1.25|H'
  1639. ..'atAttachment|0,0.6,0|0,0.6,0,1,0,0,0,1,0,0,0,1|HairAttachment|FaceFrontAttachment|0,0,-0.601|0,0,-0.601,1,0,0,0,1,0,0,0,1|FaceCenterAttachment|face|http://www.roblox.com/asset/?id=7074749|HumanoidRoot'
  1640. ..'Part|1|-31.399,3,46.449|2,2,1|false|RootJoint|0.1|0,0,0,-1,0,0,0,0,1,0,1,-0|Left Arm|-31.399,3,44.949|1,2,1|LeftShoulderAttachment|0,1,0|0,1,0,1,0,0,0,1,0,0,0,1|Left Leg|-31.399,1,45.949|Right Arm|-31'
  1641. ..'.399,3,47.949|RightShoulderAttachment|Right Leg|-31.399,1,46.949|Torso|Weld|roblox|Right Shoulder|1,0.5,0,0,0,1,0,1,-0,-1,0,0|-0.5,0.5,0,0,0,1,0,1,-0,-1,0,0|Right Hip|1,-1,0,0,0,1,0,1,-0,-1,0,0|0.5,1,'
  1642. ..'0,0,0,1,0,1,-0,-1,0,0|Neck|0,1,0,-1,0,0,0,0,1,0,1,-0|0,-0.5,0,-1,0,0,0,0,1,0,1,-0|Left Shoulder|-1,0.5,0,0,0,-1,0,1,0,1,0,0|0.5,0.5,0,0,0,-1,0,1,0,1,0,0|Left Hip|-1,-1,0,0,0,-1,0,1,0,1,0,0|-0.5,1,0,0,'
  1643. ..'0,-1,0,1,0,1,0,0|WaistFrontAttachment|0,-1,-0.5|0,-1,-0.5,1,0,0,0,1,0,0,0,1|WaistCenterAttachment|0,-1,0|0,-1,0,1,0,0,0,1,0,0,0,1|WaistBackAttachment|0,-1,0.5|0,-1,0.5,1,0,0,0,1,0,0,0,1|RightCollarAtt'
  1644. ..'achment|1,1,0|1,1,0,1,0,0,0,1,0,0,0,1|NeckAttachment|LeftCollarAttachment|-1,1,0|-1,1,0,1,0,0,0,1,0,0,0,1|BodyFrontAttachment|0,0,-0.5|0,0,-0.5,1,0,0,0,1,0,0,0,1|BodyBackAttachment|0,0,0.5|0,0,0.5,1,0'
  1645. ..',0,0,1,0,0,0,1|ROBLOXCap|0,-0.076,0.2,1,0,0,0,1,0,0,0,1|0,-0.076,0.2|Handle|true|-31.2,5.075,46.449|1.199,0.799,1.4|0.66,0.66,0.66|http://www.roblox.com/asset?id=71483350|rbxassetid://607698990|FileMe'
  1646. ..'sh|0,0.025,0.199|0,-0.001,-0.001|0,0.025,0.199,1,0,-0.001,-0.001,1,-0.001,0,0,1|OriginalSize|Shirt|http://www.roblox.com/asset/?id=607785311|Pants|http://www.roblox.com/asset/?id=398633811|Venomshank|'
  1647. ..'0,0,-2,0,0,1,1,0,0,0,1,0|0,0,-2|-1,-0,-0|0,0,1|0.388,0.372,0.384|0.699|-42,5.789,37.5|90,-89.551,0|0,0.006,0|1,0.8,6|1.5,1.5,1.5|0.3,1,0.3|rbxasset://fonts/sword.mesh|rbxasset://textures/SwordTexture.'
  1648. ..'png|rbxasset://sounds/swordslash.wav|rbxasset://sounds/swordlunge.wav|0.6|rbxasset://sounds/unsheath.wav|Poison|SwordScript|Local Gui|0.643,0.741,0.278|-42.5,2.6,37.5|3,0.4,3|0,-0.201,0,1,0,0,-0,-0,-1'
  1649. ..',0,1,0|0,1.199,0,1,0,0,0,0,-1,0,1,0|0.294,0.592,0.294|0.3|-42.5,1.2,37.5|3,2.4,3|0,-1.201,0,1,0,0,-0,-0,-1,0,1,0|-42.5,10,37.5,0,-1,0,0,0,-1,1,0,0|Firebrand|0.768,0.156,0.109|-42.5,1.2,41.5|0,1.2,0,-1'
  1650. ..',-0,-0,0,0,1,0,1,0|0,-0.2,0,-1,0,0,0,0,1,0,1,0|-42.5,10,41.5,0,-1,0,0,0,-1,1,0,0|0.854,0.521,0.254|-42.5,2.6,41.5|-41.998,5.789,41.5|89.97,-63.26,26.7|0,-0.006,0|0.5,0,0|Ghost Walker|0.949,0.952,0.952'
  1651. ..'|0.5|-42.5,1.2,45.5|0,180,0|0,-0.2,0,0,-1,0,0,0,1,-1,0,0|-42.5,10,45.5,-1,0,0,0,0,-1,0,-1,0|Ghostwalker|0,0,-1.5,0,0,1,1,0,0,0,1,0|0,0,-1.5|-41.991,4.789,45.501|89.97,-30.271,59.77|0,0.006,-0.001|1,0.'
  1652. ..'8,4|Kills|GhostSwordScript|0.105,0.164,0.207|-42.5,2.6,45.5|Dark Heart|-42.5,1.2,49.5|1.5,0,0,0,0,1,0,1,0,-1,-0,-0|0.5,-0.201,-3,1,-0,0,0,1,0,0,-0,1|-42.5,10,49.5,1,0,0,0,0,-1,0,1,0|0.96,0.803,0.188|-'
  1653. ..'42.5,2.6,49.5|Darkheart|-43.016,4.789,49.449|89.97,76.48,-13.221|-0.001,-0.009,-0.001|0.8,0.8,1|0,0,0|-38,1.4,50|0,90,0|6,1.2,6|michael1784|Ice Dagge|0.431,0.6,0.792|0.2|-42.5,1.2,53.5|-3.5,-0.201,-3,'
  1654. ..'1,-0,0,0,1,0,0,-0,1|-42.5,10,53.5,1,0,0,0,0,-1,0,1,0|-42.5,2.6,53.5|Ice Dagger|0,0,-0.75,0,0,1,1,0,0,0,1,0|0,0,-0.75|-42.988,3.789,53.499|89.98,49.33,-38.451|0,-0.007,-0.001|1,0.8,2|0.5,0.5,0.5|MakeSu'
  1655. ..'reDudeDies|Illumina Giver|-42.5,2.6,57.5|0,1.199,0,-0,1,0,0,0,-1,-1,0,0|0.843,0.772,0.603|-42.5,1.2,57.5|-42.5,10,57.5,0,1,0,0,0,-1,-1,0,0|Illumina|-42.5,4.789,57.4|-90,-180,0|0,-0.001,0|IlluminaSpark'
  1656. ..'les|1.083,1,1|0.611,0.098,1;0,1>2>9,10>17>9,10>18>17,19>17>17,19>18>14,20>17>17,20>18>16,21>17>17,21>18>2,22>17>17,22>18>11,23>17>17,23>18>13,62>17>61,62>18>63,64>17>63,64>18,67>17>66,67>18>69,68>17>6'
  1657. ..'6,68>18,89>17>88,89>18>109,90>17>88,90>18,112>17>111,112>18>115,113>17>111,113>18>133,114>17>111,114>18,137>17>136,137>18>140,138>17>136,138>18>133,139>17>136,139>18,162>17>161,162>18>163,164>17>163,1'
  1658. ..'64>18;2|1:2;n;1|1:3|3:4|4:5|5:6|6:7|7:8|3:4|3:4;n;3|8:9;4|1:10|4:11|9:12;4|1:13|4:11|9:12;4|1:14|4:15|9:16;4|1:17;5|1:18|10:19;p;1|1:20|11:21|4:22|5:6|6:23|12:24|13:8|7:8;n;6|1:25|14:26|15:27|16:27;p;'
  1659. ..'1|1:28|3:4|4:29|5:6|6:30|12:24|3:4|3:4;n;4|1:31|4:32|9:33;p;1|1:34|3:4|4:35|5:6|6:30|12:24|13:8|3:4|3:4;1|1:36|3:4|4:37|5:6|6:30|12:24|3:4|3:4;n;4|1:38|4:32|9:33;p;1|1:39|3:4|4:40|5:6|6:30|12:24|13:8|'
  1660. ..'3:4|3:4;1|1:41|3:4|4:22|5:6|6:23|19:42|20:42|3:4|3:4;n;5|1:43;6|1:44|14:26|15:45|16:46;6|1:47|14:26|15:48|16:49;6|1:50|14:26|15:51|16:52;6|1:53|14:26|15:54|16:55;6|1:56|14:26|15:57|16:58;4|1:59|4:60|9'
  1661. ..':61;4|1:62|4:63|9:64;4|1:65|4:66|9:67;4|1:68|4:69|9:70;4|1:71|4:32|9:33;4|1:72|4:73|9:74;4|1:75|4:76|9:77;4|1:78|4:79|9:80;p;7;8|1:81|21:82|22:83;n;1|1:84|23:85|4:86|5:6|6:87|13:8|7:8;n;3|8:88|24:89|2'
  1662. ..'5:90|26:91;4|1:10|4:92|5:93|27:93|9:94;9|1:95|28:87;p;p;10|29:4|30:4|31:4|32:4|33:4|34:4;11|1:96|35:97;12|1:98|36:99;p;2;n;2|1:100;n;13|1:100|37:101|38:102|39:103|40:32|41:104;n;1|1:84|3:105|42:106|4:'
  1663. ..'107|5:108|43:109|6:110|13:8|7:8|3:105|3:105;n;3|8:111|44:112|24:113|25:114|26:91;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14'
  1664. ..'|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;p;15|1:119;15|1:120;16|1:121;p;1|47:85|3:122|4:123|5:6|6:124|3:122|3:122;n;17|15:125|16:126;p;1|47:85|3:127|42:128|4:12'
  1665. ..'9|5:6|6:130|3:127|3:127;n;17|15:131|16:132;p;p;2|1:133;n;1|47:85|3:134|4:135|5:6|6:130|3:134|3:134;n;17|15:136|16:137;17|15:131|16:138;p;1|3:139|4:140|5:6|6:124|3:139|3:139;13|1:133|37:101|38:102|39:1'
  1666. ..'03|40:32|41:104;n;1|1:84|3:105|42:106|4:141|5:142|43:143|6:110|13:8|7:8|3:105|3:105;n;3|8:111|44:144|24:113|25:114|26:91;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46'
  1667. ..':117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;p;15|1:120;16|1:121;p;p;2|1:145;n;1|47:85|3:146|11:147|4:148|5:149|6:130|3:146|'
  1668. ..'3:146;n;17|15:136|16:150;17|15:131|16:151;p;13|1:152|37:153|38:154|39:103|40:32|41:104;n;1|1:84|3:146|11:106|4:155|5:156|43:157|6:158|13:8|7:8|3:146|3:146;n;3|44:69|24:113|26:91;14|45:115|46:106;14|45'
  1669. ..':116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;p;18|1:159;15|1:160;16'
  1670. ..'|1:121;p;1|3:161|42:117|4:162|5:6|6:124|3:161|3:161;p;2|1:163;n;1|47:85|3:161|42:128|4:164|6:130|3:161|3:161;n;17|15:136|16:137;19|15:165|16:166;17|15:131|16:167;p;1|3:168|4:169|6:124|3:168|3:168;13|1'
  1671. ..':170|37:153|38:154|39:103|40:32|41:104;n;1|1:84|3:105|42:106|4:171|5:172|43:173|6:158|13:8|7:8|3:105|3:105;n;3|8:174|44:175|24:113|25:114|26:91;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:'
  1672. ..'115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;p;15|1:120;16|1:121;p;p;20|47:85|11:21|4:176|5:177|6:178'
  1673. ..'|48:42|13:42|49:42|19:42|20:42|7:8;n;21|1:179;p;2|1:180;n;1|47:85|3:181|11:182|4:183|6:130|3:181|3:181;n;17|15:136|16:137;19|15:165|16:184;17|15:131|16:185;p;1|3:146|11:128|4:186|6:124|3:146|3:146;13|'
  1674. ..'1:187|37:188|38:189|39:103|40:32|41:104;n;1|1:84|3:146|4:190|5:191|43:192|6:193|13:8|7:8|3:146|3:146;n;3|8:194|44:104|24:113|26:91;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14'
  1675. ..'|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;p;15|1:120;n;15|1:195;p;16|1:121;p;p;2|1:196;n;2;n;1|47:85|3:146|42:2'
  1676. ..'1|4:197|5:149|6:124|3:146|3:146;n;17|15:125|16:198;p;1|47:85|3:199|42:128|4:200|5:177|6:130|3:199|3:199;n;17|15:131|16:201;p;p;13|1:202|37:153|38:154|39:103|40:32|41:104;n;15|1:120;1|1:84|3:105|42:106'
  1677. ..'|4:203|5:204|43:205|6:158|13:8|7:8|3:105|3:105;n;3|44:69|24:113|26:91;22|1:206|3:207|50:208|3:207|3:207;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;14|45:115|46:106;14|45:116|46:117;14|45:118|46'
  1678. ..':21;14|45:115|46:106;14|45:116|46:117;14|45:118|46:21;p;16|1:121;p;p;p;')
  1679. Model.Parent = script and script.Parent==workspace and script or workspace
  1680. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement