local damage = 50
local auto = true
local mags = 8
tool = script.Parent
handle = tool.Handle
keys = {"q", "e"}
local cam = workspace.CurrentCamera
local barral = tool.Barrel
local bullets = tool.rounds.Value
function shots()
repeat
wait (0.2)
local bullet = Instance.new("Part")
bullet.Name = "Bullet"
bullet.CFrame = CFrame.new(barral.CFrame)
bullet.Velocity = Vector3.new(100, 0, 0)
bullet.Size = Vector3.new(0.5, 0.5, 1.5)
bullets = bullets -1
bullet.Touched:connect(function(hit)
local ALIEN = hit.Parent.FindFirstChild("alien")
alien:TakeDamage(damage)
end)
if bullets == 0 then
mags = mags -1
wait (5)
end
until mags == 0
end
function onKeyDown(key)
if key == "q"then
cam.CameraSubject = tool.looksight
cam.CameraType = custom
elseif key == "e" then
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end
end
tool.Activated:connect(shots)
so i got help on that, but now, the output says: 14:19:33.240 - Players.Player1.Backpack.turret.LocalScript:16: bad argument #1 to 'new' (Vector3 expected, got userdata) 14:19:33.244 - Script 'Players.Player1.Backpack.turret.LocalScript', Line 16 14:19:33.247 - Stack End

5 comments
Thank you, i usually catch the functions, im just trying to think of to many things at once, becuase im trying to make a huge update to my game, my friends skyping me, so those to things distract me easily right now... thank you.
Actually, its supposed to be that only an alien humanoid in my game is affected aswell.
That helped... but i have a new problem now.
What is it?
its up there...