Weird LUA error.

So I were making a melee swep/script.

Here is the error:




[ERROR] gamemodes/testgamemode/entities/weapons/weapon_meleeattack.lua:55: function arguments expected near '+'
  1. unknown - gamemodes/testgamemode/entities/weapons/weapon_meleeattack.lua:0



Here is the small bit of code.



	local shootpos = ply:GetShootPos()
	local endshootpos = ply:shootpos + ply:GetAimVector() * 70
	local tmin = Vector( 1, 1, 1 ) * -10
	local tmax = Vector( 1, 1, 1 ) * 10


Please help.

shootpos = ply:GetShootPos()
ply:shootpos

should be?

local endshootpos = shootpos + ply:GetAimVector() * 70

s



[ERROR] gamemodes/testgamemode/entities/weapons/weapon_meleeattack.lua:85: function arguments expected near '<'
  1. unknown - gamemodes/testgamemode/entities/weapons/weapon_meleeattack.lua:0


This this comes up. Similar to the last one.
The code thing.



if( ent:Health < 1 ) then
	ent:Kill()
end


Just add brackets? You did for ent:Kill()



if ent:Health() < 1 then


If you don’t know why there are brackets there then please read this

Thank yooou