Advertisement
Supremacyy

modified noob bat

Feb 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.72 KB | None | 0 0
  1. Plrs = game:GetService("Players")
  2.  
  3. GuitarColour = "Navy blue"
  4.  
  5.  
  6. me = Plrs.LocalPlayerchar = me.Character
  7. Modelname = "xGuitar"
  8. Toolname = "Guitar"
  9. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  10. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  11. selected = false
  12. Hurt = false
  13. Deb = true
  14. Able = true
  15. Prop = {Damage = 99999999999999999999999999999999}
  16. volume = 100
  17.  
  18. ToolIcon = ""
  19. MouseIc = ""
  20. MouseDo = ""
  21.  
  22. Add = {
  23. Sphere = function(P)
  24. local m = Instance.new("SpecialMesh",P)
  25. m.MeshType = "Sphere"
  26. return m
  27. end,
  28. BF = function(P)
  29. local bf = Instance.new("BodyForce",P)
  30. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  31. return bf
  32. end,
  33. BP = function(P)
  34. local bp = Instance.new("BodyPosition",P)
  35. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  36. bp.P = 99999
  37. return bp
  38. end,
  39. BG = function(P)
  40. local bg = Instance.new("BodyGyro",P)
  41. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  42. bg.P = 99999
  43. return bg
  44. end,
  45. Mesh = function(P, ID, x, y, z)
  46. local m = Instance.new("SpecialMesh")
  47. m.MeshId = ID
  48. m.Scale = Vector3.new(x, y, z)
  49. m.Parent = P
  50. return m
  51. end,
  52. Sound = function(P, ID, vol, pitch)
  53. local s = Instance.new("Sound")
  54. s.SoundId = ID
  55. s.Volume = vol
  56. s.Pitch = pitch
  57. s.Parent = P
  58. return s
  59. end
  60. }
  61.  
  62. function find(tab, arg)
  63. local ah = nil
  64. for i,v in pairs(tab) do
  65. if v == arg then
  66. ah = v
  67. end
  68. end
  69. return ah
  70. end
  71.  
  72. function getAllParts(from)
  73. local t = {}
  74. function getParts(where)
  75. for i, v in pairs(where:children()) do
  76. if v:IsA("BasePart") then
  77. if v.Parent ~= char and v.Parent.Parent ~= char then
  78. table.insert(t, v)
  79. end
  80. end
  81. getParts(v)
  82. end
  83. end
  84. getParts(workspace)
  85. return t
  86. end
  87.  
  88. function RayCast(pos1, pos2, maxDist, forward)
  89. local list = getAllParts(workspace)
  90. local pos0 = pos1
  91. for dist = 1, maxDist, forward do
  92. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  93. for _, v in pairs(list) do
  94. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  95. local s = v.Size
  96. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide == true then
  97. return pos0, v
  98. end
  99. end
  100. end
  101. return pos0, nil
  102. end
  103.  
  104. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  105. local p = Instance.new("Part")
  106. p.formFactor = "Custom"
  107. p.Anchored = Anchor
  108. p.CanCollide = Collide
  109. p.Transparency = Tran
  110. p.Reflectance = Ref
  111. p.BrickColor = BrickColor.new(Color)
  112. for _, Surf in pairs(Surfaces) do
  113. p[Surf] = "Smooth"
  114. end
  115. p.Size = Vector3.new(X, Y, Z)
  116. if Break then
  117. p:BreakJoints()
  118. else p:MakeJoints() end
  119. p.Parent = Parent
  120. return p
  121. end
  122.  
  123. function Weld(p0, p1, x, y, z, a, b, c)
  124. local w = Instance.new("Weld")
  125. w.Parent = p0
  126. w.Part0 = p0
  127. w.Part1 = p1
  128. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  129. return w
  130. end
  131.  
  132. function ComputePos(pos1, pos2)
  133. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  134. return CFrame.new(pos1, pos3)
  135. end
  136.  
  137. function getHumanoid(c)
  138. local h = nil
  139. for i,v in pairs(c:children()) 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. torso = char.Torso
  156. neck = torso.Neck
  157. hum = char.Humanoid
  158. Rarm = char["Right Arm"]
  159. Larm = char["Left Arm"]
  160. Rleg = char["Right Leg"]
  161. Lleg = char["Left Leg"]
  162.  
  163. hc = Instance.new("Humanoid")
  164. hc.Health = 0
  165. hc.MaxHealth = 0
  166.  
  167. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  168. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  169. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  170. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  171. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  172. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  173. GSound = Add.Sound(nil, "http://www.roblox.com/asset/?id=1089403", 0.75, 1)
  174.  
  175. function PlaySound(sound, pitch, vol)
  176. local s = sound:clone()
  177. if pitch ~= nil then
  178. if tonumber(pitch) then
  179. s.Pitch = tonumber(pitch)
  180. end
  181. end
  182. if vol ~= nil then
  183. if tonumber(vol) then
  184. s.Volume = tonumber(vol)
  185. end
  186. end
  187. s.Parent = torso
  188. s.PlayOnRemove = true
  189. coroutine.resume(coroutine.create(function()
  190. wait()
  191. s:remove()
  192. end))
  193. end
  194.  
  195. Mo = Instance.new("Model")
  196. Mo.Name = Modelname
  197.  
  198. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  199. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  200. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  201. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  202.  
  203. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  204. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  205. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  206. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  207.  
  208. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  209. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  210. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  211. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  212.  
  213. HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  214. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  215. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  216.  
  217. TH = Weld(torso, nil, -0.8, 0.4, -0.4, 0, math.pi/2, math.rad(80))
  218. THMain = TH.C1
  219.  
  220. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  221. NeckStand = necko * CFrame.Angles(math.rad(17), 0, math.rad(35))
  222.  
  223. handle = Part(Mo, false, false, 0, 0, GuitarColour, 0.6, 1.5, 1.5, true)
  224. handle.Name = "Handle"
  225.  
  226. handletip1 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  227. local w1 = Weld(handle, handletip1, 0, 1.12, 0, 0, 0, 0)
  228. w1.C0 = CFrame.Angles(math.rad(-45), 0, 0)
  229. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.65, 0.45, 0.65)
  230.  
  231. handletip2 = Part(Mo, false, false, 0, 0.2, "Dark grey", 0.5, 0.5, 0.5, true)
  232. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  233. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.65, 0.35, 0.65)
  234.  
  235. for i = 45, 360+45-90, 90 do
  236. local p = Part(Mo, false, false, 0, 0, GuitarColour, 0.7, 0.9, 0.6, true)
  237. local w = Weld(handle, p, 0, 0, 0, 0, 0, 0)
  238. w.C0 = CFrame.Angles(0, math.pi/2, math.rad(i))
  239. w.C1 = CFrame.new(-1, 0, 0) * CFrame.Angles(0, 0, math.pi/4)
  240. end
  241.  
  242. for i = 0, 40, 40 do
  243. local p = Part(Mo, false, false, 0, 0, "Really black", 0.2, 0.2, 0.2, true)
  244. Add.Mesh(p, "http://www.roblox.com/asset/?id=1033714", 0.14, 0.12, 0.14)
  245. local w = Weld(handle, p, 0, -0.35, -0.7, 0, 0, math.pi/2)
  246. w.C0 = CFrame.Angles(math.rad(i+130), 0, 0)
  247. local p2 = Part(Mo, false, false, 0, 0, "Black", 0.2, 0.2, 0.2, true)
  248. Instance.new("CylinderMesh",p2).Scale = Vector3.new(1, 0.7, 1)
  249. Weld(p, p2, 0, -0.04, 0, 0, 0, 0)
  250. end
  251.  
  252. fretboard = Part(Mo, false, false, 0, 0, "Black", 0.45, 2.6, 0.6, true)
  253. Weld(handle, fretboard, -0.1, -1.95, 0, math.pi/4, 0, 0)
  254.  
  255. for i = 0, 2.48, 2.48/10 do
  256. local asd = (1*i)
  257. local p = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 0.55, 0.2, true)
  258. Instance.new("CylinderMesh",p).Scale = Vector3.new(0.3, 1, 0.3)
  259. Weld(fretboard, p, -0.21, 0, -1.1+asd, math.pi/2, 0, 0)
  260. end
  261.  
  262. Strings = {}
  263. for i = -0.24, 0.24, 0.48/6 do
  264. local p = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 3.7, 0.2, true)
  265. Instance.new("CylinderMesh",p).Scale = Vector3.new(0.06, 1, 0.06)
  266. local w = Weld(fretboard, p, -0.25, 0.75, i+0.04, 0, 0, 0)
  267. table.insert(Strings, {p, w})
  268. end
  269.  
  270. for i = -20, 20, 20 do
  271. local asd = (20+i)/60
  272. local p = Part(Mo, false, false, 0, 0, "White", 0.2, 0.3, 0.6, true)
  273. Instance.new("BlockMesh",p).Scale = Vector3.new(1, 0.5, 1)
  274. local w = Weld(fretboard, p, 0, 0, 0, 0, 0, 0)
  275. w.C0 = CFrame.new(0.11, -1.5-asd, 0)
  276. w.C1 = CFrame.Angles(math.rad(i), 0, 0)
  277. for x = -0.18, 0.18, 0.18 do
  278. local p2 = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 0.2, 0.2, true)
  279. Instance.new("CylinderMesh",p2).Scale = Vector3.new(0.5, 0.3, 0.5)
  280. Weld(p, p2, 0, -0.08, x, 0, 0, math.pi/2)
  281. end
  282. end
  283.  
  284. stringattach = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 0.2, 0.8, true)
  285. Instance.new("BlockMesh",stringattach)
  286. Weld(fretboard, stringattach, -0.13, 2.55, 0, 0, 0, 0)
  287.  
  288. vibra = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 0.32, 0.2, true)
  289. Instance.new("SpecialMesh",vibra).Scale = Vector3.new(0.35, 1, 0.35)
  290. VW = Weld(stringattach, vibra, 0, -0.15, 0, 0, 0, 0)
  291. VW.C0 = CFrame.new(0, 0, -0.36) * CFrame.Angles(0, 0, math.rad(-75))
  292.  
  293. vibra2 = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 0.62, 0.2, true)
  294. Instance.new("SpecialMesh",vibra2).Scale = Vector3.new(0.35, 1, 0.35)
  295. vwz = Weld(vibra, vibra2, 0, -0.29, 0, 0, 0, 0)
  296. vwz.C0 = CFrame.new(0, 0.15, 0) * CFrame.Angles(0, 0, math.rad(70))
  297.  
  298. vibra3 = Part(Mo, false, false, 0, 0, GuitarColour, 0.2, 0.3, 0.2, true)
  299. Add.Sphere(vibra3).Scale = Vector3.new(0.55, 1, 0.55)
  300. Weld(vibra2, vibra3, 0, -0.25, 0, 0, 0, 0)
  301.  
  302. stringat2 = Part(Mo, false, false, 0, 0, "Dark grey", 0.2, 0.2, 0.7, true)
  303. Instance.new("BlockMesh",stringat2).Scale = Vector3.new(1, 0.3, 1)
  304. Weld(stringattach, stringat2, -0.02, 0, 0, 0, 0, 0)
  305.  
  306. for i = -0.2, 0.21, 0.4/5 do
  307. local p = Part(Mo, false, false, 0, 0, "Mid gray", 0.2, 0.2, 0.2, true)
  308. Instance.new("BlockMesh",p).Scale = Vector3.new(1, 0.8, 0.2)
  309. Weld(stringat2, p, -0.01, 0, i, 0, 0, 0)
  310. end
  311.  
  312. stringattach2 = Part(Mo, false, false, 0, 0, GuitarColour, 0.45, 1.2, 0.62, true)
  313. local wdz = Weld(fretboard, stringattach2, 0, 0, 0, 0, 0, math.rad(8))
  314. wdz.C0 = CFrame.new(0.1, 1.7, 0)
  315.  
  316. for i = 0, 180, 180 do
  317. local p = Part(Mo, false, false, 0, 0, GuitarColour, 0.45, 1.2, 0.62, true)
  318. Instance.new("SpecialMesh",p).MeshType = "Wedge"
  319. local w = Weld(stringattach2, p, 0, 0, -0.21, math.rad(20), 0, math.pi)
  320. w.C0 = CFrame.new(0, 0.4, 0) * CFrame.Angles(0, math.rad(i), 0)
  321. for x = -0.4, 0.2, 0.3 do
  322. local asd = -0.15 + (i/600)
  323. local p2 = Part(Mo, false, false, 0, 0, "Dark grey", 0.2, 0.2, 0.2, true)
  324. local w2 = Weld(p, p2, 0, 0, 0, 0, 0, math.pi/2)
  325. w2.C0 = CFrame.new(asd, x, 0.15)
  326. Instance.new("CylinderMesh",p2)
  327. local p3 = Part(Mo, false, false, 0, 0, "Medium grey", 0.2, 0.3, 0.2, true)
  328. Instance.new("CylinderMesh",p3).Scale = Vector3.new(0.8, 1, 0.8)
  329. Weld(p2, p3, 0, 0, 0, 0, 0, 0)
  330. end
  331. end
  332.  
  333. for i = -0.6, 0.61, 1.2 do
  334. local p = Part(Mo, false, false, 0, 0, "Really black", 0.5, 2.8, 0.2, true)
  335. Weld(torso, p, 0, 0, i, 0, 0, math.rad(-40))
  336. local p2 = Part(Mo, false, false, 0, 0, "Really black", 0.5, 0.2, 1.1, true)
  337. Weld(torso, p2, -i*1.4, i*1.75, 0, 0, 0, 0)
  338.  
  339. end
  340. Mo.Parent = char
  341. TH.Part1 = handle
  342.  
  343. if script.Parent.className ~= "HopperBin" then
  344. h = Instance.new("HopperBin",me.Backpack)
  345. h.Name = Toolname
  346. h.TextureId = ToolIcon
  347. script.Parent = h
  348. end
  349.  
  350. bin = script.Parent
  351.  
  352. function detach(bool)
  353. LLW.C0 = CFrame.new(0, 0, 0)
  354. RLW.C0 = CFrame.new(0, 0, 0)
  355. LAW.C0 = CFrame.new(0,0,0)
  356. RAW.C0 = CFrame.new(0, 0, 0)
  357. if bool then
  358. LLW.Part1 = nil
  359. RLW.Part1 = nil
  360. RAW.Part1 = nil
  361. LAW.Part1 = nil
  362. end
  363. end
  364.  
  365. function attach()
  366. RAW.Part1 = Rarm
  367. LAW.Part1 = Larm
  368. RLW.Part1 = Rleg
  369. LLW.Part1 = Lleg
  370. end
  371.  
  372. function normal()
  373. neck.C0 = NeckStand
  374. RAW.C0 = RAWStand
  375. LAW.C0 = LAWStand
  376. RLW.C0 = RLWStand
  377. LLW.C0 = LLWStand
  378. RAW.C1 = CFrame.new(0, 0.5, 0)
  379. LAW.C1 = CFrame.new(0, 0.5, 0)
  380. RLW.C1 = CFrame.new(0, 0.8, 0)
  381. LLW.C1 = CFrame.new(0, 0.8, 0)
  382. HW.C0 = HWStand
  383. end
  384.  
  385. function selectanim()
  386. RAW.Part1 = Rarm
  387. for i = 0.09, 1, 0.09 do
  388. TH.C0 = CFrame.Angles(0, math.rad(90*i), 0)
  389. TH.C1 = THMain * CFrame.Angles(0, 0, math.rad(-30*i)) * CFrame.new(0, 0.3*i, -0.1*i)
  390. RAW.C0 = CFrame.Angles(math.rad(110*i), 0, math.rad(10*i)) * CFrame.new(0, 0, -0.3*i)
  391. neck.C0 = necko * CFrame.Angles(math.rad(5*i), 0, math.rad(-35*i))
  392. wait()
  393. end
  394. LAW.Part1 = Larm
  395. for i = 0.1, 1, 0.1 do
  396. TH.C0 = CFrame.Angles(0, math.rad(90+90*i), 0)
  397. TH.C1 = THMain * CFrame.Angles(math.rad(15*i), 0, math.rad(-30-30*i)) * CFrame.new(0, 0.3+0.2*i, -0.1)
  398. RAW.C0 = CFrame.Angles(math.rad(110-65*i), 0, math.rad(10-30*i)) * CFrame.new(0, -0.5*i, -0.3-0.2*i)
  399. LAW.C0 = CFrame.Angles(math.rad(75*i), math.rad(-15*i), math.rad(-10*i)) * CFrame.new(0, -0.2*i, 0)
  400. neck.C0 = necko * CFrame.Angles(math.rad(5+12*i), 0, math.rad(-35+70*i))
  401. wait()
  402. end
  403. if RAWStand == nil then
  404. RAWStand = RAW.C0
  405. LAWStand = LAW.C0
  406. RLWStand = RLW.C0
  407. LLWStand = LLW.C0
  408. HWStand = HW.C0
  409. end
  410. normal()
  411. end
  412.  
  413. function deselanim()
  414. for i = 0.9, 0, -0.1 do
  415. TH.C0 = CFrame.Angles(0, math.rad(90+90*i), 0)
  416. TH.C1 = THMain * CFrame.Angles(math.rad(15*i), 0, math.rad(-30-30*i)) * CFrame.new(0, 0.3+0.2*i, -0.1)
  417. RAW.C0 = CFrame.Angles(math.rad(110-65*i), 0, math.rad(10-30*i)) * CFrame.new(0, -0.5*i, -0.3-0.2*i)
  418. LAW.C0 = CFrame.Angles(math.rad(75*i), math.rad(-15*i), math.rad(-10*i)) * CFrame.new(0, -0.2*i, 0)
  419. neck.C0 = necko * CFrame.Angles(math.rad(5+12*i), 0, math.rad(-35+70*i))
  420. wait()
  421. end
  422. LAW.Part1 = nil
  423. for i = 0.91, 0, -0.09 do
  424. TH.C0 = CFrame.Angles(0, math.rad(90*i), 0)
  425. TH.C1 = THMain * CFrame.Angles(0, 0, math.rad(-30*i)) * CFrame.new(0, 0.3*i, -0.1*i)
  426. RAW.C0 = CFrame.Angles(math.rad(110*i), 0, math.rad(10*i)) * CFrame.new(0, 0, -0.3*i)
  427. neck.C0 = necko * CFrame.Angles(math.rad(5*i), 0, math.rad(-35*i))
  428. wait()
  429. end
  430. neck.C0 = necko
  431. detach(true)
  432. end
  433.  
  434. keys = {"r", "t", "y", "u", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m"}
  435.  
  436. function PlayString(pitch, vol)
  437. LAW.C0 = LAWStand * CFrame.new(pitch/7, 0, 0) * CFrame.Angles(0, 0, math.rad(pitch*18))
  438. neck.C0 = NeckStand * CFrame.Angles(0, 0, math.rad(-pitch*13))
  439. for i = 0, 1, 0.5 do
  440. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-5*i), 0, math.rad(-15*i)) * CFrame.new(0, 0.3*i, 0)
  441. wait()
  442. end
  443. PlaySound(GSound, pitch, vol)
  444. for i = 0, 1, 0.33 do
  445. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-5-10*i), 0, math.rad(-15+35*i)) * CFrame.new(0, 0.3-0.8*i, 0)
  446. wait()
  447. end
  448. local lol = math.floor(pitch*2.5)
  449. if lol < 1 then lol = 1 elseif lol > #keys then lol = #keys end
  450. coroutine.resume(coroutine.create(function()
  451. local vollol = vol*40
  452. for i = 1, math.random(vollol/1.8, vollol) do
  453. Strings[lol][2].C0 = CFrame.new(0, 0, math.random(-vollol, vollol)/1000)
  454. wait()
  455. end
  456. Strings[lol][2].C0 = CFrame.new()
  457. end))
  458. for i = 0, 1, 0.25 do
  459. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-5-10+15*i), 0, math.rad(20-20*i)) * CFrame.new(0, 0.3-0.8+0.5*i, 0)
  460. wait()
  461. end
  462. RAW.C0 = RAWStand
  463. end
  464.  
  465. function select(mouse)
  466. selectanim()
  467. selected = true
  468. mouse.KeyDown:connect(function(key)
  469. key = key:lower()
  470. for i, v in pairs(keys) do
  471. if key == v then
  472. local pitch = 0.3 + (i/7.5)
  473. PlayString(pitch, volume)
  474. end
  475. end
  476. end)
  477. end
  478.  
  479. function deselect(mouse)
  480. selected = false
  481. deselanim()
  482. end
  483.  
  484. bin.Selected:connect(select)
  485. bin.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement