ragdoll gun

hi i am making a ragdoll gun because all the other sweaps are broke and i get this error

<eof>’ expected near ‘end’

this is my sweap
[lua] if (CLIENT) then
SWEP.PrintName = “ragdool”
SWEP.Slot = 4
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
end

SWEP.Author = “|ERP| Enzo”
SWEP.Instructions = “Left click to ragdoll”
SWEP.Contact = “”
SWEP.Purpose = “”

SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.ViewModel = Model(“models/weapons/v_c4.mdl”)
SWEP.WorldModel = Model(“models/weapons/w_c4.mdl”)

SWEP.Spawnable = false
SWEP.AdminSpawnable = true

SWEP.Sound = Sound(“weapons/deagle/deagle-1.wav”)

SWEP.Primary.ClipSize = -1 – Size of a clip
SWEP.Primary.DefaultClip = 0 – Default number of bullets in a clip
SWEP.Primary.Automatic = false – Automatic/Semi Auto
SWEP.Primary.Ammo = “”

SWEP.Secondary.ClipSize = -1 – Size of a clip
SWEP.Secondary.DefaultClip = -1 – Default number of bullets in a clip
SWEP.Secondary.Automatic = false – Automatic/Semi Auto
SWEP.Secondary.Ammo = “”

/---------------------------------------------------------
Name: SWEP:Initialize()
Desc: Called when the weapon is first loaded
---------------------------------------------------------
/
function SWEP:Initialize()
if (SERVER) then
self:SetWeaponHoldType(“normal”)
end
end

/---------------------------------------------------------
Name: SWEP:PrimaryAttack()
Desc: +attack1 has been pressed
---------------------------------------------------------
/

function SWEP:PrimaryAttack()
if ( !self:CanPrimaryAttack() ) then return end
local eyetrace = self.Owner:GetEyeTrace();
if !eyetrace.Entity:IsPlayer() then
if !eyetrace.Entity:IsNPC() then return end // Check to see if what the player is aiming at is an NPC or Player
end
local ragdoll = ents.Create(“prop_ragdoll”)
ragdoll:SetPos(self.Owner:GetPos())
ragdoll:SetAngles(Angle(0, elf.Owner:GetAngles().Yaw,0))
ragdoll:SetModel(self.Owner:GetModel())
ragdoll:Spawn()
ragdoll:Activate()
ragdoll:SetVelocity(self.Owner:GetVelocity())
self.Owner:Spectate(OBS_MODE_CHASE)
self.Owner:SpectateEntity(ragdoll)
end
end
function SWEP:SecondaryAttack()
if ( !self:CanPrimaryAttack() ) then return end
local eyetrace = self.Owner:GetEyeTrace();
if !eyetrace.Entity:IsPlayer() then
if !eyetrace.Entity:IsNPC() then return end // Check to see if what the player is aiming at is an NPC or Player
end
player:Spawn()
player:UnSpectate()
end [lua]

Put in lua tags!
[lua]if (CLIENT) then
SWEP.PrintName = “ragdool”
SWEP.Slot = 4
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
end

SWEP.Author = “|ERP| Enzo”
SWEP.Instructions = “Left click to ragdoll”
SWEP.Contact = “”
SWEP.Purpose = “”

SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.ViewModel = Model(“models/weapons/v_c4.mdl”)
SWEP.WorldModel = Model(“models/weapons/w_c4.mdl”)

SWEP.Spawnable = false
SWEP.AdminSpawnable = true

SWEP.Sound = Sound(“weapons/deagle/deagle-1.wav”)

SWEP.Primary.ClipSize = -1 – Size of a clip
SWEP.Primary.DefaultClip = 0 – Default number of bullets in a clip
SWEP.Primary.Automatic = false – Automatic/Semi Auto
SWEP.Primary.Ammo = “”

SWEP.Secondary.ClipSize = -1 – Size of a clip
SWEP.Secondary.DefaultClip = -1 – Default number of bullets in a clip
SWEP.Secondary.Automatic = false – Automatic/Semi Auto
SWEP.Secondary.Ammo = “”

/---------------------------------------------------------
Name: SWEP:Initialize()
Desc: Called when the weapon is first loaded
---------------------------------------------------------
/
function SWEP:Initialize()
if (SERVER) then
self:SetWeaponHoldType(“normal”)
end
end

/---------------------------------------------------------
Name: SWEP:PrimaryAttack()
Desc: +attack1 has been pressed
---------------------------------------------------------
/

function SWEP:PrimaryAttack()
if CLIENT then return end
local eyetrace = self.Owner:GetEyeTrace();
if !eyetrace.Entity:IsPlayer() and !eyetrace.Entity:IsNPC() then return end // Check to see if what the player is aiming at is an NPC or Player

local ragdoll = ents.Create("prop_ragdoll")
ragdoll:SetPos(self.Owner:GetPos())
ragdoll:SetAngles(Angle(0, self.Owner:GetAngles().Yaw,0))
ragdoll:SetModel(self.Owner:GetModel())
ragdoll:Spawn()
ragdoll:Activate()
ragdoll:SetVelocity(self.Owner:GetVelocity())
self.Owner.EnzoRagdoll = ragdoll
self.Owner:Spectate(OBS_MODE_CHASE)
self.Owner:SpectateEntity(ragdoll)

end

function SWEP:SecondaryAttack()
if CLIENT or not self.Owner.EnzoRagdoll then return end

self.Owner:Spawn()
self.Owner:SetPos(self.Owner.EnzoRagdoll:GetPos())
self.Owner.EnzoRagdoll:Remove()
self.Owner:UnSpectate()

end
[/lua]

Fixed.

//this is really stupid

fixed

done it thanks for the help falco!