print("holy shit a laser gun")
print("made by kiryu93")
print("if i find out that you have leaked this script, I will bang you up the a- [PLEASE STANDBY]")
function Ready()
local T = Instance.new("Tool",owner.Backpack)
T.GripPos = Vector3.new(0,-0.5,1.25)
T.Name = "Galaxy Buster"
local H = Instance.new("Part",T)
H.Size = Vector3.new(1,1,3)
H.Name = "Handle"
H.BrickColor = BrickColor.new("Really red")
H.Material = Enum.Material.Neon
if not owner.Neutral then
H.BrickColor = BrickColor.new("Gold")
end
local SoundA = Instance.new("Sound",H)
SoundA.SoundId = "rbxassetid://6664033781"
SoundA.Volume = 1
local SoundB = Instance.new("Sound",H)
SoundB.SoundId = "rbxassetid://207825136"
SoundB.Volume = 1
local SoundC = Instance.new("Sound",H)
SoundC.SoundId = "rbxassetid://902360860"
SoundC.Volume = 1
local CanShoot = true
local Shots = 10
T.ToolTip = "Shots: "..Shots
local function Reload()
if CanShoot and Shots < 10 then
CanShoot = false
T.ToolTip = "RELOADING..."
for i = 1,10 do
SoundB.PlaybackSpeed = 2+i*0.11
SoundB.TimePosition = 0.2
SoundB:Play()
H.Transparency = 1
wait(0.05)
H.Transparency = 0
wait(0.05)
end
Shots = 10
CanShoot = true
T.ToolTip = "Shots: "..Shots
for i = 1,5 do
SoundC.PlaybackSpeed = i
SoundC.TimePosition = 0.1
SoundC:Play()
wait(0.05)
end
end
end
T.Unequipped:Connect(Reload)
local function Activated()
local Hu = T.Parent:FindFirstChildWhichIsA("Humanoid")
if Hu and Hu:GetState() ~= Enum.HumanoidStateType.Dead then
if CanShoot then
local P = game:GetService("Players"):GetPlayerFromCharacter(T.Parent)
local C = Instance.new("Part",workspace)
C.Size = Vector3.new(2,2,2)
C.CFrame = H.CFrame * CFrame.new(0,0,-8)
C.Velocity = H.CFrame.LookVector*640
C.Name = "Bullet"
C.Color = Color3.new(1-H.Color.r,1-H.Color.g,1-H.Color.b)
C.Material = Enum.Material.Neon
game:GetService("Debris"):AddItem(C)
local function Touched(part)
if part.Parent then
local H = part.Parent:FindFirstChildWhichIsA("Humanoid")
if H then
local creator = Instance.new("ObjectValue",H)
creator.Name = "creator"
creator.Value = P
game:GetService("Debris"):AddItem(creator,0.2)
H:TakeDamage(10)
SoundA.PlaybackSpeed = 6.8
SoundA.TimePosition = 0.2
SoundA:Play()
wait(0.05)
SoundA.PlaybackSpeed = 12
SoundA.TimePosition = 0.2
SoundA:Play()
end
end
end
C.Touched:Connect(Touched)
Shots = Shots - 1
T.ToolTip = "Shots: "..Shots
SoundC.PlaybackSpeed = 0.7+(10-Shots)*0.1
SoundC.TimePosition = 0.1
SoundC:Play()
if Shots <= 0 then
Reload()
end
else
SoundC.PlaybackSpeed = 10
SoundC.TimePosition = 0.1
SoundC:Play()
end
end
end
T.Activated:Connect(Activated)
end
owner.CharacterAdded:Connect(Ready)
Ready()