idkllal

Untitled

Apr 13th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.22 KB | None | 0 0
  1. -----------------------------------------------------------------------
  2. Players = game:GetService("Players")
  3.  
  4. me = Players['FearlessDarklord2233']
  5. char = me.Character
  6.  
  7. Toolname = "Tanto"
  8. Modelname = "Tanto"
  9.  
  10. selected = false
  11. effect = false
  12. hurt = false
  13. debounce = true
  14. able = true
  15. charge = false
  16. soundable = true
  17. cancharge = true
  18. cam = game.Workspace.CurrentCamera
  19.  
  20. surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  21.  
  22. New = {
  23. Gyro = function(P)
  24. local bg = Instance.new("BodyGyro", P)
  25. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  26. bg.P = 14000
  27. return bg
  28. end,
  29. Position = function(P)
  30. local bp = Instance.new("BodyPosition", P)
  31. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  32. bp.P = 14000
  33. return bp
  34. end,
  35. Force = function(P)
  36. local bf = Instance.new("BodyForce", P)
  37. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  38. return bf
  39. end,
  40. Sound = function(P, ID, vol, pitch)
  41. local s = Instance.new("Sound")
  42. s.SoundId = ID
  43. s.Volume = vol
  44. s.Pitch = pitch
  45. s.Parent = P
  46. return s
  47. end
  48. }
  49.  
  50. torso = char.Torso
  51. neck = torso.Neck
  52. human = char.Humanoid
  53. Rarm = char["Right Arm"]
  54. Larm = char["Left Arm"]
  55. Rleg = char["Right Leg"]
  56. Lleg = char["Left Leg"]
  57.  
  58. Sounds = {
  59. slash = "rbxasset://sounds//swordslash.wav",
  60. unsheath = "rbxasset://sounds//unsheath.wav",
  61. hitsound = "http://www.roblox.com/asset/?id=2801263", --0.5
  62. charge = "http://www.roblox.com/asset/?id=2101137", --0.5
  63. boom = "http://www.roblox.com/asset/?id=2691586", --0.3
  64. bewm = "http://www.roblox.com/asset/?id=2760979", --0.3
  65. splat = "http://roblox.com/asset/?id=10209590"
  66. }
  67.  
  68. function EnableSound(time)
  69. coroutine.resume(coroutine.create(function()
  70. wait(time)
  71. soundable = true
  72. end))
  73. end
  74.  
  75. function PlaySound(soundname, pitch)
  76. if soundable then
  77. soundable = false
  78. local s = New.Sound(torso, Sounds[soundname], 0.5, pitch)
  79. s.PlayOnRemove = true
  80. if pitch < 0 then
  81. coroutine.resume(coroutine.create(function()
  82. s.Looped = true
  83. s.PlayOnRemove = false
  84. wait()
  85. s:Play()
  86. wait(.2)
  87. s.Looped = false
  88. wait()
  89. s:remove()
  90. end))
  91. else
  92. coroutine.resume(coroutine.create(function()
  93. wait()
  94. s:remove()
  95. s.Looped=false
  96. end))
  97. end
  98. EnableSound(0.12)
  99. return s
  100. end
  101. end
  102.  
  103. function Weld(p0, p1, x, y, z, a, b, c)
  104. local w = Instance.new("Weld")
  105. w.Parent = p0
  106. w.Part0 = p0
  107. w.Part1 = p1
  108. w.C1 = CFrame.new(x, y, z) * CFrame.Angles(a, b, c)
  109. return w
  110. end
  111.  
  112. function Part(parent, anchor, collide, tran, ref, color, x, y, z, Break, lifetime)
  113. local p = Instance.new("Part")
  114. p.formFactor = "Custom"
  115. p.Anchored = anchor
  116. p.CanCollide = collide
  117. p.Transparency = tran
  118. p.Reflectance = ref
  119. p.BrickColor = BrickColor.new(color)
  120. for _, Surf in pairs(surfaces) do
  121. p[Surf] = "Smooth"
  122. end
  123. p.Size = Vector3.new(x, y, z)
  124. if Break then
  125. p:BreakJoints()
  126. else
  127. p:MakeJoints()
  128. end
  129. p.Parent = parent
  130. p.Locked = true
  131. if lifetime then
  132. game:GetService("Debris"):AddItem(p, lifetime)
  133. end
  134. return p
  135. end
  136.  
  137. function getHum(c)
  138. local h = nil
  139. for i,v in pairs(c:GetChildren()) do
  140. if v:IsA("Humanoid") and c ~= char then
  141. if v.Health > 0 then
  142. h = v
  143. end
  144. end
  145. end
  146. return h
  147. end
  148.  
  149. for i, v in pairs(char:children()) do
  150. if v.Name == Modelname then
  151. v:remove()
  152. end
  153. end
  154.  
  155. for i, v in pairs(me.Backpack:GetChildren()) do
  156. if v.Name == Toolname then
  157. v:remove()
  158. end
  159. end
  160.  
  161. Mo = Instance.new("Model")
  162. Mo.Name = Modelname
  163.  
  164. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  165. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  166. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  167. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  168. gripBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  169. Weld(Rarm, gripBrick, 0, 1, 0, 0, 0, 0)
  170.  
  171. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  172. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  173. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  174. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  175.  
  176. TH = Weld(Rleg, nil, -0.6, 0, 0, math.pi/6, 0, 0)
  177.  
  178. RABW2 = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  179. LABW2 = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  180. RLBW2 = Weld(RLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  181. LLBW2 = Weld(LLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  182.  
  183. handle = Part(Mo, false, false, 0, 0, "Really black", 0.2, 0.8, 0.3, true)
  184. handle.Name = "Handle"
  185. Instance.new("BlockMesh", handle).Scale = Vector3.new(0.8, 1, 0.8)
  186.  
  187. guard = Part(Mo, false, false, 0, 0, "Really black", 0.35, 0.2, 0.45, true)
  188. guard.Name = "Guard"
  189. Instance.new("BlockMesh", guard).Scale = Vector3.new(0.8, 0.5, 0.8)
  190.  
  191. blade = Part(Mo, false, false, 0, 0.1, "Lime green", 0.2, 1.15, 0.3, true)
  192. blade.Name = "Blade"
  193. Instance.new("BlockMesh", blade).Scale = Vector3.new(0.1, 1, 0.8)
  194.  
  195. bladetip = Part(Mo, false, false, 0, 0.1, "Lime green", 0.2, 0.3, 0.3, true)
  196. bladetip.Name = "Tip"
  197. bladetipmesh = Instance.new("SpecialMesh", bladetip)
  198. bladetipmesh.MeshType = "Wedge"
  199. bladetipmesh.Scale = Vector3.new(0.1, 1, 0.8)
  200.  
  201. sheath = Part(Mo, false, false, 0, 0, "Really black", 0.3, 1.5, 0.4, true)
  202. sheath.Name = "Sheath"
  203. Instance.new("BlockMesh", sheath)
  204.  
  205. sheathweld = Weld(sheath, blade, 0, 0.23, 0, math.pi, 0, 0)
  206. grip = Weld(gripBrick, nil, 0, 0, 0, -math.pi/2, 0, 0)
  207. Weld(handle, guard, 0, -0.4, 0, 0, 0, 0)
  208. Weld(guard, blade, 0, -0.575, 0, 0, 0, 0)
  209. Weld(blade, bladetip, 0, -0.725, 0, 0, 0, 0)
  210.  
  211. Mo.Parent = char
  212. TH.Part1 = sheath
  213.  
  214. if not script.Parent:IsA("HopperBin") then
  215. bin = Instance.new("HopperBin", me.Backpack)
  216. bin.Name = Toolname
  217. script.Parent = bin
  218. end
  219.  
  220. function dmg(hum, dm1, dm2)
  221. local dmg = math.random(dm1, dm2)
  222. local ko = Instance.new("ObjectValue", hum)
  223. ko.Name = "creator"
  224. ko.Value = me
  225. hum.Health = hum.Health - dmg
  226. coroutine.resume(coroutine.create(function()
  227. wait()
  228. ko:remove()
  229. end))
  230. for i = 0, dmg/5 do
  231. local blood = Part(workspace, false, false, 0, 0, "Really red", 0.2, 0.2, 0.2, true)
  232. blood.CFrame = hum.Parent.Torso.CFrame
  233. blood.RotVelocity = Vector3.new(math.random(-10,10), math.random(-10,10), math.random(-10,10))
  234. blood.Velocity = Vector3.new(math.random(-20,20), math.random(5,20), math.random(-20,20))
  235. --Instance.new("SpecialMesh", blood).MeshType = "Sphere"
  236. coroutine.resume(coroutine.create(function()
  237. for i = 0, 3, 0.1 do
  238. --blood.SpecialMesh.Scale = Vector3.new(1 - i, 1 - i, 1 - i)
  239. blood.Transparency = i / 3
  240. wait()
  241. end
  242. end))
  243. end
  244. return dmg
  245. end
  246.  
  247. function unsheath()
  248. PlaySound("unsheath", 2)
  249. coroutine.resume(coroutine.create(function()
  250. for i = 0, 90, 15 do
  251. RABW2.C1 = CFrame.new(0, 0.5, math.sin(i/29)/6) * CFrame.Angles(-math.rad(i), 0, 0)
  252. wait()
  253. end
  254. wait()
  255. RABW2.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(-math.rad(90), 0, 0)
  256. end))
  257. coroutine.resume(coroutine.create(function()
  258. wait()
  259. wait()
  260. for i = 0, 180, 30 do
  261. for _, v in pairs(game.Workspace:GetChildren()) do
  262. if getHum(v)~=nil then
  263. if v:findFirstChild("Torso")~=nil then
  264. if (v.Torso.Position - blade.Position).magnitude < 2 then
  265. local hum = getHum(v)
  266. dmg(hum, 4, 6)
  267. PlaySound("splat", 1.2)
  268. end
  269. end
  270. end
  271. end
  272. wait()
  273. end
  274. end))
  275. wait()
  276. wait()
  277. sheathweld.Part1 = nil
  278. grip.Part1 = handle
  279. for i = 0, -180, -30 do
  280. wait()
  281. grip.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(i) - math.rad(90), 0, 0) --(math.sin(i/59)/6)
  282. end
  283. end
  284.  
  285. function sheath()
  286. PlaySound("unsheath", -2)
  287. coroutine.resume(coroutine.create(function()
  288. for i = 90, 0, -15 do
  289. RABW2.C1 = CFrame.new(0, 0.5, math.sin(i/29)/6) * CFrame.Angles(-math.rad(i), 0, 0)
  290. wait()
  291. end
  292. end))
  293. coroutine.resume(coroutine.create(function()
  294. for i = -180, 0, 30 do
  295. grip.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(i) - math.rad(90), 0, 0) --(math.sin(i/59)/6)
  296. wait()
  297. end
  298. end))
  299. coroutine.resume(coroutine.create(function()
  300. wait()
  301. wait()
  302. for i = 0, 180, 30 do
  303. for _, v in pairs(game.Workspace:GetChildren()) do
  304. if getHum(v)~=nil then
  305. if v:findFirstChild("Torso")~=nil then
  306. if (v.Torso.Position - blade.Position).magnitude < 2 then
  307. local hum = getHum(v)
  308. dmg(hum, 3, 5)
  309. PlaySound("splat", 1.2)
  310. end
  311. end
  312. end
  313. end
  314. wait()
  315. end
  316. end))
  317. for i = 90, 30, -15 do
  318. wait()
  319. end
  320. grip.Part1 = nil
  321. sheathweld.Part1 = blade
  322. end
  323.  
  324. function freeze(m)
  325. local trg = m.Target
  326. if (trg==nil) then return end
  327. local phit = game.Players:findFirstChild(trg.Parent.Name)
  328. if (phit~=nil) then
  329. if (phit==p) then return end
  330. local char = trg.Parent
  331. if (char:findFirstChild("Torso")==nil) then return end
  332. if (char:findFirstChild("fr_block")==nil) then
  333. local pa = Instance.new("Part")
  334. local bl = Instance.new("BlockMesh")
  335. bl.Parent = pa
  336. pa.Anchored = true
  337. pa.Name = "fr_block"
  338. pa.Transparency = 1
  339. pa.BrickColor = BrickColor.New("Lime green")
  340. pa.FormFactor = "Custom"
  341. pa.Size = Vector3.new(6,7,6)
  342. pa.CFrame = char["Torso"].CFrame
  343. pa.Parent = char
  344. char.Humanoid.WalkSpeed = 0
  345. if (char.Humanoid.Health<char.Humanoid.MaxHealth/4) then
  346. char.Humanoid.Health = 0
  347. else
  348. char.Humanoid.Health = char.Humanoid.Health - char.Humanoid.MaxHealth/4
  349. end
  350. local g = char:GetChildren()
  351. for i = 1,#g do
  352. if (g[i]:IsA("Part")) then
  353. g[i].Anchored = true
  354. g[i].Reflectance = .3
  355. end
  356. end
  357. for i = 1,10 do
  358. pa.Transparency = pa.Transparency - .06
  359. pa.Reflectance = pa.Reflectance + .01
  360. wait(.01)
  361. end
  362. else
  363. if (phit~=nil) then
  364. local fr = char["fr_block"]
  365. local char = trg.Parent
  366. for i = 1,10 do
  367. fr.Transparency = fr.Transparency + .06
  368. fr.Reflectance = fr.Reflectance - .01
  369. wait(.01)
  370. end
  371. local g = char:GetChildren()
  372. for i = 1,#g do
  373. if (g[i]:IsA("Part")) then
  374. g[i].Anchored = false
  375. g[i].Reflectance = 0
  376. end
  377. end
  378. char.Humanoid.WalkSpeed = 16
  379. fr:remove()
  380. end
  381. end
  382. end
  383. end
  384.  
  385. function explode(m)
  386. local t = m.Hit.p
  387. local trg = m.Target
  388. if (trg==nil) then return end
  389. local e = Instance.new("Explosion")
  390. e.BlastRadius = 20
  391. e.BlastPressure = 20
  392. e.Position = t
  393. e.Parent = game.Workspace
  394. end
  395.  
  396. function fire(m)
  397. local trg = m.Target
  398. if (trg==nil) then return end
  399. local phit = game.Players:findFirstChild(trg.Parent.Name)
  400. if (phit~=nil) then
  401. local char = trg.Parent
  402. if (char:findFirstChild("Torso")==nil) then return end
  403. local f = Instance.new("Fire")
  404. f.Color = Color3.new(0,0,0)
  405. f.SecondaryColor = Color3.new(0,5,0)
  406. f.Parent = char.Torso
  407. f.Name = "BurnFire"
  408. coroutine.resume(coroutine.create(function()
  409. while (char.Humanoid.Health>0) do
  410. if (char.Humanoid.Health<2) then
  411. char.Humanoid.Health = 0
  412. char:BreakJoints()
  413. else
  414. char.Humanoid.Health = char.Humanoid.Health - 2
  415. end
  416. wait(.05)
  417. end
  418. end))
  419. end
  420. end
  421.  
  422. function ghost()
  423. local player = game.Players.LocalPlayer
  424. if player == nil then return end
  425. player.Character:findFirstChild("Head").Transparency = 1
  426. player.Character:findFirstChild("Torso").Transparency = 1
  427. player.Character:findFirstChild("Left Arm").Transparency = 1
  428. player.Character:findFirstChild("Right Arm").Transparency = 1
  429. player.Character:findFirstChild("Left Leg").Transparency = 1
  430. player.Character:findFirstChild("Right Leg").Transparency = 1
  431. player.Character:findFirstChild("Head").face.Transparency = 1
  432. player.Character:findFirstChild("Tanto").Blade.Transparency = 1
  433. player.Character:findFirstChild("Tanto").Guard.Transparency = 1
  434. player.Character:findFirstChild("Tanto").Handle.Transparency = 1
  435. player.Character:findFirstChild("Tanto").Sheath.Transparency = 1
  436. player.Character:findFirstChild("Tanto").Tip.Transparency = 1
  437. ---------------------------------------Useless--
  438. player.Character:findFirstChild("Wolf Squire").Handle.Transparency = 1
  439. player.Character:findFirstChild("Scarf01").Handle.Transparency = 1
  440. end
  441.  
  442. function unghost()
  443. local player = game.Players.LocalPlayer
  444. if player == nil then return end
  445. player.Character:findFirstChild("Head").Transparency = 0
  446. player.Character:findFirstChild("Torso").Transparency = 0
  447. player.Character:findFirstChild("Left Arm").Transparency = 0
  448. player.Character:findFirstChild("Right Arm").Transparency = 0
  449. player.Character:findFirstChild("Left Leg").Transparency = 0
  450. player.Character:findFirstChild("Right Leg").Transparency = 0
  451. player.Character:findFirstChild("Head").face.Transparency = 0
  452. player.Character:findFirstChild("Tanto").Blade.Transparency = 0
  453. player.Character:findFirstChild("Tanto").Guard.Transparency = 0
  454. player.Character:findFirstChild("Tanto").Handle.Transparency = 0
  455. player.Character:findFirstChild("Tanto").Handle.Transparency = 0
  456. player.Character:findFirstChild("Tanto").Sheath.Transparency = 0
  457. player.Character:findFirstChild("Tanto").Tip.Transparency = 0
  458. ---Uselessssssss---------------------------
  459. player.Character:findFirstChild("Wolf Squire").Handle.Transparency = 0
  460. player.Character:findFirstChild("Scarf01").Handle.Transparency = 0
  461. end
  462.  
  463. function slash()
  464. PlaySound("slash", math.random(1750,2000)/1000)
  465. coroutine.resume(coroutine.create(function()
  466. for i = 90, 0, -30 do
  467. RABW2.C1 = CFrame.new(0, 0.5, math.sin(i/29)/6) * CFrame.Angles(-math.rad(i), 0, 0)
  468. wait()
  469. end
  470. for i = 0, 90, 30 do
  471. RABW2.C1 = CFrame.new(0, 0.5, math.sin(i/29)/6) * CFrame.Angles(-math.rad(i), 0, 0)
  472. wait()
  473. end
  474. end))
  475.  
  476. for i = 0, 180, 30 do
  477. for _, v in pairs(game.Workspace:GetChildren()) do
  478. if getHum(v)~=nil then
  479. if v:findFirstChild("Torso")~=nil then
  480. if (v.Torso.Position - blade.Position).magnitude < 2 then
  481. local hum = getHum(v)
  482. dmg(hum, 3, 5)
  483. PlaySound("splat", 1)
  484. end
  485. end
  486. end
  487. end
  488. wait()
  489. end
  490. end
  491.  
  492. function stab()
  493. coroutine.resume(coroutine.create(function()
  494. for i = 0.5, -0.3, -0.1 do
  495. RABW2.C1 = CFrame.new(0, i, 0) * CFrame.Angles(-math.rad(90), 0, 0)
  496. wait()
  497. end
  498. for i = 180, 270, 30 do
  499. grip.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(i) - math.rad(90), 0, 0) --(math.sin(i/59)/6)
  500. wait()
  501. end
  502. wait(0.1)
  503. PlaySound("slash", math.random(1700,1900)/1000)
  504. for i = -0.25, 0.5, 0.25 do
  505. RABW2.C1 = CFrame.new(0, i, 0) * CFrame.Angles(-math.rad(90), 0, 0)
  506. wait()
  507. end
  508. for i = 270, 180, -10 do
  509. grip.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(i) - math.rad(90), 0, 0) --(math.sin(i/59)/6)
  510. wait()
  511. end
  512. end))
  513. for i = -0.3, 0.5, 0.1 do
  514. wait()
  515. end
  516. for i = 180, 270, 30 do
  517. wait()
  518. end
  519. for i = 0, 0.5, 0.25 do
  520. for _, v in pairs(game.Workspace:GetChildren()) do
  521. if getHum(v)~=nil then
  522. if v:findFirstChild("Torso")~=nil then
  523. if (v.Torso.Position - blade.Position).magnitude < 2 then
  524. local hum = getHum(v)
  525. dmg(hum, 10, 15)
  526. --PlaySound("hitsound", 1.2)
  527. PlaySound("splat", 0.6)
  528. end
  529. end
  530. end
  531. end
  532. wait()
  533. end
  534. for i = 180, 270, 30 do
  535. for _, v in pairs(game.Workspace:GetChildren()) do
  536. if getHum(v)~=nil then
  537. if v:findFirstChild("Torso")~=nil then
  538. if (v.Torso.Position - blade.Position).magnitude < 2 then
  539. local hum = getHum(v)
  540. dmg(hum, 1, 1)
  541. end
  542. end
  543. end
  544. end
  545. wait()
  546. end
  547. end
  548.  
  549. function TeleportZ(pos)
  550.  
  551. char:MoveTo(pos)
  552.  
  553. end
  554.  
  555. function slice()
  556. coroutine.resume(coroutine.create(function()
  557. for i = 0, 60, 15 do
  558. RABW2.C1 = CFrame.new(.3, math.sin(i/29)/6 + .1, 0) * CFrame.Angles(-math.rad(90), math.rad(i), 0)
  559. wait()
  560. end
  561. wait(.1)
  562. PlaySound("slash", math.random(1700,1900)/1000)
  563. wait(.1)
  564. for i = 60, -60, -30 do
  565. RABW2.C1 = CFrame.new(.25, math.sin(i/29)/6 + 1, 0) * CFrame.Angles(-math.rad(90), math.rad(i), 0)
  566. wait()
  567. end
  568. end))
  569. coroutine.resume(coroutine.create(function()
  570. for i = 180, 270, 30 do
  571. grip.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(i) - math.rad(90), -math.rad(i), 0) --(math.sin(i/59)/6)
  572. wait()
  573. end
  574. end))
  575. for i = 0, 150, 15 do
  576. wait()
  577. end
  578. for i = 0, 180, 30 do
  579. for _, v in pairs(game.Workspace:GetChildren()) do
  580. if getHum(v)~=nil then
  581. if v:findFirstChild("Torso")~=nil then
  582. if (v.Torso.Position - blade.Position).magnitude < 2 then
  583. local hum = getHum(v)
  584. dmg(hum, 45, 60 - (v.Torso.Position - blade.Position).magnitude * 5)
  585. PlaySound("hitsound", 1.5)
  586. end
  587. end
  588. end
  589. end
  590. wait()
  591. end
  592. wait(.3)
  593. for i = -60, 0, 30 do
  594. RABW2.C1 = CFrame.new(0, math.sin(i/29)/6 + 0.5, 0) * CFrame.Angles(-math.rad(90), math.rad(i), 0)
  595. wait()
  596. end
  597. for i = 270, 180, -30 do
  598. grip.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(i) - math.rad(90), 0, 0) --(math.sin(i/59)/6)
  599. wait()
  600. end
  601. end
  602.  
  603. function select(mouse)
  604. RABW2.Part1 = Rarm
  605. LABW2.Part1 = nil
  606. RLBW2.Part1 = nil
  607. LLBW2.Part1 = nil
  608. unsheath()
  609. mouse.Button1Down:connect(function()
  610. if able then
  611. able = false
  612. slash(mouse.Hit.p)
  613. able = true
  614. end
  615. end)
  616. mouse.KeyDown:connect(function(key)
  617. if able then
  618. key = key:lower()
  619. if key == "z" then
  620. able = false
  621. slash(mouse.Hit.p)
  622. able = true
  623. elseif key == "x" then
  624. able = false
  625. stab(mouse.Hit.p)
  626. able = true
  627. elseif key=='t' then
  628. if mouse.Target ~= nil then
  629. able = false
  630. TeleportZ(mouse.Hit.p)
  631. able = true
  632. end
  633. elseif key == "c" then
  634. able = false
  635. slice(mouse.Hit.p)
  636. able = true
  637. elseif key == "v" then
  638. freeze(mouse)
  639. elseif key == "b" then
  640. explode(mouse)
  641. elseif key == "n" then
  642. fire(mouse)
  643. elseif key == "m" then
  644. ghost()
  645. elseif key == "f" then
  646. unghost()
  647. end
  648. end
  649. end)
  650. end
  651.  
  652. function deselect()
  653. sheath()
  654. RABW2.Part1 = nil
  655. LABW2.Part1 = nil
  656. RLBW2.Part1 = nil
  657. LLBW2.Part1 = nil
  658. end
  659.  
  660. bin.Selected:connect(select)
  661. bin.Deselected:connect(deselect)
Add Comment
Please, Sign In to add comment