how do you make 2 different functions, one for if you dont have a keycard and one if you do the keycard name is handle: workspace.keycard.handle
how do i do if u dont have a key card a function happens and if you do the door opens(dont add the actual script for the door just how to do this^^)
would i do
if hit.Parent:FindFirstChild("Handle")=true then --my script
if hit.Parent:FindFirstChild("Handle")=false then --my script
the key card sensor is called Door and the keycard is called Handle

2 comments
Not entirely sure what you are trying to ask about functions...
If you want to make 2 functions, just make them in 1 script.