so i tried to make a gun. first i tried to make a shooting script that just shoots a small yellow brick here's the script:
local tool = script.Parent
local shootpart = tool.Shoot
tool.Activated:Connect(function()
local bullet = Instance.new("Part")
local bulletscript = tool.Bullet:Clone()
bullet.Size = Vector3.new(0.1,0.1,0.1)
bullet.BrickColor = BrickColor.new("New Yeller")
bullet.Parent = workspace
bulletscript.Parent = bullet
bulletscript.Disabled = false
bullet.Position = shootpart.Position
bullet.Velocity = shootpart.CFrame.LookVector*10
end)
doesn't work of course

1 comment
try looking for errors in the output menu