My revive script will not work because the proximity prompt is local

i am trying to get a proximity prompt to appear on their torso

The proximity prompt is local, and the script is serversided

local humanoid = script.Parent:WaitForChild("Humanoid")
local hrp = script.Parent:WaitForChild("HumanoidRootPart")
humanoid.BreakJointsOnDeath = false
humanoid.HealthChanged:Connect(function(hp)
	if hp == 0 then
		game.Players:GetPlayerFromCharacter(humanoid.Parent).Backpack:ClearAllChildren()
		prox = Instance.new("ProximityPrompt")
		prox.HoldDuration = 7
		prox.MaxActivationDistance = 5
		prox.ActionText = "Revive"
		prox.Parent = hrp
		revscript = script.revive
		revscript.Parent = script.Parent
		revscript.Enabled = true
		script:Destroy()
	end
end)
1 Like

ok, i still don’t see the issue but their is a proximity prompt on every client and the server. I found only 1 client (The client holding the prompt) can actaully use the prompt

OOHH i forgot only one player can use a proximity prompt at a time, by any chance is there a fix for that or should i just disable that on the client

1 Like

update 2: it can be on multiple clients its just the HRP making its requires line of sight not work, fixed now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.