Proximity Prompt can only work if player is under 100 health

Hi everyone I know this may not be complicated but I was wondering how I could make a player only under 100 health interact with a proximity prompt.

Well, you could just let the player interact with it and only make it work if the player’s health is under 100, like

script.Parent.Triggered:Connect(function(plr)
	if plr.Character.Humanoid.Health < 100 then
		--do what you want to do
	end
 end)

(assuming this script is the child of your proximity prompt)

1 Like

This is exactly what I wanted thanks so much I owe you!

No problem! Glad I could help! :smiley:

1 Like