Attempt to perform arithmetic (add) on number and Vector3

So I am working on a Tower Defense Game and I got this error but I don’t know how to fix it so If anyone could help me fix the problem this would be nice


have a great day :+1:

You are adding Vector3s (towertoSpawn.PrimaryPart.Size * 1) to y, change line 96 to

local y = result.Position.Y + towerToSpawn.HumanoidHipHeight + (towerToSpawn.PrimaryPart.Size.Y * 1)

3 Likes