Hey developers, I am new to proximity prompt.
What I want it to do is when I am done holding the key that this function triggers which allows a part to fall and kill the character. For some reason it doesn’t work, anyone know why?
function onHit(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Workspace.Anchor.Anchored = false
end
end
ProximityPromptService.PromptTriggered:Connect(onHit)