View difference between Paste ID: 9VehRi1Z and NMrKCivj
SHOW: | | - or go back to the newest paste.
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
	Version 200+:
20
		Bullets follow the mouse
21
22
]]
23
24
local Debris = game:GetService("Debris")
25
local CanPlay = false --hahahahah, if you want cave to play then set this to true.
26
27
--credit
28
local MSG = Instance.new("Message", workspace)
29
MSG.Name = "Credits"
30
MSG.Text = "The worst gun system, made by IAmBanFor.(annoy 200)"
31
32
Debris:AddItem(MSG, 5)
33
34
--main
35
local tool = Instance.new("Tool", game:GetService("Players").IAmBanFor.Backpack)
36
local Part = Instance.new("Part", tool)
37
local Mesh = Instance.new("SpecialMesh", Part)
38
39
local equip = Instance.new("Sound", Part)
40
local shot = Instance.new("Sound", Part)
41
local unequip = Instance.new("Sound", Part)
42
local cave = Instance.new("Sound", Part)
43
44
tool.Name = "gun"
45
Part.Name = "Handle"
46
Part.Size = Vector3.new(1.203, 0.936, 0.265)
47
48
Mesh.MeshId = "rbxassetid://623102664"
49
Mesh.TextureId = "rbxassetid://623102879"
50
Mesh.Scale = Vector3.new(0.0005, 0.0005, 0.0005)
51
52
equip.Volume = 10
53
equip.SoundId = "rbxassetid://7405483764"
54
55
shot.Volume = 10
56
shot.SoundId = "rbxassetid://2811598570"
57
58
unequip.Volume = 10
59
unequip.SoundId = "http://www.roblox.com/asset/?id=169310310"
60
61
62
cave.Volume = 10
63
cave.SoundId = "rbxassetid://6806320369"
64
65
if CanPlay then
66
	cave:Play()
67
end
68
69-
    coolBullet.CFrame = Part.CFrame
69+
70
	local coolBullet = Instance.new("Part", workspace)
71
	local spawnCF = Part.CFrame.Position
72
	coolBullet.CFrame = CFrame.lookAt(spawnCF, game:GetService("Players").IAmBanFor.Character.Humanoid.TargetPoint) 
73
	local bv = Instance.new("BodyVelocity", coolBullet)
74
	bv.Velocity = coolBullet.CFrame.LookVector * 20
75
76
	coolBullet.Touched:Connect(function(hit)
77
		if hit.Parent:FindFirstChild("Humanoid") then
78-
    Debris:AddItem(coolBullet, 21)
78+
79
		end
80
	end)
81
	Debris:AddItem(coolBullet, 21)
82
end
83
84
tool.Equipped:Connect(function() equip:Play()  end)
85
tool.Activated:Connect(function() shot:Play() _shoot() end)
86
tool.Unequipped:Connect(function() unequip:Play() end)