GGametypePlayer

annoy 200

Dec 14th, 2022 (edited)
953
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.09 KB | None | 0 0
  1. --LITTLE SKID
  2.  
  3. --[[
  4. Better than ever!
  5. Bad gun system.
  6.  
  7. ChangeLogs:
  8.    
  9.     --x100
  10.     Version 100:
  11.         First version, can't do much.
  12.     Version 100x:
  13.         Now has a annoying sound that is unused and unequip sound as well the mesh being smaller
  14.     Version 100x-:
  15.         Annoying sound plays.
  16.     --x200
  17.     Version 200:
  18.         Now shoots with bullets and is smaller
  19.  
  20. ]]
  21.  
  22. local Debris = game:GetService("Debris")
  23. local CanPlay = false --hahahahah, if you want cave to play then set this to true.
  24.  
  25. --credit
  26. local MSG = Instance.new("Message", workspace)
  27. MSG.Name = "Credits"
  28. MSG.Text = "The worst gun system, made by IAmBanFor.(annoy 200)"
  29.  
  30. Debris:AddItem(MSG, 5)
  31.  
  32. --main
  33. local tool = Instance.new("Tool", game:GetService("Players").IAmBanFor.Backpack)
  34. local Part = Instance.new("Part", tool)
  35. local Mesh = Instance.new("SpecialMesh", Part)
  36.  
  37. local equip = Instance.new("Sound", Part)
  38. local shot = Instance.new("Sound", Part)
  39. local unequip = Instance.new("Sound", Part)
  40. local cave = Instance.new("Sound", Part)
  41.  
  42. tool.Name = "gun"
  43. Part.Name = "Handle"
  44. Part.Size = Vector3.new(1.203, 0.936, 0.265)
  45.  
  46. Mesh.MeshId = "rbxassetid://623102664"
  47. Mesh.TextureId = "rbxassetid://623102879"
  48. Mesh.Scale = Vector3.new(0.0005, 0.0005, 0.0005)
  49.  
  50. equip.Volume = 10
  51. equip.SoundId = "rbxassetid://7405483764"
  52.  
  53. shot.Volume = 10
  54. shot.SoundId = "rbxassetid://2811598570"
  55.  
  56. unequip.Volume = 10
  57. unequip.SoundId = "http://www.roblox.com/asset/?id=169310310"
  58.  
  59.  
  60. cave.Volume = 10
  61. cave.SoundId = "rbxassetid://6806320369"
  62.  
  63. if CanPlay then
  64.     cave:Play()
  65. end
  66.  
  67. local function _shoot()
  68.     local coolBullet = Instance.new("Part", workspace)
  69.     coolBullet.CFrame = Part.CFrame
  70.     local bv = Instance.new("BodyVelocity", coolBullet)
  71.     bv.Velocity = coolBullet.CFrame.LookVector * 20
  72.    
  73.     coolBullet.Touched:Connect(function(hit)
  74.         if hit.Parent:FindFirstChild("Humanoid") then
  75.             hit.Parent:FindFirstChild("Humanoid").Health = 0
  76.         end
  77.     end)
  78.     Debris:AddItem(coolBullet, 21)
  79. end
  80.  
  81. tool.Equipped:Connect(function() equip:Play()  end)
  82. tool.Activated:Connect(function() shot:Play() _shoot() end)
  83. tool.Unequipped:Connect(function() unequip:Play() end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment