Swep construction kit help

So i’m trying to make the world model (thompson gun) fit to his hand, When using the swep construction kit it looks perfect, but when i copy the code and add it to my lua, it doesn’t work on the weapon?

[lua]
//General Settings \
//Ironsights

SWEP.IronSightsPos = Vector(3.359, 0, 1.84)
SWEP.IronSightsAng = Vector(0, 0, 0)
//World model
SWEP.WElements = {
[“Thompson”] = { type = “Model”, model = “models/weapons/w_hex_tom.mdl”, bone = “ValveBiped.Bip01_R_Hand”, rel = “”, pos = Vector(-4.092, 0, 0), angle = Angle(0, 0, 180), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = “”, skin = 0, bodygroup = {} }
}

SWEP.AdminSpawnable = true // Is the swep spawnable for admin
SWEP.ViewModelFOV = 74 // How much of the weapon do u see ?
SWEP.ViewModelFlip = true
SWEP.AutoSwitchTo = false // when someone walks over the swep, chould i automatectly change to your swep ?
SWEP.Slot = 0 // Deside wich slot you want your swep do be in 1 2 3 4 5 6
SWEP.HoldType = “ar2” // How the swep is hold Pistol smg greanade melee
SWEP.PrintName = “Tommy Gun” // your sweps name
SWEP.Author = “Ambition” // Your name
SWEP.Spawnable = true // Can everybody spawn this swep ? - If you want only admin keep this false and adminsapwnable true.
SWEP.AutoSwitchFrom = false // Does the weapon get changed by other sweps if you pick them up ?
SWEP.FiresUnderwater = true // Does your swep fire under water ?
SWEP.Weight = 5 // Chose the weight of the Swep
SWEP.DrawCrosshair = true // Do you want it to have a crosshair ?
SWEP.Category = “Tommy Gun” // Make your own catogory for the swep
SWEP.SlotPos = 0 // Deside wich slot you want your swep do be in 1 2 3 4 5 6
SWEP.DrawAmmo = true // Does the ammo show up when you are using it ? True / False
SWEP.ReloadSound = “” // Reload sound, you can use the default ones, or you can use your one; Example; “sound/myswepreload.waw”
SWEP.Instructions = “” // How do pepole use your swep ?
SWEP.Contact = “jordanlang2@yahoo.com” // How Pepole chould contact you if they find bugs, errors, etc
SWEP.Purpose = “” // What is the purpose with this swep ?
SWEP.base = “weapon_cs_base”
//General settings\

//PrimaryFire Settings\
SWEP.Primary.Sound = Sound( “weapons/p90/thompsonfire.wav” ) // The sound that plays when you shoot :]
SWEP.Primary.Damage = 25 // How much damage the swep is doing
SWEP.Primary.TakeAmmo = 1 // How much ammo does it take for each shot ?
SWEP.Primary.ClipSize = 50 // The clipsize
SWEP.Primary.Ammo = “smg1” // ammmo type pistol/ smg1
SWEP.Primary.DefaultClip = 100 // How much ammo does the swep come with `?
SWEP.Primary.Spread = .4 // Does the bullets spread all over, if you want it fire exactly where you are aiming leave it o.1
SWEP.Primary.NumberofShots = 1 // How many bullets you are firing each shot.
SWEP.Primary.Automatic = true // Is the swep automatic ?
SWEP.Primary.Recoil = 0.4 // How much we should punch the view
SWEP.Primary.Delay = 0.09 // How long time before you can fire again
//PrimaryFire settings\

//SWEP:Initialize()\
function SWEP:Initialize()
util.PrecacheSound(self.Primary.Sound)
if ( SERVER ) then
self:SetWeaponHoldType( self.HoldType )
end
end
//SWEP:Initialize()\

//SWEP:PrimaryFire()\
function SWEP:PrimaryAttack()
if ( !self:CanPrimaryAttack() ) then return end
local bullet = {}
bullet.Num = self.Primary.NumberofShots
bullet.Src = self.Owner:GetShootPos()
bullet.Dir = self.Owner:GetAimVector()
bullet.Spread = Vector( self.Primary.Spread * 0.1 , self.Primary.Spread * 0.1, 0)
bullet.Tracer = 0
bullet.Force = self.Primary.Force
bullet.Damage = self.Primary.Damage
bullet.AmmoType = self.Primary.Ammo
local rnda = self.Primary.Recoil * -1
local rndb = self.Primary.Recoil * math.random(-1, 1)

self.Owner:FireBullets( bullet )
self.Weapon:EmitSound(Sound(self.Primary.Sound))
self.Owner:ViewPunch( Angle( rnda,rndb,rnda ) )
self:TakePrimaryAmmo(self.Primary.TakeAmmo)
self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )
self.Weapon:SetNextSecondaryFire( CurTime() + self.Primary.Delay )

end
//SWEP:PrimaryFire()\

//Swep Viewmodel and hold type

SWEP.HoldType = “ar2”
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = true
SWEP.ViewModel = “models/weapons/v_hex_tom.mdl”
SWEP.WorldModel = “models/weapons/w_hex_tom.mdl”
SWEP.ShowViewModel = true
SWEP.ShowWorldModel = true
SWEP.ViewModelBoneMods = {}

[/lua]

you didn’t put the base code in the initialize function gg

I just tried this, Still did not work :C also got lua errors

[lua]SWEP.VElements = {
}[/lua]

Put that under the WElements code.

It needs it, otherwise it’ll print you errors.

or you can you know make a proper world model