I put this code into a local script in Start Pack
Player = script.Parent.Parent
mouse = Player:GetMouse()
function onKeyDown(key)
key = key:lower()
if key == "z" then
TestHouse = game.Lighting.House:clone()
TestHouse.parent = game.Workspace
end
end
mouse.KeyDown:connect(PressedZ)
Its supposed to detect that I pressed Z and then clone game.lighting.House
But when I press Z the output returns with "attempt to call a nil value" in red.
Any thoughts as to why this doesn't work?

2 comments
Are you sure all your paths are correct? And instead of using Player = script.Parent.Parent, use Player = game.Players.LocalPlayer to ensure you get the player.
Don't use KeyDown, don't use Lighting as storage, and don't define the player by spamming .Parent.Parent. All of these things make your code ugly.