The propose of this code was to run a block of code if a players mouse is over a specific part, in this case Part1, and if there are pressing the specified key, z, in this case. Im not sure how to do this, so all help is much appreciated. here is my attempt, i though if the two positions match it would work, but i guess i was painfully wrong, here's what i got:
if Mouse.position == workspace.Part1.Position then
function keyDown(key)
if key == "z" then
--preform action
end
end
end
THANKS FOR READING

1 comment
Thank You