This is supposed to shoot out a sphere a "Potato Thrower" but it does nothing.
local sp=script.Parent
local head=sp:WaitForChild("Head")
function shootpotato()
local fireball=Instance.new("Part")
potato.name="Effect"
potato.BrickColor=BrickColor.new("Bright Yellow")
potato.Shape="Ball"
potato.Size=Vector3(2,2,2)
potato.canCollide=false
potato.CFrame=head.CFrame
potato.Velocity=head.CFrame.lookVector*50
potato.TopSurface("Smooth")
potato.BottomSurface("Smooth")
potato.Parent=game.Workspace
end
while true do
wait(2)
shootpotato()
end

2 comments
It returns 07:23:05.268 - name is not a valid member of Part 07:23:05.269 - Script 'Workspace.Zombie Test.Script', Line 7 - global shootpotato 07:23:05.269 - Script 'Workspace.Zombie Test.Script', Line 22
oh, Because the Name property has a Capital, Put in "potato.Name = "Effect""