Is it possible to program voice pings in a fps game on Roblox?

If you have ever played a game such as Apex Legends, you know there are pings that you can use to signal your teammates about something. Like a enemy nearby, or something similar.

I am not a programmer, and I know the least about programming of all the roblox studio skills. I am asking to see if somebody can help me program a ping system for my FPS game “HEADSHOT”.

If you could give me some feedback that would be great.
For contact, please DM my Twitter - @lswerty

1 Like

Of course this would be possible.

local UIS = game:GetService('UserInputService')
local function onInputBegan(input, gameProcessed)
	if input.KeyCode == Enum.KeyCode.Z then-- ping key
		local position = game:GetService('Players').LocalPlayer:GetMouse().Hit.p
	end
end
 
UIS.InputBegan:Connect(onInputBegan)