I dont have any loadweapon script--
In your tutorial I didnt see any loadweapon script
if you are referring to fpsplayer script that contain the weaponscript...i didnt touch anything..
this...
--Load the default weapon, if one is set
if self.weaponfile~="" then
local entity = Prefab:Load(self.weaponfile)
if entity~=nil then
if entity.script~=nil then
entity.script.player = self
self.weapon = entity.script
self.weapon.entity:SetParent(self.camera)
self.weapon.entity:SetRotation(0,0,0)
if self.weapon.offset~=nil then
self.weapon.entity:SetPosition(self.weapon.offset)
else
self.weapon.entity:SetPosition(0,0,0)
end
end
end
end