Hello, I'm trying to make a Handcuff Key bind System but first off I'm trying to figure out how to make the Key bind/GUI appear every time a player in a specific team gets close to another player. and if the GUI is visible and you press the key bind it print's something that I'll set in the output. Does anything have any forums that can relate to this?
In the client, you could create a loop that would keep iterating throughout each player and check the distance of each player by using magnitude. Then check if they are holding down the E key and you could make the frame visible
if Player:DistanceFromCharacter(OtherPlayersPosition) <= Distance and UserInputService:IsKeyDown(Enum.KeyCode.E) then Frame.Visible = true end