I'm trying to make it so when a brick is touched a box is given to the player.
game.Players.PlayerAdded:connect(function(player)
script.Parent.Touched:connect(onTouch)
function onTouch(hit)
if 6 > 2 then
local box = game.Lighting["Box"]:Clone()
box.Parent = player.Backpack
end
end
end)
There's an error underline for line 3 saying " consider making it local"

2 comments
Explain? " consider making it local" is not a valid error that roblox would throw.
I need more information as to what you're trying to do, screenshots would be helpful.