local prompt = Instance.new("ProximityPrompt", workspace:WaitForChild("MedStation")) prompt.ActionText = "Restore health" local last = {} prompt.Triggered:Connect(function(player) local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid") if not humanoid or humanoid.Health <= 0 or humanoid.Health >= humanoid.MaxHealth then return end local now = os.clock() if last[player] and now - last[player] < 8 then return end humanoid.Health = math.min(humanoid.MaxHealth, humanoid.Health + 25) last[player] = now end) game:GetService("Players").PlayerRemoving:Connect(function(player) last[player] = nil end)