Advertisement
Animescapetower

Scythe of infinite singularity

Mar 18th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.47 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Script9 = Instance.new("Script")
  29. Script10 = Instance.new("Script")
  30. Script11 = Instance.new("Script")
  31. Sound12 = Instance.new("Sound")
  32. Decal13 = Instance.new("Decal")
  33. Sound14 = Instance.new("Sound")
  34. Sound15 = Instance.new("Sound")
  35. Sound16 = Instance.new("Sound")
  36. Sound17 = Instance.new("Sound")
  37. Attachment18 = Instance.new("Attachment")
  38. Attachment19 = Instance.new("Attachment")
  39. LocalScript20 = Instance.new("LocalScript")
  40. Sound21 = Instance.new("Sound")
  41. Animation22 = Instance.new("Animation")
  42. Animation23 = Instance.new("Animation")
  43. Animation24 = Instance.new("Animation")
  44. Script25 = Instance.new("Script")
  45. Animation26 = Instance.new("Animation")
  46. Script27 = Instance.new("Script")
  47. Script28 = Instance.new("Script")
  48. LocalScript29 = Instance.new("LocalScript")
  49. LocalScript30 = Instance.new("LocalScript")
  50. Folder31 = Instance.new("Folder")
  51. NumberValue32 = Instance.new("NumberValue")
  52. Script33 = Instance.new("Script")
  53. BindableEvent34 = Instance.new("BindableEvent")
  54. LocalScript35 = Instance.new("LocalScript")
  55. RemoteFunction36 = Instance.new("RemoteFunction")
  56. Animation37 = Instance.new("Animation")
  57. Animation38 = Instance.new("Animation")
  58. Animation39 = Instance.new("Animation")
  59. LocalScript40 = Instance.new("LocalScript")
  60. Script41 = Instance.new("Script")
  61. Sound42 = Instance.new("Sound")
  62. LocalScript43 = Instance.new("LocalScript")
  63. Tool0.Name = "Scythe Of Infinte Singularity"
  64. Tool0.Parent = mas
  65. Tool0.GripForward = Vector3.new(-1, -0, -0)
  66. Tool0.GripPos = Vector3.new(0.600000024, 0, -2)
  67. Tool0.GripRight = Vector3.new(0, 1, 0)
  68. Tool0.GripUp = Vector3.new(0, 0, 1)
  69. Tool0.ToolTip = "RAINBOW"
  70. Part1.Name = "Handle"
  71. Part1.Parent = Tool0
  72. Part1.BrickColor = BrickColor.new("Bright bluish green")
  73. Part1.Rotation = Vector3.new(-90, 0, 0)
  74. Part1.FormFactor = Enum.FormFactor.Custom
  75. Part1.Size = Vector3.new(2.51999784, 0.200000003, 6.0600009)
  76. Part1.CFrame = CFrame.new(4.00994921, 3.03003311, -18.1099739, 1, -2.86932411e-18, -1.03679744e-17, 1.03679761e-17, 5.36441803e-07, 0.999999881, -2.86931956e-18, -0.999999881, 5.36441803e-07)
  77. Part1.Color = Color3.new(0, 0.560784, 0.611765)
  78. Part1.Position = Vector3.new(4.00994921, 3.03003311, -18.1099739)
  79. Part1.Orientation = Vector3.new(-89.9700012, 0, 0)
  80. Part1.Color = Color3.new(0, 0.560784, 0.611765)
  81. SpecialMesh2.Parent = Part1
  82. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=50880202 "
  83. SpecialMesh2.Scale = Vector3.new(2.5, 2.5, 2.5)
  84. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  85. SpecialMesh2.Scale = Vector3.new(2.5, 2.5, 2.5)
  86. Sound3.Name = "BigSlash"
  87. Sound3.Parent = Part1
  88. Sound3.Pitch = 0.69999998807907
  89. Sound3.SoundId = "rbxassetid://186936370"
  90. Sound3.Volume = 1
  91. Sound4.Name = "Blood"
  92. Sound4.Parent = Part1
  93. Sound4.Pitch = 0.5
  94. Sound4.SoundId = "rbxassetid://96667969"
  95. Sound4.TimePosition = 0.05
  96. Sound4.Volume = 1
  97. Sound5.Name = "Hit"
  98. Sound5.Parent = Part1
  99. Sound5.Pitch = 0.5
  100. Sound5.SoundId = "rbxassetid://96667969"
  101. Sound5.TimePosition = 0.05
  102. Sound5.Volume = 2
  103. Sound6.Parent = Part1
  104. Sound6.SoundId = "rbxasset://sounds/SwordSlash.wav"
  105. Sound6.Volume = 1
  106. Sound7.Name = "Swing"
  107. Sound7.Parent = Part1
  108. Sound7.SoundId = "rbxassetid://169310429"
  109. Sound7.Volume = 1
  110. Sound8.Name = "SwingSpecial"
  111. Sound8.Parent = Part1
  112. Sound8.Pitch = 1.0759999752045
  113. Sound8.SoundId = "rbxassetid://821439273"
  114. Sound8.Volume = 3
  115. Script9.Name = "SpecialDamage"
  116. Script9.Parent = Part1
  117. Script9.Disabled = true
  118. table.insert(cors,sandbox(Script9,function()
  119. function onTouched(part)
  120. local h = part.Parent:findFirstChild("Humanoid")
  121. if h~=nil then
  122. h.Health = h.Health -30 -- plus 10 damage
  123. script.Disabled = true
  124. script.Parent.Hit:Play()
  125. -- script.Parent.Fire.Enabled = false
  126. if h.Health == 0 then
  127. print("Killed Player")
  128. end
  129. local m = math.random(1,11)
  130.  
  131. if m == 1 then -- bleeding effect
  132.  
  133. script.Parent.Blood:Play()
  134. print("Blood")
  135. h.Health = h.Health -5
  136. wait(1)
  137. print("-3 health")
  138. h.Health = h.Health -3
  139. wait(0.5)
  140. print("-3 health")
  141. h.Health = h.Health -3
  142. wait(0.5)
  143. print("-3 health")
  144. h.Health = h.Health -3
  145. wait(0.5)
  146. print("-3 health")
  147. h.Health = h.Health -3
  148. wait(0.5)
  149. print("-3 health")
  150. h.Health = h.Health -3
  151. wait(0.5)
  152. print("-3 health")
  153. h.Health = h.Health -3
  154. end
  155. if m == 2 then
  156. print("*Critical Hit*")
  157. h.Health = h.Health -40 -- Gives a damage boost
  158. script.Parent.BigSlash:Play()
  159.  
  160. end
  161. if m == 3 then
  162. print("Clean Cut")
  163. h.Health = h.Health -20
  164. h.PlatformStand = true
  165. h.WalkSpeed = 12
  166. h.JumpPower = 0
  167. wait(0.5)
  168. h.PlatformStand = false
  169. wait(9.5)
  170. h.JumpPower = 50
  171. h.WalkSpeed = 16
  172. end
  173. if m == 4 then
  174. print("Broken Armor")
  175. h.MaxHealth = 50
  176. wait()
  177. h.Health = h.Health -20
  178. wait(10)
  179. h.MaxHealth = 100
  180.  
  181. end
  182. if m == 5 then
  183. print("Hit")
  184. h.Health = h.Health -15
  185. end
  186. if m == 6 then
  187. h.Health = h.Health -10
  188. print("Hit")
  189. end
  190. if m == 7 then
  191. print("Hit")
  192. h.Health = h.Health -25
  193. end
  194. if m == 8 then
  195. print("Hit")
  196. h.Health = h.Health -20
  197. end
  198. if m == 9 then
  199. print("Broken Armor")
  200. h.MaxHealth = 50
  201. wait()
  202. h.Health = h.Health -20
  203. wait(10)
  204. h.MaxHealth = 100
  205.  
  206. end
  207. if m == 10 then
  208. script.Parent.Blood:Play()
  209. print("Blood")
  210. h.Health = h.Health -5
  211. wait(1)
  212. print("-3 health")
  213. h.Health = h.Health -3
  214. wait(0.5)
  215. print("-3 health")
  216. h.Health = h.Health -3
  217. wait(0.5)
  218. print("-3 health")
  219. h.Health = h.Health -3
  220. wait(0.5)
  221. print("-3 health")
  222. h.Health = h.Health -3
  223. wait(0.5)
  224. print("-3 health")
  225. h.Health = h.Health -3
  226. wait(0.5)
  227. print("-3 health")
  228. h.Health = h.Health -3
  229. end
  230. if m == 11 then
  231. print("Hit")
  232. h.Health = h.Health -15
  233. end
  234.  
  235.  
  236.  
  237. end
  238. end
  239.  
  240. script.Parent.Touched:connect(onTouched)
  241. end))
  242. Script10.Name = "SwordEffect"
  243. Script10.Parent = Part1
  244. table.insert(cors,sandbox(Script10,function()
  245. function onTouched(part)
  246. local h = part.Parent:findFirstChild("Humanoid")
  247. if h~=nil then
  248. h.Health = h.Health -20 -- plus 10 damage
  249. script.Disabled = true
  250. script.Parent.Hit:Play()
  251. -- script.Parent.Fire.Enabled = false
  252. if h.Health == 0 then
  253. print("Killed Player")
  254. end
  255. local m = math.random(1,11)
  256.  
  257. if m == 1 then -- bleeding effect
  258.  
  259. script.Parent.Blood:Play()
  260. print("Blood")
  261. h.Health = h.Health -5123
  262. wait(1)
  263. print("-3 health")
  264. h.Health = h.Health -3132
  265. wait(0.5)
  266. print("-3 health")
  267. h.Health = h.Health -3123
  268. wait(0.5)
  269. print("-3 health")
  270. h.Health = h.Health -3324
  271. wait(0.5)
  272. print("-3 health")
  273. h.Health = h.Health -3768
  274. wait(0.5)
  275. print("-3 health")
  276. h.Health = h.Health -3345
  277. wait(0.5)
  278. print("-3 health")
  279. h.Health = h.Health -38980
  280. end
  281. if m == 2 then
  282. print("*Critical Hit*")
  283. h.Health = h.Health -402343 -- Gives a damage boost
  284. script.Parent.BigSlash:Play()
  285.  
  286. end
  287. if m == 3 then
  288. print("Clean Cut")
  289. h.Health = h.Health -34
  290. h.PlatformStand = true
  291. h.WalkSpeed = 0
  292. h.JumpPower = 0
  293. wait(0.5)
  294. h.PlatformStand = false
  295. wait(9.5)
  296. h.JumpPower = 30
  297. h.WalkSpeed = 12
  298. end
  299. if m == 4 then
  300. print("Broken Armor")
  301. h.MaxHealth = 21
  302. wait()
  303. h.Health = h.Health -20
  304. wait(10)
  305. h.MaxHealth = 34
  306.  
  307. end
  308. if m == 5 then
  309. print("Hit")
  310. h.Health = h.Health -15
  311. end
  312. if m == 6 then
  313. h.Health = h.Health -10
  314. print("Hit")
  315. end
  316. if m == 7 then
  317. print("Hit")
  318. h.Health = h.Health -25
  319. end
  320. if m == 8 then
  321. print("Hit")
  322. h.Health = h.Health -20
  323. end
  324. if m == 9 then
  325. print("Broken Armor")
  326. h.MaxHealth = 50
  327. wait()
  328. h.Health = h.Health -20
  329. wait(10)
  330. h.MaxHealth = 100
  331.  
  332. end
  333. if m == 10 then
  334. script.Parent.Blood:Play()
  335. print("Blood")
  336. h.Health = h.Health -5
  337. wait(1)
  338. print("-3 health")
  339. h.Health = h.Health -3
  340. wait(0.5)
  341. print("-3 health")
  342. h.Health = h.Health -3
  343. wait(0.5)
  344. print("-3 health")
  345. h.Health = h.Health -3
  346. wait(0.5)
  347. print("-3 health")
  348. h.Health = h.Health -3
  349. wait(0.5)
  350. print("-3 health")
  351. h.Health = h.Health -3
  352. wait(0.5)
  353. print("-3 health")
  354. h.Health = h.Health -3
  355. end
  356. if m == 11 then
  357. print("Hit")
  358. h.Health = h.Health -15
  359. end
  360.  
  361.  
  362.  
  363. end
  364. end
  365.  
  366. script.Parent.Touched:connect(onTouched)
  367. end))
  368. Script11.Parent = Part1
  369. table.insert(cors,sandbox(Script11,function()
  370. while true do
  371. script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
  372. wait(0.4)
  373. end
  374.  
  375. end))
  376. Sound12.Name = "BOOM"
  377. Sound12.Parent = Part1
  378. Sound12.SoundId = "rbxassetid://156677028"
  379. Sound12.Volume = 0.69999998807907
  380. Sound12.Looped = true
  381. Decal13.Parent = Part1
  382. Decal13.Transparency = 0.64999997615814
  383. Decal13.Texture = "http://www.roblox.com/asset/?id=381637861"
  384. Decal13.Face = Enum.NormalId.Bottom
  385. Sound14.Name = "dash"
  386. Sound14.Parent = Part1
  387. Sound14.SoundId = "rbxassetid://25256253"
  388. Sound15.Name = "lunge"
  389. Sound15.Parent = Part1
  390. Sound15.SoundId = "rbxassetid://220833976"
  391. Sound15.Volume = 1
  392. Sound16.Name = "overhead"
  393. Sound16.Parent = Part1
  394. Sound16.SoundId = "rbxassetid://220834000"
  395. Sound16.Volume = 1
  396. Sound17.Name = "slash"
  397. Sound17.Parent = Part1
  398. Sound17.SoundId = "rbxassetid://220833967"
  399. Sound17.Volume = 1
  400. Attachment18.Parent = Part1
  401. Attachment18.Rotation = Vector3.new(0, 0, 90)
  402. Attachment18.CFrame = CFrame.new(0.199999988, 0.100000001, 2.12999988, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  403. Attachment18.Position = Vector3.new(0.199999988, 0.100000001, 2.12999988)
  404. Attachment18.Axis = Vector3.new(0, 1, 0)
  405. Attachment18.Orientation = Vector3.new(0, 0, 90)
  406. Attachment19.Parent = Part1
  407. Attachment19.Rotation = Vector3.new(0, 0, 90)
  408. Attachment19.CFrame = CFrame.new(0.579999983, 0.100000001, 0.0599999987, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  409. Attachment19.Position = Vector3.new(0.579999983, 0.100000001, 0.0599999987)
  410. Attachment19.Axis = Vector3.new(0, 1, 0)
  411. Attachment19.Orientation = Vector3.new(0, 0, 90)
  412. LocalScript20.Name = "Local Gui"
  413. LocalScript20.Parent = Tool0
  414. table.insert(cors,sandbox(LocalScript20,function()
  415. Tool = script.Parent
  416.  
  417. local stillEquipped = false
  418.  
  419. function onEquippedLocal(mouse)
  420. stillEquipped = true
  421. if mouse == nil then
  422. print("Mouse not found")
  423. return
  424. end
  425. while stillEquipped do
  426. print("Setting Mouse to go")
  427. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  428. while Tool.Enabled and stillEquipped do
  429. wait(0.01)
  430. end
  431. print("Setting Mouse to wait")
  432. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  433. while not Tool.Enabled and stillEquipped do
  434. wait(0.01)
  435. end
  436. end
  437. end
  438.  
  439.  
  440. function onUnequippedLocal()
  441. stillEquipped = false
  442. end
  443.  
  444. Tool.Equipped:connect(onEquippedLocal)
  445. Tool.Unequipped:connect(onUnequippedLocal)
  446. end))
  447. Sound21.Name = "EvilLaugh"
  448. Sound21.Parent = Tool0
  449. Sound21.Pitch = 1.1000000238419
  450. Sound21.SoundId = "rbxassetid://177528044"
  451. Sound21.Volume = 1
  452. Animation22.Name = "SlashAnim"
  453. Animation22.Parent = Tool0
  454. Animation22.AnimationId = "http://www.roblox.com/Asset?ID=27763344"
  455. Animation23.Name = "TwoHandAnim"
  456. Animation23.Parent = Tool0
  457. Animation23.AnimationId = "http://www.roblox.com/Asset?ID=27758613"
  458. Animation24.Name = "Slash"
  459. Animation24.Parent = Tool0
  460. Animation24.AnimationId = "rbxassetid://74897796"
  461. Script25.Name = "All animations"
  462. Script25.Parent = Animation24
  463. table.insert(cors,sandbox(Script25,function()
  464. while true do
  465. script.Parent.AnimationId="http://www.roblox.com/Asset?ID=74894663"
  466. wait(0.001)--Default swing1
  467. script.Parent.AnimationId="http://www.roblox.com/Asset?ID=74813494"
  468. wait(0.001)--Default swing2
  469. end
  470. end))
  471. Animation26.Name = "SwingAnim2"
  472. Animation26.Parent = Tool0
  473. Animation26.AnimationId = "rbxassetid://74897796"
  474. Script27.Name = "All animations"
  475. Script27.Parent = Animation26
  476. table.insert(cors,sandbox(Script27,function()
  477. while true do
  478. script.Parent.AnimationId="http://www.roblox.com/Asset?ID=86313418"
  479. wait(0.001)--Default swing1
  480. script.Parent.AnimationId="http://www.roblox.com/Asset?ID=86313260"
  481. wait(0.001)--Default swing2
  482. end
  483. end))
  484. Script28.Parent = Tool0
  485. table.insert(cors,sandbox(Script28,function()
  486. local Tool = script.Parent
  487. local Sword = Tool.Handle
  488.  
  489. local SlashV = script.Parent.Handle.Sound
  490.  
  491.  
  492. local myCharacter
  493. local myPlayer
  494. local myHumanoid
  495. local myTorso
  496. local myRightArm
  497. local myRightGrip
  498.  
  499. local debris = game:GetService("Debris")
  500. local runServ = game:GetService("RunService")
  501.  
  502. --local SlashSound = Instance.new("Sound")
  503. --.SoundId = "rbxasset://sounds\\SwordSlash.wav"
  504. --SlashSound.EmitterSize = 10
  505. --SlashSound.MaxDistance = 10000
  506. --SlashSound.Parent = Tool
  507. --SlashSound.Volume = 1
  508. --SlashSound.Pitch = 1
  509. local Whoosh1Sound
  510. local Whoosh2Sound
  511.  
  512. local SlashAnim
  513. local SpecialAnim
  514.  
  515. local lastAttackTime = 0
  516. local thisAttackTime
  517.  
  518. local TOUCH_DAMAGE = 0
  519. local SLASH_DAMAGE = 0
  520. --local SPECIAL_DAMAGE = 10
  521.  
  522. local damage = TOUCH_DAMAGE
  523.  
  524. local damageCo --Coroutine to ensure that slash damage actually gets applied sometimes.
  525.  
  526. Tool.Enabled = true
  527.  
  528. function tagHumanoid(humanoid, player)
  529. if humanoid ~= nil then
  530. creator = Instance.new("ObjectValue")
  531. creator.Name = "creator"
  532. creator.Value = player
  533. creator.Parent = humanoid
  534. debris:addItem(creator, 1)
  535. end
  536. end
  537.  
  538. function untagHumanoid(humanoid)
  539. if humanoid ~= nil then
  540. local creatorTag = humanoid:FindFirstChild("creator")
  541. if creatorTag then creatorTag:Remove() end
  542. end
  543. end
  544.  
  545. function blow(hit)
  546. if hit.Parent then
  547. local hitHumanoid = hit.Parent:FindFirstChild("Zombie")
  548. myCharacter = Tool.Parent
  549. myHumanoid = myCharacter:FindFirstChild("Zombie")
  550. myPlayer = game.Players:GetPlayerFromCharacter(myCharacter)
  551. if hitHumanoid ~= nil and myHumanoid ~= nil and myHumanoid ~= hitHumanoid then
  552. myRightArm = myCharacter:FindFirstChild("Right Arm")
  553. if myRightArm then
  554. myRightGrip = myRightArm:FindFirstChild("RightGrip")
  555. if myRightGrip and (myRightGrip.Part0 == Sword or myRightGrip.Part1 == Sword) then
  556. tagHumanoid(hitHumanoid, myPlayer)
  557. hitHumanoid:TakeDamage(damage)
  558. wait(1)
  559. untagHumanoid(hitHumanoid)
  560. end
  561. end
  562. end
  563. end
  564. end
  565.  
  566. function damageChanger()
  567. damage = SLASH_DAMAGE
  568. script.Parent.Handle.Sounds.Disabled = false
  569. wait(1)
  570. damage = TOUCH_DAMAGE
  571. script.Parent.Handle.Sounds.Disabled = true
  572. end
  573.  
  574. function slash()
  575. -- We actually want to recreate the coroutine every time, since otherwise we'd have multiple functions
  576. -- trying to switch back and forth between the different damages constantly if we slashed multiple
  577. -- times.
  578. damageCo = coroutine.create(damageChanger)
  579. coroutine.resume(damageCo)
  580.  
  581. --if Whoosh1Sound then Whoosh1Sound:Stop() end
  582. --if Whoosh2Sound then Whoosh2Sound:Stop() end
  583. --if SpecialAnim then SpecialAnim:Stop() end
  584.  
  585. if SlashV then SlashV:Play() end
  586. if SlashAnim then SlashAnim:Play() end
  587. -- script.Parent.Handle.Fire.Enabled = true
  588.  
  589. --Tool.GripUp = Vector3.new(0.707, 0, 0.707)
  590.  
  591. script.Parent.Handle.SwordEffect.Disabled = false
  592. script.Parent.Handle.Swing:Play()
  593.  
  594. wait(0.6)
  595. --script.Parent.Handle.Fire.Enabled = false
  596. Tool.GripUp = Vector3.new(0, 0, 1)
  597. script.Parent.Handle.SwordEffect.Disabled = true
  598. wait(0.5)
  599. end
  600.  
  601. --function special()
  602. --damageCo = nil
  603. --damage = SPECIAL_DAMAGE
  604.  
  605. --if SlashSound then SlashSound:Stop() end
  606. --if SlashAnim then SlashAnim:Stop() end
  607.  
  608. --if SpecialAnim then SpecialAnim:Play() end
  609.  
  610.  
  611. --wait(0.00001)
  612. --if Whoosh1Sound then Whoosh1Sound:Play() end
  613. --wait(.2)
  614. --if Whoosh2Sound then Whoosh2Sound:Play() end
  615. --wait(2)
  616.  
  617. --damage = TOUCH_DAMAGE
  618.  
  619. --end
  620.  
  621. function onActivated()
  622. -- Checking for double clicks is based on the sword standard.
  623.  
  624. -- Check that tool is enabled,
  625. if not Tool.Enabled then return end
  626. Tool.Enabled = false
  627. -- And that character has use of his right arm.
  628. myCharacter = Tool.Parent
  629. if not myCharacter then return end
  630. myHumanoid = myCharacter:FindFirstChild("Humanoid")
  631. if not myHumanoid then return end
  632. RightArm = myCharacter:FindFirstChild("Right Arm")
  633. if not RightArm then return end
  634.  
  635. -- Get the time, to determine whether it was a double click or not.
  636. thisAttackTime = runServ.Stepped:wait()
  637.  
  638. if (thisAttackTime - lastAttackTime < 0) then -- It was a double click.
  639. --SpecialAnim = myHumanoid:LoadAnimation(Tool.SlashNStabAttempt2)
  640. --Whoosh1Sound = Tool:FindFirstChild("Whoosh1")
  641. --Whoosh2Sound = Tool:FindFirstChild("Whoosh2")
  642. --special()
  643. else -- It was a single click.
  644. SlashAnim = myHumanoid:LoadAnimation(Tool.Slash)
  645. slash()
  646. end
  647.  
  648. lastAttackTime = thisAttackTime
  649. Tool.Enabled = true
  650. end
  651.  
  652. function onUnequipped()
  653. if SlashV then SlashV:Stop() end
  654. if SlashAnim then SlashAnim:Stop() end
  655. --if Whoosh1Sound then Whoosh1Sound:Stop() end
  656. --if Whoosh2Sound then Whoosh2Sound:Stop() end
  657. --if SpecialAnim then SpecialAnim:Stop() end
  658. end
  659.  
  660. Tool.Activated:connect(onActivated)
  661. Tool.Unequipped:connect(onUnequipped)
  662.  
  663. Sword.Touched:connect(blow)
  664.  
  665.  
  666. local down = Tool:WaitForChild("MouseDown")
  667. down.Event:connect(onActivated)
  668.  
  669. end))
  670. LocalScript29.Name = "Local Gui"
  671. LocalScript29.Parent = Tool0
  672. table.insert(cors,sandbox(LocalScript29,function()
  673. Tool = script.Parent
  674.  
  675. local stillEquipped = false
  676.  
  677. function onEquippedLocal(mouse)
  678. stillEquipped = true
  679. if mouse == nil then
  680. print("Mouse not found")
  681. return
  682. end
  683. while stillEquipped do
  684. print("Setting Mouse to go")
  685. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  686. while Tool.Enabled and stillEquipped do
  687. wait(0.01)
  688. end
  689. print("Setting Mouse to wait")
  690. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  691. while not Tool.Enabled and stillEquipped do
  692. wait(0.01)
  693. end
  694. end
  695. end
  696.  
  697.  
  698. function onUnequippedLocal()
  699. stillEquipped = false
  700. end
  701.  
  702. Tool.Equipped:connect(onEquippedLocal)
  703. Tool.Unequipped:connect(onUnequippedLocal)
  704. end))
  705. LocalScript30.Name = "Special"
  706. LocalScript30.Parent = Tool0
  707. LocalScript30.Disabled = true
  708. table.insert(cors,sandbox(LocalScript30,function()
  709. local Tool = script.Parent
  710. local Staff = Tool.Handle
  711.  
  712. local vCharacter
  713. local myHumanoid
  714.  
  715.  
  716. local animate
  717.  
  718. local slamAnim
  719. local swingAnim2
  720. function onEquipped(mouse)
  721. vCharacter = Tool.Parent
  722. myHumanoid = vCharacter:FindFirstChild("Humanoid")
  723.  
  724. if mouse then
  725. mouse.KeyDown:connect(function(key)
  726. if key:lower() == "q" and myHumanoid then
  727. animate = Tool:FindFirstChild("Animate")
  728. swingAnim2 = myHumanoid:LoadAnimation(Tool.SwingAnim2)
  729. if swingAnim2 then swingAnim2:Play() end
  730. Staff.SwingSpecial:Play()
  731. script.Settings.CoolDown.Value = script.Settings.CoolDown.Value -1
  732.  
  733. script.Timer.Disabled = false
  734. script.Disabled = true
  735. script.Parent.Handle.SpecialDamage.Disabled = false
  736.  
  737.  
  738.  
  739. lol = script.Parent.Parent.Torso
  740. lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 200 -- Foward Dash
  741. wait(0.1)
  742. lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 250 -- Foward Dash
  743. wait(0.1)
  744. lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 130 -- Foward Dash
  745. wait(0.1)
  746. lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 320 -- Foward Dash
  747. wait(0.1)
  748. lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 123 -- Foward Dash
  749. wait(0.1)
  750. lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 200 -- Foward Dash
  751. wait(0.1)
  752. script.Parent.Handle.SpecialDamage.Disabled = true
  753.  
  754.  
  755.  
  756. end
  757. end)
  758. end
  759. end
  760.  
  761. function onUnequipped()
  762. if slamAnim then slamAnim:Stop() end
  763. if swingAnim2 then swingAnim2:Stop() end
  764. end
  765.  
  766. Tool.Equipped:connect(onEquipped)
  767. Tool.Unequipped:connect(onUnequipped)
  768.  
  769. animate = Tool:FindFirstChild("Animate")
  770. while animate == nil do
  771. animate = Tool:FindFirstChild("Animate")
  772. wait()
  773. end
  774.  
  775. animate.Changed:connect(function()
  776. animate = Tool:FindFirstChild("Animate")
  777. if animate and animate.Value == 1 and myHumanoid then
  778. slamAnim = myHumanoid:LoadAnimation(Tool.SlamAnim)
  779. if slamAnim then slamAnim:Play() end
  780. myHumanoid.Jump = true
  781. wait(2.2)
  782. animate.Value = 0
  783. end
  784. end)
  785.  
  786. --Tool.GripUp = Vector3.new(0, 0.2, -0.8)
  787. --wait(0.0001)
  788. --Tool.GripUp = Vector3.new(0, 0.4, -0.6)
  789. --wait(0.0001)
  790. --Tool.GripUp = Vector3.new(0, 0.6, -0.4)
  791. --wait(0.0001)
  792. --Tool.GripUp = Vector3.new(0, 0.8, -0.2)
  793. --wait(0.0001)
  794. --Tool.GripUp = Vector3.new(0, 1, -0.0)
  795. --wait(0.0001)
  796. --Tool.GripUp = Vector3.new(0, 0.8, 0.2)
  797. --wait(0.0001)
  798. --Tool.GripUp = Vector3.new(0, 0.6, 0.4)
  799. --wait(0.0001)
  800. --Tool.GripUp = Vector3.new(0, 0.4, 0.6)
  801. -- wait(0.0001)
  802. -- Tool.GripUp = Vector3.new(0, 0.2, 0.8)
  803. -- wait(0.0001)
  804. -- Tool.GripUp = Vector3.new(0, 0.0, 1)
  805. -- wait(0.0001)
  806. -- Tool.GripUp = Vector3.new(0.0, -0.2, 0.8)
  807. -- wait(0.0001)
  808. -- Tool.GripUp = Vector3.new(0, -0.4, 0.6)
  809. -- wait(0.0001)
  810. -- Tool.GripUp = Vector3.new(0.0, -0.6, 0.4)
  811. -- wait(0.0001)
  812. -- Tool.GripUp = Vector3.new(0, -0.8, 0.2)
  813. -- wait(0.0001)
  814. -- Tool.GripUp = Vector3.new(0.0, -1, 0.0)
  815. -- wait(0.0001)
  816. -- Tool.GripUp = Vector3.new(0, -0.8, -0.2)
  817. -- wait(0.0001)
  818. -- Tool.GripUp = Vector3.new(0, -0.6, -0.4)
  819. -- wait(0.0001)
  820. -- Tool.GripUp = Vector3.new(0, -0.4, -0.6)
  821. -- wait(0.0001)
  822. -- Tool.GripUp = Vector3.new(0, -0.2, -0.8)
  823. -- wait(0.0001)
  824. -- Tool.GripUp = Vector3.new(0, 0, -1)
  825. -- wait(0.0001)
  826.  
  827. --Full loop around
  828.  
  829. end))
  830. Folder31.Name = "Settings"
  831. Folder31.Parent = LocalScript30
  832. NumberValue32.Name = "CoolDown"
  833. NumberValue32.Parent = Folder31
  834. Script33.Name = "Timer"
  835. Script33.Parent = LocalScript30
  836. table.insert(cors,sandbox(Script33,function()
  837. while true do
  838. wait(1)
  839. script.Parent.Parent.Special.Disabled = false
  840. script.Parent.Settings.CoolDown.Value = script.Parent.Settings.CoolDown.Value +1
  841.  
  842. wait(6)
  843. end
  844.  
  845.  
  846. end))
  847. BindableEvent34.Name = "MouseDown"
  848. BindableEvent34.Parent = Tool0
  849. LocalScript35.Name = "DestinyScript"
  850. LocalScript35.Parent = Tool0
  851. table.insert(cors,sandbox(LocalScript35,function()
  852. -- Judgement --
  853. -- Grim Repear FTW --
  854. local Tool = script.Parent
  855. local Scythe = Tool.Handle
  856.  
  857. r = game:GetService("RunService")
  858.  
  859. Tool.Enabled = true
  860.  
  861. local vCharacter
  862.  
  863. local damage = 546
  864.  
  865. local scytheAOE = Vector3.new(22.5, 22.5, 22.5)
  866.  
  867. local chars = {}
  868. local foundChar
  869. local slashAnim
  870.  
  871. local lastKeyDown = 0
  872. local dashTime = 0
  873. local lastSlash = 0
  874.  
  875. local keyConnection = nil
  876.  
  877. local laughSound
  878.  
  879. local torsoFrame = {}
  880.  
  881. local co = nil
  882.  
  883. math.randomseed(1234)
  884.  
  885. local SlashSound = Instance.new("Sound")
  886. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  887. SlashSound.Parent = Scythe
  888. SlashSound.Volume = 1.0
  889.  
  890.  
  891. function tagHumanoid(humanoid, player)
  892. if humanoid ~= nil then
  893. creatorTag = Instance.new("ObjectValue")
  894. creatorTag.Name = "creator"
  895. creatorTag.Value = player
  896. creatorTag.Parent = humanoid
  897. end
  898. end
  899.  
  900. function untagHumanoid(humanoid)
  901. if humanoid ~= nil then
  902. tag = humanoid:FindFirstChild("creator")
  903. if tag ~= nil then
  904. tag:Remove()
  905. end
  906. end
  907. end
  908.  
  909. function blow(hit)
  910. tempDamage = lunge_damage
  911. local humanoid = hit.Parent:findFirstChild("Humanoid")
  912. local vCharacter = Tool.Parent
  913. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  914. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  915. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  916. -- final check, make sure sword is in-hand
  917. local right_arm = vCharacter:FindFirstChild("Right Arm")
  918. if (right_arm ~= nil) then
  919. local joint = right_arm:FindFirstChild("RightGrip")
  920. if (joint ~= nil and (joint.Part0 == Scythe or joint.Part1 == Scythe)) then
  921. tagHumanoid(humanoid, vPlayer)
  922. humanoid:TakeDamage(damage)
  923. wait(1)
  924. untagHumanoid(humanoid)
  925. end
  926. end
  927. end
  928. end
  929.  
  930. function slashIt(myHumanoid, myTorso)
  931.  
  932. damage = 15
  933.  
  934. laughSound = Tool:FindFirstChild("EvilLaugh")
  935. if laughSound then laughSound:Play() end
  936.  
  937.  
  938. myHumanoid.WalkSpeed = 0.0
  939.  
  940. Tool.GripForward = Vector3.new(-0.5977, -0.6567, 0.4599)
  941. Tool.GripRight = Vector3.new(-0.7395, 0.6731, 0)
  942. Tool.GripUp = Vector3.new(0.3096, 0.3041, 0.888)
  943.  
  944. parts = game.Workspace:FindPartsInRegion3(Region3.new(myTorso.Position - scytheAOE, myTorso.Position + scytheAOE), vCharacter, 100)
  945. for i = 1, #parts do
  946. tempChar = parts[i].Parent
  947. tempTorso = tempChar:FindFirstChild("Torso")
  948. if tempTorso then
  949. if tempTorso:FindFirstChild("scytheBV") == nil then
  950. newBV = Instance.new("BodyVelocity")
  951. newBV.Name = "scytheBV"
  952. newBV.P = 100000
  953. newBV.maxForce = Vector3.new(newBV.P, newBV.P, newBV.P)
  954. distance = (tempTorso.Position - myTorso.Position).magnitude
  955. print(distance)
  956. newBV.velocity = (myTorso.Position - tempTorso.Position).unit * 30/distance
  957. newBV.Parent = tempTorso
  958. end
  959. end
  960. end
  961.  
  962. bg = Instance.new("BodyGyro")
  963. bg.P = 100000
  964. bg.maxTorque = Vector3.new(bg.P, bg.P, bg.P)
  965. bg.Name = "BG"
  966.  
  967. torsoFrame[1] = myTorso.CFrame * CFrame.Angles(0, 1*math.pi/3, 0)
  968. torsoFrame[2] = myTorso.CFrame * CFrame.Angles(0, 2*math.pi/3, 0)
  969. torsoFrame[3] = myTorso.CFrame * CFrame.Angles(0, math.pi, 0)
  970. torsoFrame[4] = myTorso.CFrame * CFrame.Angles(0, 4*math.pi/3, 0)
  971. torsoFrame[5] = myTorso.CFrame * CFrame.Angles(0, 5*math.pi/3, 0)
  972. torsoFrame[6] = myTorso.CFrame
  973.  
  974. bg.Parent = myTorso
  975.  
  976. for i = 1, 84 do
  977. c = i%6 + 1
  978. bg.cframe = torsoFrame[c]
  979. wait(0.025)
  980. end
  981.  
  982. for i = 1, #parts do
  983. sBV = parts[i]:FindFirstChild("scytheBV")
  984. if sBV then sBV:Remove() end
  985. end
  986.  
  987. Tool.GripForward = Vector3.new(-1, 0, 0)
  988. Tool.GripRight = Vector3.new(0, 1, 0)
  989. Tool.GripUp = Vector3.new(0, 0, 1)
  990.  
  991. bg:Remove()
  992. myHumanoid.WalkSpeed = 16.0
  993.  
  994. wait(5.5)
  995. damage = 22.0
  996.  
  997. end
  998.  
  999. function initiateScythe(key)
  1000. key = key:lower()
  1001. if key == "p" then
  1002. print("CHECKING")
  1003. t = r.Stepped:wait()
  1004. if (t - lastKeyDown < 0.2) then dashTime = t end
  1005. lastKeyDown = t
  1006. end
  1007. end
  1008.  
  1009.  
  1010. function onActivated()
  1011. if Tool.Enabled == false then
  1012. return
  1013. end
  1014.  
  1015. Tool.Enabled = false
  1016. vCharacter = Tool.Parent
  1017. myTorso = vCharacter:FindFirstChild("Torso")
  1018. if myTorso == nil then
  1019. return
  1020. end
  1021.  
  1022. myHumanoid = vCharacter:FindFirstChild("Humanoid")
  1023. if myHumanoid == nil then
  1024. return
  1025. end
  1026.  
  1027. slashAnim = myHumanoid:LoadAnimation(Tool.SlashAnim)
  1028.  
  1029.  
  1030. children = vCharacter:GetChildren()
  1031. for i =1, #children do
  1032. if children[i].className == "Part" then
  1033. children[i].Transparency = 0.5
  1034. end
  1035. if children[i].className == "Hat" then
  1036. children[i].Handle.Transparency = 0.5
  1037.  
  1038. end
  1039. end
  1040.  
  1041. t = r.Stepped:wait()
  1042. if t - dashTime < 0.2 then
  1043. print("Slashing")
  1044. slashIt(myHumanoid, myTorso)
  1045. else
  1046. if slashAnim then slashAnim:Play() end
  1047. if SlashSound then SlashSound:Play() end
  1048. end
  1049.  
  1050. wait(1.0)
  1051.  
  1052. Tool.Enabled = true
  1053.  
  1054. end
  1055.  
  1056. function onEquipped(mouse)
  1057. vCharacter = Tool.Parent
  1058. myHumanoid = vCharacter:FindFirstChild("Humanoid")
  1059. if myHumanoid then
  1060. twoHandAnim = myHumanoid:LoadAnimation(Tool.TwoHandAnim)
  1061. if twoHandAnim then twoHandAnim:Play() end
  1062. end
  1063.  
  1064. if mouse then
  1065. keyConnection = mouse.KeyDown:connect(initiateScythe)
  1066. else
  1067. print("No Mouse")
  1068. end
  1069. script.Parent.EvilLaugh:Play()
  1070. script.Parent.Handle.BOOM:Play()
  1071. end
  1072.  
  1073. function onUnequipped()
  1074.  
  1075. Tool.Enabled = true
  1076.  
  1077. if slashAnim then slashAnim:Stop() end
  1078. if laughSound then laughSound:Stop() end
  1079. if SlashSound then SlashSound:Stop() end
  1080.  
  1081. if twoHandAnim then twoHandAnim:Stop() end
  1082.  
  1083. myHumanoid = vCharacter:FindFirstChild("Humanoid")
  1084. script.Parent.Handle.BOOM:Stop()
  1085. script.Parent.EvilLaugh:Stop()
  1086. myTorso = vCharacter:FindFirstChild("Torso")
  1087. if myTorso then
  1088. bg = myTorso:FindFirstChild("BG")
  1089. bv = myTorso:FindFirstChild("BV")
  1090. if bg then bg:Remove() end
  1091. if bv then bv:Remove() end
  1092. end
  1093.  
  1094. if myHumanoid then myHumanoid.WalkSpeed = 16.0 end
  1095.  
  1096. end
  1097.  
  1098. Tool.Activated:connect(onActivated)
  1099. Tool.Equipped:connect(onEquipped)
  1100. Tool.Unequipped:connect(onUnequipped)
  1101.  
  1102. Scythe.Touched:connect(blow)
  1103.  
  1104.  
  1105.  
  1106.  
  1107. end))
  1108. RemoteFunction36.Parent = Tool0
  1109. Animation37.Name = "thrustAnim"
  1110. Animation37.Parent = Tool0
  1111. Animation37.AnimationId = "rbxassetid://94161333"
  1112. Animation38.Name = "slashAnim"
  1113. Animation38.Parent = Tool0
  1114. Animation38.AnimationId = "rbxassetid://94161088"
  1115. Animation39.Name = "overheadAnim"
  1116. Animation39.Parent = Tool0
  1117. Animation39.AnimationId = "http://www.roblox.com/Asset?ID=94160738"
  1118. LocalScript40.Name = "SwordControl"
  1119. LocalScript40.Parent = Tool0
  1120. table.insert(cors,sandbox(LocalScript40,function()
  1121. wait()
  1122. local player=game.Players.LocalPlayer
  1123. local character=player.Character
  1124. local mouse=player:GetMouse()
  1125. local myhum=character.Humanoid
  1126.  
  1127. local tool=script.Parent
  1128. local handle=tool.Handle
  1129.  
  1130. local sword=handle:Clone()
  1131.  
  1132. local event=tool:WaitForChild("RemoteFunction")
  1133. local damage=42000 --damage dealt
  1134. local speed=2 --how fast the weapon is
  1135. local charge=false --can the weapon charge??
  1136. local auto=true --can the weapon swing automatically?
  1137.  
  1138. local equipped=false
  1139. local clicked=false
  1140. local animations={}
  1141. local sounds={}
  1142.  
  1143. local debris=game:GetService("Debris")
  1144.  
  1145. tool.Equipped:connect(function()
  1146. animations[1]=myhum:LoadAnimation(tool.slashAnim)
  1147. animations[2]=myhum:LoadAnimation(tool.thrustAnim)
  1148. animations[3]=myhum:LoadAnimation(tool.overheadAnim)
  1149. sounds[1]=handle.slash
  1150. sounds[2]=handle.lunge
  1151. sounds[3]=handle.overhead
  1152. equipped=true
  1153. end)
  1154.  
  1155. tool.Unequipped:connect(function()
  1156. for i,animation in pairs(animations) do
  1157. animation:Stop()
  1158. end
  1159. equipped=false
  1160. end)
  1161.  
  1162. handle.Touched:connect(function(part)
  1163. local hum=part.Parent:FindFirstChild("Humanoid")
  1164. local head=part.Parent:FindFirstChild("Head")
  1165. local hitplayer=game.Players:GetPlayerFromCharacter(part.Parent)
  1166. if clicked and hum~=nil and head~=nil then
  1167. if hum.Health>0 then
  1168. if hitplayer~=nil then
  1169. if hitplayer.TeamColor~=player.TeamColor and hitplayer:FindFirstChild("nopvp")==nil and player:FindFirstChild("nopvp")==nil then
  1170. event:InvokeServer("hit",{hum,damage})
  1171. end
  1172. else
  1173. event:InvokeServer("hit",{hum,damage})
  1174. end
  1175. end
  1176. end
  1177. end)
  1178.  
  1179. local soundstage=1
  1180. local animstage=1
  1181. local chargeready=true
  1182. local down=false
  1183. local ready=true
  1184.  
  1185. mouse.Button1Down:connect(function()
  1186. down=true
  1187. while down and tool.Parent.ClassName=="Model" do
  1188. local mytorso=character:FindFirstChild("Torso")
  1189. if mytorso then
  1190. delay(0,function()
  1191. if clicked then
  1192. if chargeready and charge then
  1193. chargeready=false
  1194. --charging
  1195. local chargeforce=Instance.new('BodyVelocity',mytorso)
  1196. chargeforce.Name="ChargeVelocity"
  1197. chargeforce.maxForce=Vector3.new(100000, 100000, 100000)
  1198. chargeforce.velocity=(mouse.Hit.p*Vector3.new(1,0,1)-mytorso.CFrame.p*Vector3.new(1,0,1)).unit*150
  1199. mytorso.CFrame=CFrame.new(mytorso.CFrame.p,mytorso.CFrame.p+chargeforce.velocity)
  1200. debris:AddItem(chargeforce,0.2)
  1201. wait(1/speed)
  1202. chargeready=true
  1203. if clicked then
  1204. handle.dash:Play()
  1205. end
  1206. end
  1207. end
  1208. end)
  1209. wait()
  1210. if clicked==false then
  1211. sounds[soundstage]:Play()
  1212. animations[animstage]:Play()
  1213. animations[animstage]:AdjustSpeed(speed)
  1214. clicked=true
  1215.  
  1216. spawn(function()
  1217. local target
  1218. local closest=120
  1219. for _,instance in pairs(workspace:GetChildren()) do
  1220. local hum=instance:FindFirstChild("Humanoid")
  1221. local head=instance:FindFirstChild("Head")
  1222. if hum and head and instance~=character then
  1223. local dist=(head.Position-handle.Position).magnitude
  1224. if hum.Health>0 and dist<closest then
  1225. local hitplayer=game.Players:GetPlayerFromCharacter(instance)
  1226. if hitplayer~=nil then
  1227. if hitplayer.TeamColor~=player.TeamColor and hitplayer:FindFirstChild("nopvp")==nil and player:FindFirstChild("nopvp")==nil then
  1228. target=head
  1229. closest=dist
  1230. end
  1231. else
  1232. target=head
  1233. closest=dist
  1234. end
  1235. end
  1236. end
  1237. end
  1238.  
  1239. if target then
  1240. for i=10,20 do
  1241. spawn(function() event:InvokeServer("meteor",{damage,target}) end)
  1242. wait(.5/speed)
  1243. end
  1244. end
  1245. end)
  1246.  
  1247. wait(1/speed)
  1248. if soundstage==3 then soundstage=1 else soundstage=soundstage+1 end
  1249. clicked=false
  1250. if animstage==3 then animstage=1 else animstage=animstage+1 end
  1251. else
  1252. break
  1253. end
  1254. end
  1255. if not auto then break end
  1256. end
  1257. end)
  1258.  
  1259. mouse.Button1Up:connect(function()
  1260. down=false
  1261. end)
  1262. end))
  1263. Script41.Name = "ServerMain"
  1264. Script41.Parent = Tool0
  1265. table.insert(cors,sandbox(Script41,function()
  1266. local tool=script.Parent
  1267. local handle=tool.Handle
  1268.  
  1269. local remotefunction=tool.RemoteFunction
  1270. local debris=game:GetService("Debris")
  1271.  
  1272. function hit(humanoid,damage,player)
  1273. humanoid:TakeDamage(damage)
  1274. local hitmark=Instance.new("Decal")
  1275. hitmark.Texture="rbxassetid://263842702"
  1276. script.Hit:Play()
  1277. wait(0.6)
  1278. hitmark:Destroy()
  1279. for _,instance in pairs(humanoid:GetChildren()) do
  1280. if instance.Name=="creator" then
  1281. instance:Destroy()
  1282. end
  1283. end
  1284. local creator=Instance.new("ObjectValue",humanoid)
  1285. creator.Name="creator"
  1286. creator.Value=player
  1287. end
  1288.  
  1289. function remotefunction.OnServerInvoke(player,command,value)
  1290. if command=="hit" then
  1291. hit(value[1],value[2],player)
  1292. elseif command=="trip" then
  1293. value.CFrame=value.CFrame*CFrame.Angles(0,0,math.rad(180))+Vector3.new(0,3,0)
  1294. elseif command=="meteor" then
  1295. local meteor=Instance.new("Part")
  1296. meteor.Name="meteor"
  1297. meteor.TopSurface="Smooth"
  1298. meteor.BottomSurface="Smooth"
  1299. meteor.Size=Vector3.new(4,4,4)
  1300. meteor.CanCollide=false
  1301. meteor.Shape="Ball"
  1302. meteor.BrickColor=BrickColor.Random()
  1303. meteor.Material="Neon"
  1304. meteor.CFrame=CFrame.new(handle.Position+Vector3.new(math.random(-10,10),20,math.random(-10,10)))
  1305. meteor.Parent=workspace
  1306.  
  1307. local rocketpropulsion=Instance.new("RocketPropulsion",meteor)
  1308. rocketpropulsion.TargetRadius=5
  1309. rocketpropulsion.MaxSpeed=1500
  1310. rocketpropulsion.MaxTorque=Vector3.new(40,40,0)
  1311. rocketpropulsion.MaxThrust=5000
  1312. rocketpropulsion.ThrustP=100
  1313. rocketpropulsion.ThrustD=5
  1314. rocketpropulsion.Target=value[2]
  1315. rocketpropulsion:Fire()
  1316.  
  1317. rocketpropulsion.ReachedTarget:connect(function(part)
  1318. if value[2].Parent then
  1319. local hum=value[2].Parent:FindFirstChild("Humanoid")
  1320. local hitplayer=game.Players:GetPlayerFromCharacter(value[2].Parent)
  1321. if hum~=nil then
  1322. if hum.Health>0 then
  1323. if hitplayer~=nil then
  1324. if hitplayer.TeamColor~=player.TeamColor and hitplayer:FindFirstChild("nopvp")==nil and player:FindFirstChild("nopvp")==nil then
  1325. hit(hum,value[1],player)
  1326. end
  1327. else
  1328. hit(hum,value[1],player)
  1329. end
  1330. end
  1331. meteor:Destroy()
  1332. end
  1333. end
  1334. end)
  1335.  
  1336. debris:AddItem(meteor,999999999999999999)
  1337. end
  1338. end
  1339.  
  1340. end))
  1341. Sound42.Name = "Hit"
  1342. Sound42.Parent = Script41
  1343. Sound42.SoundId = "rbxassetid://160432334"
  1344. LocalScript43.Name = "MouseIcon"
  1345. LocalScript43.Parent = Tool0
  1346. table.insert(cors,sandbox(LocalScript43,function()
  1347. local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
  1348. local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
  1349.  
  1350. local Tool = script.Parent
  1351.  
  1352. local Mouse = nil
  1353.  
  1354. local function UpdateIcon()
  1355. if Mouse then
  1356. Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
  1357. end
  1358. end
  1359.  
  1360. local function OnEquipped(mouse)
  1361. Mouse = mouse
  1362. UpdateIcon()
  1363. end
  1364.  
  1365. local function OnChanged(property)
  1366. if property == 'Enabled' then
  1367. UpdateIcon()
  1368. end
  1369. end
  1370.  
  1371. Tool.Equipped:connect(OnEquipped)
  1372. Tool.Changed:connect(OnChanged)
  1373.  
  1374. end))
  1375. for i,v in pairs(mas:GetChildren()) do
  1376. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1377. pcall(function() v:MakeJoints() end)
  1378. end
  1379. mas:Destroy()
  1380. for i,v in pairs(cors) do
  1381. spawn(function()
  1382. pcall(v)
  1383. end)
  1384. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement